How Can We Make A Java Class File Executable
By uramit2003
@uramit2003 (898)
India
March 3, 2007 3:08pm CST
Hi Friends i have to make an messanger's project and i have to use java but i dont know how to convert a clas file to exe so that it can reside in memory as a service and accept the msg whenever it recieves and be minimised in taskbar of windows... really help me out...
2 responses
@mnvamsi (539)
• India
4 Aug 07
hello..
try using net beans to compleate your project..
I cannot get what's your problem..
any hw try by using net beans..
after installing run a sim-le program..
save the class file in classes file where you save the rest of your files..
close n open net beans to view the file..
@felipeds (8)
• Brazil
1 Aug 07
You cannot convert a Class straight to a EXe, you could eventually convert a jar to exe.
With that out of the way lets actually look a bit into what you are asking. Java is not a low level computer language, so you pretty much need the user to have the virtual machine installed, let´s say the JRE (Java Runtime Environment). So basicly if you tranform your jar into a exe this will only make you exe call the JVM for the classes you created.
But what if the user does not have the JRE installed? He will have no clue on what is going on.
If you take a look at other java software you can see that pretty much everyone is deploying the JAR and providing a link to run it using the java command. I think that is the way to go.