[英]I can't run a program on Blue J
My programs on Blue J compile correctly and when I want to run it, the "run button" is gone. 我在Blue J上的程序正确编译,当我要运行它时,“运行按钮”消失了。 It is replaced with these buttons: 替换为以下按钮:
-new A2_1() -新的A2_1()
-void main(String[] args) -void main(String [] args)
-Open Editor .......(letters in red color) -打开编辑器.......(红色字母)
-Compile .............(letters in red color) -编译.............(红色字母)
-Inspect ..............(letters in red color) -检查..............(红色字母)
-Remove .............(letters in red color) -删除.............(红色字母)
************ It does that to all programs I am trying to run.******** ************它对我要运行的所有程序都起作用。
A2_1 is just the class name of the program. A2_1只是程序的类名。 I will say again: I can compile it but CANNOT RUN IT. 我会再说一遍:我可以编译它,但是不能运行它。 I have no further technical experience with BlueJ to fix this problem. 我没有使用BlueJ的进一步技术经验来解决此问题。
If it helps: 如果有帮助:
-I have the current JDK. -我有当前的JDK。 java version "1.8.0_11" Java(TM) SE Runtime Environment (build 1.8.0_11-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.11-b03, mixed mode) Java版本“ 1.8.0_11” Java™SE运行时环境(内部版本1.8.0_11-b12)Java HotSpot(TM)64位服务器VM(内部版本25.11-b03,混合模式)
-I have OS X 10.9.5 -我有OS X 10.9.5
This problem came after I changed something in my Mac. 在Mac上进行了某些更改之后,出现了此问题。 I was taking a programming class at the time and we were studying inheritance. 当时我正在上一门编程课,而我们正在研究继承。 And I needed programs to access other previous written programs in order to run. 而且我需要程序才能访问其他先前编写的程序才能运行。 Upon request of the professor I changed something in my Mac that deals with folder locations. 应教授的要求,我在Mac中更改了与文件夹位置有关的内容。 That is all I remember. 我只记得这些。
After you compiled the class: 编译完类后:
void main(String args[])
单击void main(String args[])
main
method) 单击确定 (因为您可能不需要main
方法的参数)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.