aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Netbeans, exporting to jar file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Netbeans, exporting to jar file" Watch "Netbeans, exporting to jar file" New topic
Author

Netbeans, exporting to jar file

colin shuker
Ranch Hand

Joined: Apr 11, 2005
Posts: 744
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: 744
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: 5830
    
    7

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Netbeans, exporting to jar file