Results 1 to 11 of 11
Thread: how i can build exe file??
- 02-05-2009, 06:09 PM #1
Member
- Join Date
- Jan 2009
- Posts
- 19
- Rep Power
- 0
-
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.
- 02-05-2009, 07:32 PM #3
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....
- 02-05-2009, 07:35 PM #4
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...Last edited by angryboy; 02-05-2009 at 07:38 PM.
USE CODE TAGS--> [CODE]...[/CODE]
Get NotePad++ (free)
- 02-05-2009, 08:02 PM #5
Member
- Join Date
- Jan 2009
- Posts
- 19
- Rep Power
- 0
- 02-05-2009, 08:07 PM #6
Member
- Join Date
- Jan 2009
- Posts
- 19
- Rep Power
- 0
- 02-05-2009, 08:12 PM #7
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
- 02-05-2009, 08:26 PM #8
Member
- Join Date
- Jan 2009
- Posts
- 19
- Rep Power
- 0
- 02-05-2009, 08:45 PM #9
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.?????????
- 02-05-2009, 09:32 PM #10
Member
- Join Date
- Jan 2009
- Posts
- 19
- Rep Power
- 0
- 02-06-2009, 07:54 AM #11
Senior Member
- Join Date
- Jan 2009
- Posts
- 671
- Rep Power
- 5
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
Similar Threads
-
Same source file but different source folders for different build configurations?
By m3anman in forum EclipseReplies: 0Last Post: 01-29-2009, 10:43 AM -
various stuffs to build GUI
By Devi in forum AWT / SwingReplies: 1Last Post: 12-01-2008, 07:04 PM -
To those who want to build a new OS, you may read this for a while...
By sukatoa in forum Forum LobbyReplies: 0Last Post: 06-11-2008, 01:56 PM -
How to run/build the JSP file using Eclipse
By cbklp in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 01-19-2008, 12:03 AM -
Teamwork 3.2.0 build 414
By JavaBean in forum Java SoftwareReplies: 0Last Post: 07-11-2007, 03:13 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks