Author
Netbeans, exporting to jar file
colin shuker
Ranch Hand
Joined: Apr 11, 2005
Posts: 712
Hi, I have a project that uses 'basicplayer', a mp3 player.
I can get it to work when it runs in netbeans, but when I build project, it no longer runs.
I need to get the jar files that I added to project into the jar file I export to.
I originally had it working in eclipse with fatjar, but been trying for hours and cannot get it to work,
so thought I would try netbeans.
Can anyone help?
Thanks
colin shuker
Ranch Hand
Joined: Apr 11, 2005
Posts: 712
Never mind, I got it to work in eclipse 6.9.1,
Just goto export, then runnable JAR file instead of JAR file.
Then, select the 2nd of the 3 radio buttons, and thats more or less all you have to do.
Peter Johnson
author
Bartender
Joined: May 14, 2008
Posts: 5541
posted Feb 26, 2011 18:29:57
0
Sounds like you need to read up on classpaths and how to ensure that your app is including all the required JARs at runtime. Then you won't be at the mercy of an IDE.
JBoss In Action
subject: Netbeans, exporting to jar file