Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (120)
games submitted by our members
Games in WIP (577)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Make Jar File into an Executable on CD  (Read 1495 times)
0 Members and 1 Guest are viewing this topic.
Offline Slyth2727
« Posted 2013-04-24 21:05:47 »

So, for a competition I must make my java game into and executable cd. eg; when the cd is plugged in, the jar automatically runs. This is extremely necessary so is there any way i can do this? Thanks
-cMp

Was I before Chuang Tzu who dreamt about being a butterfly, or am I now a butterfly who dreams about being Chuang Tzu?
Offline gouessej
« Reply #1 - Posted 2013-04-24 21:39:32 »

Use Launch4J. I'm almost sure there are some online tutorials for that.

Offline Slyth2727
« Reply #2 - Posted 2013-04-24 22:53:05 »

Will do! Looking it up right now

Was I before Chuang Tzu who dreamt about being a butterfly, or am I now a butterfly who dreams about being Chuang Tzu?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Slyth2727
« Reply #3 - Posted 2013-04-24 23:09:10 »

Well that tool certainly is useful, but I see no way to make an executable cd out of it. What I am thinking of is where as soon as you put the CD into the computer, the program executes without you having to click anything or do anything.

Was I before Chuang Tzu who dreamt about being a butterfly, or am I now a butterfly who dreams about being Chuang Tzu?
Offline UprightPath
« Reply #4 - Posted 2013-04-24 23:14:16 »

Know your Google Fu: "Adding autorun to a CD" http://www.wizbit.net/business_card_cd_creating_autorun_file.htm

You'll have to mess around with it if you're not using an actual .exe file. But you should be able to edit it to call "java -jar <executable name>" instead.

Offline Slyth2727
« Reply #5 - Posted 2013-04-24 23:25:44 »

Ah I didn't know it was called autorun  Tongue. Thanks for the help!

Was I before Chuang Tzu who dreamt about being a butterfly, or am I now a butterfly who dreams about being Chuang Tzu?
Offline ReBirth
« Reply #6 - Posted 2013-04-25 02:07:06 »

Your best bet is still make it exe with launch4j, and add autorun.inf to call it.

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

theagentd (5 views)
2014-10-25 15:46:29

Longarmx (52 views)
2014-10-17 03:59:02

Norakomi (45 views)
2014-10-16 15:22:06

Norakomi (34 views)
2014-10-16 15:20:20

lcass (38 views)
2014-10-15 16:18:58

TehJavaDev (68 views)
2014-10-14 00:39:48

TehJavaDev (68 views)
2014-10-14 00:35:47

TehJavaDev (60 views)
2014-10-14 00:32:37

BurntPizza (73 views)
2014-10-11 23:24:42

BurntPizza (45 views)
2014-10-11 23:10:45
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!