• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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

 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

------------------
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).]
 
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
It's feeding time! Give me the food you were going to give to this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic