今天又一次装JCreator,还是老错误!
今天又一次装JCreator,还是老错误!求谁给个答案,是为什么!一运行程序就显示,下面的东西!每次都一样!!
--------------------配置: myproject - <默认> - <默认>--------------------
命令 : "\bin\javac.exe" -classpath "D:\JCreator Pro3.50 010\MyProjects\myproject\" "D:\JCreator Pro3.50 010\MyProjects\myproject\myproject.java"myproject.javaD:\JCreator Pro3.50 010\MyProjects\myproject\D:\JCreator Pro3.50 010\MyProjects\myproject\myproject.java-classpath "D:\JCreator Pro3.50 010\MyProjects\myproject\" -d "D:\JCreator Pro3.50 010\MyProjects\myproject" "D:\JCreator Pro3.50 010\MyProjects\myproject\myproject.java"
目录 : "D:\JCreator Pro3.50 010\MyProjects\myproject"
Error : Invalid path, \bin\javac.exe -classpath "D:\JCreator Pro3.50 010\MyProjects\myproject" D:\JCreator" Pro3.50 "010\MyProjects\myproject\myproject.javamyproject.javaD:\JCreator Pro3.50 010\MyProjects\myproject\D:\JCreator Pro3.50 010\MyProjects\myproject\myproject.java-classpath D:\JCreator" Pro3.50 010\MyProjects\myproject" -d "D:\JCreator Pro3.50 010\MyProjects\myproject" "D:\JCreator Pro3.50 010\MyProjects\myproject\myproject.java"
处理已完成
我在dos下运行了“java -version "这个是没问题的!环境变量也设置好了!!!
我编写的程序是这样的:
class myproject{
int age;
void about()
{
//int age=60;
System.out.println("我的年龄是"+age );
}
public static void main(String [] args)
{
myproject p1 = new myproject();
myproject p2 = new myproject();
p1.age = -30;
p1.about();
p2.about();
}
}
[ 本帖最后由 lizhigushuan 于 2013-1-15 18:41 编辑 ]