[英]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. 我在使用Windows 7 64位JDK上的NetBeans IDE 8.2时遇到了麻烦。 NetBeans can compile code, but doesn't run it.
NetBeans可以编译代码,但不能运行它。 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.
该URL显示一个图像,该图像显示了我在尝试运行代码后得到的信息。
https://i.stack.imgur.com/RsEvx.png 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. JavaApplication1.java
仍设置为主类。
To change your main class, go into Project Properties -> Run and change "Main Class" to TestClass.java
. 要更改您的主类,请进入项目属性->运行,并将“主类”更改为
TestClass.java
。
Essentially, the compiler is still running whatever main function is found in JavaApplication1.java
. 本质上,无论
JavaApplication1.java
什么主要功能,编译器仍在运行。
@notyou Also mentioned how you can right click a file and run it directly, instead of changing the project settings. @notyou还提到了如何右键单击文件并直接运行它,而不用更改项目设置。 I used to use this but it slipped me!
我曾经用过,但它让我溜了! This is super useful.
这是超级有用的。
I'm pretty sure this question has some answers for you. 我很确定这个问题会为您提供一些答案。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.