Hi, I have a project that uses 'basicplayer', a mp3 player.

I can get it to work when it runs in netbeans 6.9.1, but when I build project (into jar file in dist folder), 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

Recommended Answers

All 3 Replies

if your project run from NB then

Project - Properties - Run

there select your main class, save that, clean & build, that all


for Eclipse same, but for built you have to look for buitl plugin or script(s),

Thanks, but I keep getting this error

Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/apach
e/commons/logging/LogFactory
at basicplayer.BasicPlayer.<clinit>(BasicPlayer.java:75)

That log Factory thing should be in one of the 8 jar files added to the project, but they aren't getting exported into whole jar.

Any thoughts?

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.