Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-05-2009, 07:09 PM
Member
 
Join Date: Jan 2009
Posts: 19
Rep Power: 0
ahmed13 is on a distinguished road
Default how i can build exe file??
hi
i want to know how i can built exe file of my project , and i find prog. to convert from jar to exe but i didnt know how to use it .. i want any one to tell me how to creat exe file .
thank you..

Last edited by ahmed13; 02-05-2009 at 07:12 PM.
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 02-05-2009, 08:07 PM
Fubarable's Avatar
Moderator
 
Join Date: Jun 2008
Posts: 5,968
Rep Power: 7
Fubarable is on a distinguished road
Default
If a question you have sounds like one that other's would likely have asked, odds are that it has been asked before. This one gets asked once a week if not more. Your best bet is to search this or other fora. The most common answer I'll tell you: It's to ask why you'd want to change a program that can run on most major OSs to one that will only run on one. Best of luck.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 02-05-2009, 08:32 PM
kapilverma32's Avatar
Member
 
Join Date: Jan 2009
Location: Delhi
Posts: 8
Rep Power: 0
kapilverma32 is on a distinguished road
Default
I am just giving you hint for this simple problem . In Java u can easily make jar file that consists of various class files.With the help of .bat file u can run the jar file.

Rest is upto you!!!!!!!!!

Try it .......best of luck....
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 02-05-2009, 08:35 PM
angryboy's Avatar
Senior Member
 
Join Date: Jan 2009
Location: Javaland
Posts: 743
Rep Power: 2
angryboy is on a distinguished road
Default
use jsmooth, the process is pretty straight forward, but you can read their tutorial on the website. only time i did this was to sent a java prog to gramma whose jar extension was taken over by 7zip.

bat file is good too, never thought of it. but u get that cmd pop up everytime...
__________________
USE CODE TAGS--> [CODE]...[/CODE]
Get NotePad++ (free)

Last edited by angryboy; 02-05-2009 at 08:38 PM.
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 02-05-2009, 09:02 PM
Member
 
Join Date: Jan 2009
Posts: 19
Rep Power: 0
ahmed13 is on a distinguished road
Default
Originally Posted by kapilverma32 View Post
I am just giving you hint for this simple problem . In Java u can easily make jar file that consists of various class files.With the help of .bat file u can run the jar file.

Rest is upto you!!!!!!!!!

Try it .......best of luck....
thank you for your reply
but i want to ask you . bat file run as exe file ? and how i can creat .bat file ..
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 02-05-2009, 09:07 PM
Member
 
Join Date: Jan 2009
Posts: 19
Rep Power: 0
ahmed13 is on a distinguished road
Default
Originally Posted by Fubarable View Post
If a question you have sounds like one that other's would likely have asked, odds are that it has been asked before. This one gets asked once a week if not more. Your best bet is to search this or other fora. The most common answer I'll tell you: It's to ask why you'd want to change a program that can run on most major OSs to one that will only run on one. Best of luck.
yes i will reply to your answer most of people dont have java in there computer so i want to have exe file to run it on windows sys. ..

thank you
Bookmark Post in Technorati
Reply With Quote
  #7 (permalink)  
Old 02-05-2009, 09:12 PM
kapilverma32's Avatar
Member
 
Join Date: Jan 2009
Location: Delhi
Posts: 8
Rep Power: 0
kapilverma32 is on a distinguished road
Default
open the notepad and save as .bat extn , u need a training i suggest u......

use below alongwith that:

right click .bat file and type:

javaw -jar urjarname.jar
pause
Bookmark Post in Technorati
Reply With Quote
  #8 (permalink)  
Old 02-05-2009, 09:26 PM
Member
 
Join Date: Jan 2009
Posts: 19
Rep Power: 0
ahmed13 is on a distinguished road
Default
Originally Posted by kapilverma32 View Post
open the notepad and save as .bat extn , u need a training i suggest u......

use below alongwith that:

right click .bat file and type:

javaw -jar urjarname.jar
pause
we registered in this forums to Exchange of experience .. so i think that
all member in this forum need training

thank you ...
Bookmark Post in Technorati
Reply With Quote
  #9 (permalink)  
Old 02-05-2009, 09:45 PM
kapilverma32's Avatar
Member
 
Join Date: Jan 2009
Location: Delhi
Posts: 8
Rep Power: 0
kapilverma32 is on a distinguished road
Default
this is for sure that one can easily judge ur experience the way or kind of silly q's u are following......

hence proved...

cme to professionalism...........
nw ur problem is solved dear exp jr.?????????
Bookmark Post in Technorati
Reply With Quote
  #10 (permalink)  
Old 02-05-2009, 10:32 PM
Member
 
Join Date: Jan 2009
Posts: 19
Rep Power: 0
ahmed13 is on a distinguished road
Default
Originally Posted by kapilverma32 View Post
this is for sure that one can easily judge ur experience the way or kind of silly q's u are following......

hence proved...

cme to professionalism...........
nw ur problem is solved dear exp jr.?????????
thank you for your repling

when i creat bat file and write javaw -jar jarneme.jar
and i open bat file the my jar file opened but i want 1 file only not bat file and jar ...
my problem is very simple ...

thank you again
Bookmark Post in Technorati
Reply With Quote
  #11 (permalink)  
Old 02-06-2009, 08:54 AM
Senior Member
 
Join Date: Jan 2009
Posts: 319
Rep Power: 2
toadaly is on a distinguished road
Default
It sounds like you are wanting an executable jar file. To create that, you have to include a manifest with your 'jar' command that defines the class with 'main' in it.

Suppose 'manifest' had contents:
Main-class: MyMain

and suppose your main class was called MyMain. Then to create an executable jar file:

jar cmf manifest myExecutableJarFile.jar *.class
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Same source file but different source folders for different build configurations? m3anman Eclipse 0 01-29-2009 11:43 AM
various stuffs to build GUI Devi AWT / Swing 1 12-01-2008 08:04 PM
To those who want to build a new OS, you may read this for a while... sukatoa Forum Lobby 0 06-11-2008 02:56 PM
How to run/build the JSP file using Eclipse cbklp JavaServer Pages (JSP) and JSTL 1 01-19-2008 01:03 AM
Teamwork 3.2.0 build 414 JavaBean Java Announcements 0 07-11-2007 04:13 PM


All times are GMT +2. The time now is 04:34 PM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org