+ 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 ??
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
+ 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.
+ 1
use ide like netbean or eclipse
+ 1
thanks :-)
+ 1
that's why I said .jar friend they are like .exe just double click it and it will run as it runs .exe
+ 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.