0

Hi,
I've done with my project and the instructor said that the file should be excutable file how can I run my project wothput netbean .. I'm using macbook

3
Contributors
4
Replies
18
Views
4 Years
Discussion Span
Last Post by JamesCherrill
0

through a terminal/prompt/...
if it's a class file you are trying to run:
java MyClass
if it's a jar file:
java -jar MyJar.jar

but honestly, if you don't know how to do this, or not even how to find this information on the net, you really shouldn't be working with Netbeans (or any other IDE, for that matter), you should first learn the basics of the language.

0

Thank you at first I couldn't find the JAR file after I build and clean the project the JAR file showed in my folder

0

That's right - the jar file (etc if needed) is placed in the dist folder when you build & clean, replacing anything that may have been there before (so don't put anything in here yourself!).
Mark this "solved"?

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.