954,554 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Convert java file to .exe file

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.....

mani_1991
Newbie Poster
21 posts since Aug 2010
Reputation Points: 10
Solved Threads: 0
 

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.

NormR1
Posting Expert
Moderator
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
 
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

mani_1991
Newbie Poster
21 posts since Aug 2010
Reputation Points: 10
Solved Threads: 0
 

Sorry, I don't convert my java code to exe files so I've never tried to google it.

NormR1
Posting Expert
Moderator
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
 

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.

DeadSoul
Junior Poster in Training
56 posts since Dec 2009
Reputation Points: 8
Solved Threads: 6
 

Sorry ! I can't understand , plz share ur experience with me !

Vikram_bv
Newbie Poster
1 post since Sep 2010
Reputation Points: 7
Solved Threads: 0
 

What is the problem you are having? Please explain.

NormR1
Posting Expert
Moderator
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
 

i don't know is it possible or not , but by creating a jar file we can access that just like as exe.

Jawahar prabhu
Newbie Poster
21 posts since Sep 2008
Reputation Points: 8
Solved Threads: 1
 

:sigh: (all around)

masijade
Industrious Poster
Moderator
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
 
we can access


What does "access" mean for a file?

NormR1
Posting Expert
Moderator
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
 

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)

amitbhanot
Newbie Poster
12 posts since Sep 2010
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You