I'm trying to run a project in Netbeans, but I'm running into some major problems. When I build project (F11) it creates a jar file instead of simply creating classes, and I'm unable to run the project because no classes were found. I suspect it might be because I added a jar file as a library.
Anyway, when I build the program it tells me to run it from command line by using java -jar program.jar
. So I try that and I get Error: Could not find or load main class something.java
. In project properties correct class is chosen to be a main class.
Help would be much appreciated!