Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Azam Bukhari
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Azam
sazam@email.com

------------------
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes you need to download the SDK for the Solaris.
http://java.sun.com/j2se/1.3/download-solaris.html
Then you need to set up your path and classpath. http://java.sun.com/products/java-media/jmf/2.1.1/setup-sol.html
Then practice alot.
To compile a class type (remember to save it as txt)
>javac myClass.java
To start an application at the command prompt type
>java myClass
[This message has been edited by Cindy Glass (edited May 30, 2001).]
 
Matthew Phillips
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is something that I have been curious about as well. Is there a way to create an .exe file in Java?
Matthew Phillips
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic