Topic: 谁能帮我一下啊(Invalid path, \bin\javac.exe ...)

  Print this page

1.谁能帮我一下啊(Invalid path, \bin\javac.exe ...) Copy to clipboard
Posted by: hlyy1907
Posted on: 2005-09-11 15:01

请尽量使用准确的文字描述作为标题
若新帖再無恰当标题,將会被刪除

Original subject :
谁能帮我一下啊


我要运行java时,语法没有错,就提示以下这个错误,
Error : Invalid path, \bin\javac.exe -classpath D:\javawork -d D:\javawork D:\javawork\fangcheng.java
这是什么原因啊
是不是环境变量设错了啊
我是把java装在c 盘的j2sdk1.4.2上的
我的classpath=c:\j2sdk1.4.2\lib\dt.jar;c:\j2sdk1.4.2\lib\tools.jar
path=C:\j2sdk1.4.2\bin

2.Re:谁能帮我一下啊 [Re: hlyy1907] Copy to clipboard
Posted by: yan_1203
Posted on: 2005-09-11 21:36

classpath设置错误
应该为:classpath=.;c:\j2sdk1.4.2\lib\dt.jar;c:\j2sdk1.4.2\lib\tools.jar

3.Re:谁能帮我一下啊(Invalid path, \bin\javac.exe ...) [Re: hlyy1907] Copy to clipboard
Posted by: why
Posted on: 2005-09-11 22:17

> 运行java时,语法没有错
运行java? I don't think so, you're using javac to compile your java file.
语法没有错? How are you so sure of this? You didn't seem to have your java file compiled -- of course, you could be confident of your Java skill.

Have you installed JDK correctly? (Let us know how you're sure it is good)
Do you have multiple JDKs?

One more question: are you using an IDE like JCreator?


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923