0

I was trying to set up compiling a Netbeans project from the command line. The project uses Ant as a build system, so I found this and followed it. The program compiles fine, however, when trying to run the program using java -jar file.jar it terminates, saying no main manifest attribute.

Furthermore, I would also like to know if there is a way to run the ant command for a specific file, like one would in netbeans when right-clicking and selecting Run file, as when running ant jar there is no opportunity to select a file.

2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.