+ 1

How to create runable program from .java file ??

I know there is that thing in cmd(javac.....>java.....) but is there any easy way ??

19th Nov 2016, 5:34 PM
Tomáš Šimon
6 odpowiedzi
+ 2
you can package the compiled classes into .jar it is executable the good news here .jar is standalone and runs anywhere the same code independent of platform
19th Nov 2016, 6:09 PM
Sandeep Chatterjee
+ 2
there is a previous post too for .exe which I answered please see it too for others answers however I say there are tools to convert .jar to .exe but be cautious of viruses while using and yes .jar are preferred to .exe because .jar is platform independent runs fast and does not use other tools use my profile to get to my posts you will find answers or search it in discissions you will get others answers too there.
19th Nov 2016, 6:15 PM
Sandeep Chatterjee
+ 1
use ide like netbean or eclipse
19th Nov 2016, 6:05 PM
Fayeed Pawaskar
Fayeed Pawaskar - avatar
+ 1
thanks :-)
19th Nov 2016, 6:11 PM
Tomáš Šimon
+ 1
that's why I said .jar friend they are like .exe just double click it and it will run as it runs .exe
19th Nov 2016, 7:44 PM
Sandeep Chatterjee
+ 1
Basically, if you use an IDE like Eclipse there is an option called "Export as a runnable jar file" (or something close to this). This produces a jar file for your application, which can be executed simply by double clicking it. Of course, your machine should have the JVM installed prior to the execution of your application.
20th Nov 2016, 2:18 AM
Miltiadis Siavvas