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...
|
|
|
|
|
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.
|
|
|
|
|
Jeff
|
 |
«
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.
|
|
|
|
Games published by our own members! Check 'em out!
|
|
|
|
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? 
|
|
|
|
|
kevglass
|
 |
«
Reply #5 - Posted
2003-11-11 18:47:27 » |
|
TF? Um.. Team Fortress - no, The Forests (Edge) - no, Uh..?  Kev
|
|
|
|
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.
|
|
|
|
|
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
|
|
|
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();
|
|
|
|
|
swpalmer
|
 |
«
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!
|
|
kevglass
|
 |
«
Reply #10 - Posted
2003-11-12 05:15:16 » |
|
Yep, it returns Object, you'll need a (String) infront of the accessor.
Kev
|
|
|
|
swpalmer
|
 |
«
Reply #11 - Posted
2003-11-12 21:20:14 » |
|
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 
|
|
|
|
kevglass
|
 |
«
Reply #12 - Posted
2003-11-13 05:42:43 » |
|
* 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?  Kev
|
|
|
|
|