Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  Okay, I need help  (Read 2666 times)
0 Members and 2 Guests are viewing this topic.
Offline NeonStormy

JGO n00b
*

Posts: 12


Java games rock!


« on: 2003-11-10 18: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

JGO n00b
*

Posts: 12


Java games rock!


« Reply #1 on: 2003-11-10 18: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 Kernel
*****

Posts: 3535


Got any cats?


« Reply #2 on: 2003-11-10 20: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! Go get 'em!
Offline kevglass
« League of Dukes »

JGO Kernel
*****

Posts: 5214
Medals: 49


Mentally unstable, best avoided.


« Reply #3 on: 2003-11-11 01: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

JGO n00b
*

Posts: 12


Java games rock!


« Reply #4 on: 2003-11-11 12: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
*****

Posts: 5214
Medals: 49


Mentally unstable, best avoided.


« Reply #5 on: 2003-11-11 12:47:27 »

TF? Um..

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

Kev

Offline NeonStormy

JGO n00b
*

Posts: 12


Java games rock!


« Reply #6 on: 2003-11-11 14: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

Full Member
**

Posts: 221


"C8 H10 N4 O2"


« Reply #7 on: 2003-11-11 15: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

JGO n00b
*

Posts: 12


Java games rock!


« Reply #8 on: 2003-11-11 18:33:17 »

Thanks!

One more question:

Why doesn't this work:

String ct;

ct = jList1.getSelectedItem();
Offline swpalmer

JGO Kernel
*****

Posts: 3438
Medals: 4


Where's the Kaboom?


« Reply #9 on: 2003-11-11 18: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! Go get 'em!
Offline kevglass
« League of Dukes »

JGO Kernel
*****

Posts: 5214
Medals: 49


Mentally unstable, best avoided.


« Reply #10 on: 2003-11-11 23:15:16 »

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

Kev

Offline swpalmer

JGO Kernel
*****

Posts: 3438
Medals: 4


Where's the Kaboom?


« Reply #11 on: 2003-11-12 15: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
*****

Posts: 5214
Medals: 49


Mentally unstable, best avoided.


« Reply #12 on: 2003-11-12 23: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]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.099 seconds with 19 queries.