简体   繁体   中英

How to work with NetBeans IDE 8.2 on Windows 7 64-bit with JDK

I've been having trouble using NetBeans IDE 8.2 with JDK on Windows 7 64-bit. NetBeans can compile code, but doesn't run it. I've downloaded all of the necessary files and programs and even consulted with a computer programming teacher, but I haven't been able to work around this issue. The URL displays an image that shows what I get back after attempting to run a code.

https://i.stack.imgur.com/RsEvx.png

I appreciate any help I can get.

Thanks,

--Sam

JavaApplication1.java is still set as your main class.

To change your main class, go into Project Properties -> Run and change "Main Class" to TestClass.java .

Essentially, the compiler is still running whatever main function is found in JavaApplication1.java .

@notyou Also mentioned how you can right click a file and run it directly, instead of changing the project settings. I used to use this but it slipped me! This is super useful.

I'm pretty sure this question has some answers for you.

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