Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (404)
games submitted by our members
Games in WIP (289)
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 3150 times)
0 Members and 1 Guest are viewing this topic.
Offline NeonStormy

Senior Newbie




Java games rock!


« Posted 2003-11-11 00: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-11 00: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 02: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!
Play the free demo of Revenge of the Titans!
Offline kevglass
« League of Dukes »

JGO Kernel


Medals: 54
Projects: 20


Mentally unstable, best avoided.


« Reply #3 - Posted 2003-11-11 07: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 18:35:23 »

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

And kev - are you from TF? Tongue
Offline kevglass
« League of Dukes »

JGO Kernel


Medals: 54
Projects: 20


Mentally unstable, best avoided.


« Reply #5 - Posted 2003-11-11 18: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 20: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 Member




"C8 H10 N4 O2"


« Reply #7 - Posted 2003-11-11 21: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-12 00:33:17 »

Thanks!

One more question:

Why doesn't this work:

String ct;

ct = jList1.getSelectedItem();
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #9 - Posted 2003-11-12 00: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
« League of Dukes »

JGO Kernel


Medals: 54
Projects: 20


Mentally unstable, best avoided.


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

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

Kev

Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #11 - Posted 2003-11-12 21: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
« League of Dukes »

JGO Kernel


Medals: 54
Projects: 20


Mentally unstable, best avoided.


« Reply #12 - Posted 2003-11-13 05: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.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Get high quality music tracks for your game!

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

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (31 views)
2013-05-17 21:29:12

alaslipknot (40 views)
2013-05-16 21:24:48

gouessej (70 views)
2013-05-16 00:53:38

gouessej (69 views)
2013-05-16 00:17:58

theagentd (78 views)
2013-05-15 15:01:13

theagentd (72 views)
2013-05-15 15:00:54

StreetDoggy (113 views)
2013-05-14 15:56:26

kutucuk (136 views)
2013-05-12 17:10:36

kutucuk (136 views)
2013-05-12 15:36:09

UnluckyDevil (145 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.099 seconds with 21 queries.