Meaningless Drivel is fun!
The moose likes Beginning Java and the fly likes  .class file to *.exe? AND JVM for SOLARIS? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark " .class file to *.exe? AND JVM for SOLARIS? " Watch " .class file to *.exe? AND JVM for SOLARIS? " New topic

.class file to *.exe? AND JVM for SOLARIS?

Azam Bukhari
Ranch Hand

Joined: Oct 03, 2000
Posts: 58
tell me in details how .class file is converted into .exe file that is To run our application what step should be taken?
Also if i want to do java programming on sun solaris platform, in other words if my computer has Sun SOLARIS as its operating system what do i need to do java programming...
do i need to download JVM for SUN SOLARIS or what else???
i'll be thankful
a friend in need


Don't wanna invent the wheel again!!
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Yes you need to download the SDK for the Solaris.
Then you need to set up your path and classpath.
Then practice alot.
To compile a class type (remember to save it as txt)
To start an application at the command prompt type
>java myClass
[This message has been edited by Cindy Glass (edited May 30, 2001).]

"JavaRanch, where the deer and the Certified play" - David O'Meara
Matthew Phillips
Ranch Hand

Joined: Mar 09, 2001
Posts: 2676
This is something that I have been curious about as well. Is there a way to create an .exe file in Java?
Matthew Phillips

Matthew Phillips
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
And we are back to the same question. WHY do you want to have and exe file. There is no intrinsic benefit to that. You are forcing the answer in your question.
Are you actually asking "how can I invoke a java application from an icon" or something similar. Because that is a HUGELY different question.
The easiest way is NOT to have an exe file. Have a .bat file and list the commands to invoke the application. The advantage to that is that you can reset the classpath to what you need it to be (like if you are pointing to a JRE that you bundled with your application and want to ignore the other JRE's that the user might have loaded up). Also you can force in parameters when you invoke the application.
I agree. Here's the link:
subject: .class file to *.exe? AND JVM for SOLARIS?
jQuery in Action, 3rd edition