Debian配置JAVA环境报错之Could not find the main class: HelloWorld. Program will exit.
来源:互联网 发布:qq飞车高改天启数据 编辑:程序博客网 时间:2024/06/08 05:20
配置好环境变量后测试出现以下错误:
Exception in thread “main” java.lang.NoClassDefFoundError: HelloWord
Caused by: java.lang.ClassNotFoundException: HelloWord
at java.net.URLClassLoader
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: HelloWorld. Program will exit.
解决方案:
1. 环境变量配置有问题,可百度
2. 版本冲突:运行java -version时显示1.6.,但javac -version是1.8., 解决方案,locate jdk,找到1.6的目录,删之即可。
0 0
- Debian配置JAVA环境报错之Could not find the main class: HelloWorld. Program will exit.
- 报错could not find the main class:java.overWrite.overWrite.Program will exit.的解决方法
- (报错)could not find the main class, Program will exit(已解决)
- DOS或SH中运行java报错Could not find the main class: XX. Program will exit.
- Could not find the main class. Program will exit
- could not find the main class. Program will exit.
- Could not find the main class. Program will exit...
- Could not find the main class. Program will exit
- Could not find the main class.Program will exit.
- Could not find the main class. Program will exit.
- junit:could not find the main class Program will exit
- [Eclipse] Could not find the main class. Program will exit
- could not find the main class : program will exit
- Could not find the main class. Program will exit
- 【解决方法】Could not find the main class Program will exit
- Could not find the main class Program will exit
- Could not find the main class: *****.Program will exit
- Could not find the main class. Program will exit.
- UVa 11991 I Can Guess The Data Structure(STL基础)
- MyEclipse6.6 配置SVN的方法
- Win8下无法运行VC6.0解决方法
- jmeter内存溢出处理方式记录
- C/C++混合编程
- Debian配置JAVA环境报错之Could not find the main class: HelloWorld. Program will exit.
- POJ1088 滑雪 DP+记忆化搜索
- Codeforces Round #294 (Div. 2)——C.D
- 【精度问题】【HDU2899】Strange fuction
- 我的poj 计划
- iOS 开源项目(二)
- 如何用objective-c发送udp包
- 关于IO信号质量和芯片内部布线延迟的思考
- javascript内置对象速查(二)