hi, friends
i have some doubt from many days..
please any one clarify it..

my doubt is,

"IS IT POSSIBLE TO CHANGE JAVA FILE TO .EXE FILE ... :?::?::?::?:?"

IF IT IS POSSIBLE HOW IT IS CONVERT...:icon_idea:

THANKS IN ADVANCE.....

Do a Google search would be a way to find out.
The problem with an exe file is that it only works with one OS.

do a google search would be a way to find out.
The problem with an exe file is that it only works with one os.

thanks for u r replaying.......

And i search in the google..
But i can't understand clear in that...

Please give any link which is understandable......
Please

thanks in advance

it is possible to convert your java file to not excatly a exe file but a similar one .bat file.which works the same as exe.
first u have to convert your java file to jar file .
thn after making a jar file
open a notepad n just write the code
-cp [ur jar file name].jar;. [your java file name]

example
-cp Demo.jar;.MyClass

after writing the code save it as a .bat extension into the same folder
example == Demo.bat

i hope if this had help you then mark your post as solved.

First create another notepad file and write this as it is
Main-Class: .ClassFileName(press Enter)(from which the exe shld start.)
save it with .mf extension.

then goto command prompt
then browse to the folder in which you have your java files ththat r to be converted.
then write this command
jar cfm jarfilename.jar manifestfilename.mf *.class(press enter)

This article has been dead for over six months. Start a new discussion instead.