Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (523)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (592)
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  
  Okay, I need help  (Read 4168 times)
0 Members and 1 Guest are viewing this topic.
Offline NeonStormy

Senior Newbie




Java games rock!


« Posted 2003-11-10 23:38:36 »

Welp, I'm kind of a big idiot on Java.

Anyhow, I built an application with Netbeans IDE. The trouble is, how can I distribute it to others?

Forgive me for being such a noob, but I have to start some where...
Offline NeonStormy

Senior Newbie




Java games rock!


« Reply #1 - Posted 2003-11-10 23:57:37 »

I'm getting somewhere, but I get this now:

Failed to load Main-Class manifest attribute from
F:\Documents and Settings\Peyton\.netbeans\3.5\sampledir\examples\AWHC.jar


When I try to open my JAR that happens.
Offline Jeff

JGO Coder




Got any cats?


« Reply #2 - Posted 2003-11-11 01:25:27 »

Sounds like yuou are trying to run it with -jar.

To do that you need to put an entry in your manifest that tells the VM what your main class is.

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline kevglass

« JGO Spiffy Duke »


Medals: 205
Projects: 24
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #3 - Posted 2003-11-11 06:19:32 »

I wrote this little tutorial:

http://www.cokeandcode.com/info/webstart-howto.html

which I believe was also added to the Wiki somewhere Smiley

It might be of some help. Don't let the name fool you, it covers packaging and manifests in Jars.

Kev

Offline NeonStormy

Senior Newbie




Java games rock!


« Reply #4 - Posted 2003-11-11 17:35:23 »

Yeah, I managed to figure it out. Thanks for the help though!

And kev - are you from TF? Tongue
Offline kevglass

« JGO Spiffy Duke »


Medals: 205
Projects: 24
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #5 - Posted 2003-11-11 17:47:27 »

TF? Um..

Team Fortress - no,
The Forests (Edge) - no,
Uh..? Smiley

Kev

Offline NeonStormy

Senior Newbie




Java games rock!


« Reply #6 - Posted 2003-11-11 19:46:19 »

Coke and code sounded familiar, I thought I saw someone advertise it at Tutorial Forums, but now I realise it's not so - blah, so many URLs to keep in my head.

Anyhow, any good free pograms that will convert JARs into EXEs? I saw one, but it is not free.
Offline GergisKhan

Junior Devvie




"C8 H10 N4 O2"


« Reply #7 - Posted 2003-11-11 20:36:04 »

You have a couple of options.  If you use Jet, which is commercial, you can make a straight .exe

InstallAnywhere Now! from ZeroG will make you a pretty simple install (no frills) but gives you a .exe launcher, if that solves your problem.

gK

"Go.  Teach them not to mess with us."
          -- Cao Cao, Dynasty Warriors 3
Offline NeonStormy

Senior Newbie




Java games rock!


« Reply #8 - Posted 2003-11-11 23:33:17 »

Thanks!

One more question:

Why doesn't this work:

String ct;

ct = jList1.getSelectedItem();
Offline swpalmer

JGO Coder


Exp: 12 years


Where's the Kaboom?


« Reply #9 - Posted 2003-11-11 23:55:46 »

You tell me.. what error did it give?  What type does List1.getSelectedItem() return? I suspect you are missing a cast.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline kevglass

« JGO Spiffy Duke »


Medals: 205
Projects: 24
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #10 - Posted 2003-11-12 04:15:16 »

Yep, it returns Object, you'll need a (String) infront of the accessor.

Kev

Offline swpalmer

JGO Coder


Exp: 12 years


Where's the Kaboom?


« Reply #11 - Posted 2003-11-12 20:20:14 »

Quote
Yep, it returns Object, you'll need a (String) infront of the accessor.

Kev



/me whispers: Pssst.. you weren't supposed to give it away... He's got to learn to interpret error messages and read the docs some day  Wink

Offline kevglass

« JGO Spiffy Duke »


Medals: 205
Projects: 24
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #12 - Posted 2003-11-13 04:42:43 »

Quote

* swpalmer whispers: Pssst.. you weren't supposed to give it away... He's got to learn to interpret error messages and read the docs some day  


Damn it! Could you mark it with <LetHimWorkItOut/> or something next time? Wink

Kev

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.

SHC (24 views)
2014-11-25 12:00:59

SHC (23 views)
2014-11-25 11:53:45

Norakomi (19 views)
2014-11-25 11:26:43

Gibbo3771 (22 views)
2014-11-24 19:59:16

trollwarrior1 (36 views)
2014-11-22 12:13:56

xFryIx (74 views)
2014-11-13 12:34:49

digdugdiggy (52 views)
2014-11-12 21:11:50

digdugdiggy (46 views)
2014-11-12 21:10:15

digdugdiggy (41 views)
2014-11-12 21:09:33

kovacsa (68 views)
2014-11-07 19:57:14
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!