44问答网
所有问题
运行java时出现could not find the main class怎么解决?
如题所述
举报该问题
推荐答案 2018-01-06
解决办法如下:
1、先找到构建路径;
2、选中MyEclipse中带有的JDK;
3、然后如果你有外部的jdk,再执行下面的步骤;
4、选中:外部的jdk;
5、成功,OK!确认就行了。
温馨提示:答案为网友推荐,仅供参考
当前网址:
http://44.wendadaohang.com/zd/D3GWZWW363Z36KW6G3.html
相似回答
JAVA
couldn't
find
the
main
class怎么解决
啊
答:
第一,要么你没有声明主类。第二,要么你
class
path变量设置错误,用命令
java
检查下。
Java
-jar命令
could not
find
the
main
class怎么解决
答:
没有找到主函数
。在你的jar里必须有且只能有一个方法为主方法,例如:public class test { public static void main(String args[]) {// 必须定义主方法,不然程序从哪里开始执行呢 // 这里定义你的主方法 } }
...
java
中
出现
错误提示
couldn't
find
the
main
class
com.sun.tools.jav...
答:
第一,你要保证,你的文件名与public class 的类名相同 第二,环境变量没有配置好
。找到环境变量 假设JDK的安装路径:E:\jdk 在用户变量中添加下面的变量和属性值 Classpath .;E:\jdk\lib\tools.jar; E:\jdk\lib\dt.jar Path .;E:\jdk;E:\jdk\bin 在系统变量中添加下面的变量和属性...
...
时出现Could
not
find
the
main
class 怎么解决?
??
答:
这是我的
class
path配置,请注意前面还有个点.;%
JAVA
_HOME%\jre\lib\rt.jar;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;点.表示首先在当前目录查找。
大家正在搜
couldnotfindthe
couldnotfinduser
could find ntldr
could not create
class not found
canyoufindtina
couldnotfind
can什么find什么
canyoufind是什么意思
相关问题
java编程时出现Could not find the ma...
编译java时出现这个could not find the ...
java运行时说could not find the mai...
java新手 总是弹出could not find the ...
在CMD上运行helloworld时提示:“Could no...
jar运行时出现could not find the mai...
运行java时出现could not find the ma...
Java -jar命令could not find the ...