Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 10-12-2005, 04:21 PM   #1 (permalink)
aaronkupen's Avatar
 
Monster Techie

Join Date: Sep 2005

Location: Boston, MA

Posts: 1,791

aaronkupen is on a distinguished road

Send a message via AIM to aaronkupen Send a message via Yahoo to aaronkupen Send a message via Skype™ to aaronkupen
Default "executables" + java

Jeez ive been making too many threads, but oh well. Is there a program that can transfer your java program into a stand alone executable that i can send to friends so they can open it?
__________________
Lenovo Thinkpad T60
Intel Core 2 Duo T7200 @ 2.00 Ghz
2 GB DDR-2 memory
ATI Mobility Radeon x1400
60 GB 7200 rpm Hard Drive
Windows Vista Business SP1 32 Bit
aaronkupen is offline  
Old 10-12-2005, 04:44 PM   #2 (permalink)
 
True Techie

Join Date: Sep 2005

Posts: 223

nezzari

Send a message via AIM to nezzari
Default

Just send them the .Jar files. Jar files are pretty much the same thing as .exe. Except that they run on multiple OSes
nezzari is offline  
Old 10-12-2005, 05:05 PM   #3 (permalink)
aaronkupen's Avatar
 
Monster Techie

Join Date: Sep 2005

Location: Boston, MA

Posts: 1,791

aaronkupen is on a distinguished road

Send a message via AIM to aaronkupen Send a message via Yahoo to aaronkupen Send a message via Skype™ to aaronkupen
Default

How do i make a .Jar file
__________________
Lenovo Thinkpad T60
Intel Core 2 Duo T7200 @ 2.00 Ghz
2 GB DDR-2 memory
ATI Mobility Radeon x1400
60 GB 7200 rpm Hard Drive
Windows Vista Business SP1 32 Bit
aaronkupen is offline  
Old 10-12-2005, 05:41 PM   #4 (permalink)
 
True Techie

Join Date: Sep 2005

Posts: 223

nezzari

Send a message via AIM to nezzari
Default

What IDE are you using?
nezzari is offline  
Old 10-13-2005, 07:16 AM   #5 (permalink)
 
Ultra Techie

Join Date: Oct 2003

Posts: 544

fitzjj

Default

Quote:
Originally posted by aaronkupen
How do i make a .Jar file
jar cmf main-class jar-file input-file(s)

the c indicates you want to create the file, the f indicates you want to create a file rather than write to std out. the m requires you to specify a main class and is required if you want to make it executable

Jar files are not pretty much the same as .exe's jar files are more like .zip files, although it is possible to make them executable using a command similar to above

you would then run something like:
$ java -jar jar-file-name

you can also add any command line arguments at the end if required.

if using windows create a .bat file that runs this command, if using linux just create a script with the commands in it
fitzjj is offline  
 
Closed Thread

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