• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Netbeans, exporting to jar file

 
colin shuker
Ranch Hand
Posts: 750
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 750
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic