Okay, I need help

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…

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.

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.

I wrote this little tutorial:

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

which I believe was also added to the Wiki somewhere :slight_smile:

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

Kev

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

And kev - are you from TF? :stuck_out_tongue:

TF? Um…

Team Fortress - no,
The Forests (Edge) - no,
Uh…? :slight_smile:

Kev

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.

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.

Thanks!

One more question:

Why doesn’t this work:

String ct;

ct = jList1.getSelectedItem();

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

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

Kev

[quote]Yep, it returns Object, you’ll need a (String) infront of the accessor.

Kev
[/quote]
/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:

Damn it! Could you mark it with or something next time? :wink:

Kev