Netbeans - How to generate a jar with dependencies without the Maven

2

I have a project in Netbeans, however I only know Maven and I have some dependencies in the project.

If I build or even run Netbeans, everything works smoothly, but I wanted to get the jar and test it on other machines.

I've tried exporting jar but it gives ClassNotFound error.

How can I do this? What is the right way?

    
asked by anonymous 20.02.2014 / 22:28

2 answers

2

In addition, you can add dependent jars using the traditional method:

File > Project Properties > Libraries > Run-Time Libraries
    
20.02.2014 / 22:55
0

You can package the dependencies in the jar using Maven. The Netbeans website has step-by-step:

link

    
20.02.2014 / 22:44