C and C++

Moderators: None (Apply to moderate this forum)
Number of threads: 28695
Number of posts: 94715

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Windows and JAVA Posted by antons on 8 Aug 2005 at 12:19 AM
Hi there

I am curious to know how Java provides the programmer with functionality. If you are using for instance C on Windows, you can (and probably would) use Windows to do certain things for you. Now I wonder, if you are using Java on for instance Windows, you would not want to code Windows programming in there. Does Java then provide the functionality that Windows should have?? Or to put it another way, I have not yet seen a book called WINDOWS PROGRAMMING USING JAVA. Does anyone understand how these things fit together? Or maybe you would use the VM as a kind of OS??
Anyone???

Regards
Anton

Report
Re: Windows and JAVA Posted by stober on 8 Aug 2005 at 4:45 AM
: Hi there
:
: I am curious to know how Java provides the programmer with functionality. If you are using for instance C on Windows, you can (and probably would) use Windows to do certain things for you. Now I wonder, if you are using Java on for instance Windows, you would not want to code Windows programming in there. Does Java then provide the functionality that Windows should have?? Or to put it another way, I have not yet seen a book called WINDOWS PROGRAMMING USING JAVA. Does anyone understand how these things fit together? Or maybe you would use the VM as a kind of OS??
: Anyone???
:
: Regards
: Anton
:

java is not just another Windows language. When you write a java program you have no clue what operating system it is going to be run on.


Report
Re: Windows and JAVA Posted by antons on 8 Aug 2005 at 4:57 AM
: : Hi there
: :
: : I am curious to know how Java provides the programmer with functionality. If you are using for instance C on Windows, you can (and probably would) use Windows to do certain things for you. Now I wonder, if you are using Java on for instance Windows, you would not want to code Windows programming in there. Does Java then provide the functionality that Windows should have?? Or to put it another way, I have not yet seen a book called WINDOWS PROGRAMMING USING JAVA. Does anyone understand how these things fit together? Or maybe you would use the VM as a kind of OS??
: : Anyone???
: :
: : Regards
: : Anton
: :
:
: java is not just another Windows language. When you write a java program you have no clue what operating system it is going to be run on.
:
:
:

Yes, I know. But does that then mean that the functionality that could be obtained in another language by doing Windows API programming, is now available in Java or the VM itself? I was just wondering, as I have not really seen this kind of comparison anywhere before. I hope I am being understood.

Thanks


Report
Re: Windows and JAVA Posted by stober on 8 Aug 2005 at 5:04 AM
I'm not a java expert -- actually I suck at it. But Java's VM doesn't duplicate os api but makes os api function calls directly. Afterall, that's the main purpose of the java VM is to translate your java code into something useful that the os can understand.
Report
Re: Windows and JAVA Posted by Lundin on 8 Aug 2005 at 4:58 AM
: Hi there
:
: I am curious to know how Java provides the programmer with functionality. If you are using for instance C on Windows, you can (and probably would) use Windows to do certain things for you. Now I wonder, if you are using Java on for instance Windows, you would not want to code Windows programming in there. Does Java then provide the functionality that Windows should have?? Or to put it another way, I have not yet seen a book called WINDOWS PROGRAMMING USING JAVA. Does anyone understand how these things fit together? Or maybe you would use the VM as a kind of OS??
: Anyone???
:
: Regards
: Anton
:
:

Java has got equal functions to many things is the Win API. Graphics, keyboard/mouse handling, threads etc. It has been a while sence I last used Java, so I don't remember if/how you can access the "raw" API functions from it (I doubt you can).

This is all really off-topic... you will probably get better replies on the Java board.
Report
Re: Windows and JAVA Posted by antons on 8 Aug 2005 at 5:36 AM
: : Hi there
: :
: : I am curious to know how Java provides the programmer with functionality. If you are using for instance C on Windows, you can (and probably would) use Windows to do certain things for you. Now I wonder, if you are using Java on for instance Windows, you would not want to code Windows programming in there. Does Java then provide the functionality that Windows should have?? Or to put it another way, I have not yet seen a book called WINDOWS PROGRAMMING USING JAVA. Does anyone understand how these things fit together? Or maybe you would use the VM as a kind of OS??
: : Anyone???
: :
: : Regards
: : Anton
: :
: :
:
: Java has got equal functions to many things is the Win API. Graphics, keyboard/mouse handling, threads etc. It has been a while sence I last used Java, so I don't remember if/how you can access the "raw" API functions from it (I doubt you can).
:
: This is all really off-topic... you will probably get better replies on the Java board.
:


OK then, I was just wondering. Lastly, what about DLLs and Java. Can/should Java use those?? Or can Java do something else similar to this??
I will go to the Java forum if you insist. While I am there, should I tell them you guys think their language sucks??
While on the subject of GUYS, why are there no hot chicks wanting to program?? It is because they dont like nerds? They are always complaining about equal rights, but they dont want to get down and dirty with the rest of us.
They say live every day like your last. I think I would get wasted on my last day. Should I therefor now get wasted every day since it might be my last??

Regards



Report
Re: Windows and JAVA Posted by Lundin on 8 Aug 2005 at 5:56 AM
: OK then, I was just wondering. Lastly, what about DLLs and Java. Can/should Java use those??

I doubt the Java standard has any support for DLLs. But still they must be used in some way. If they are linked to the application or to the VM, I don't know.


: I will go to the Java forum if you insist. While I am there, should I tell them you guys think their language sucks??

They know already. Well, it is not so much the language that sucks, but rather the programs made in it.


: While on the subject of GUYS, why are there no hot chicks wanting to program?? It is because they dont like nerds? They are always complaining about equal rights, but they dont want to get down and dirty with the rest of us.

Gah, not again. I can't bother anymore with the most FAQ after homework. Next question.

Report
Re: Windows and JAVA Posted by antons on 8 Aug 2005 at 6:01 AM
Thank you everyone. Have a nice day.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.