简体   繁体   中英

Run NetBeans java project by windows command prompt

I wrote a java program by netbeans 6.9.1 and jdk 1.6. I don't want to use the output windows of netbeans because it's a bit slow. I am using Windows xp sp3 and I want to run by the cmd. I tried to find in the project properties -> run but nothing there.

在此处输入图片说明

If you run the project in netbeans it should ask you to pick the main class. In your case that is already done because there is a value of sample.Graph in the Main Class field.

Then do a clean and build and look at the output window. It should tell you what java -jar command to use to run the program on the command line.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM