create a new file called "go.bat" or something like that
edit this with notepad
put the statement below in the file:
java yourMainClassName (don't forget to put the package before the mainclassname if there is one)
save the file, put it at the root of your java project , and run it
Thank u for ur quick reply
i created the batch as said and i place into the root of the project
i want to run this batch file in different system is it work.
with out have java file java class or exe file how can it works.
can ples give me brief idea
Is there anything to set path in batch file to run another system
on windows this is not possible yet. The bin directory of a JRE or JDK has to be added to the PATH manually because the Java installer refuses to do this. So your best bet is to keep your application as an executable jar.
> with out have java file java class or exe file how can it works
Huh? How can you run a java application without the class? You have no application!
> on windows this is not possible yet. The bin
> directory of a JRE or JDK has to be added to the PATH
> manually because the Java installer refuses to do
> this. So your best bet is to keep your application as
and a good thing that is... Way too much problems are caused by installers "helpfully" adding things to the system path or worse, overwriting environment settings with their own, without asking.
Installers from Oracle come to mind...