Could not find the main class.program will exit错误/////1.改变字体//////2.恢复输入点(.)后显示提示
来源:互联网 发布:apk软件注册码破解 编辑:程序博客网 时间:2024/05/18 02:12
1.改变字体
首先打开eclipse,按下面的方法即可修改字体。菜单项:window ->preferences -> general -> appearance -> colors and fonts,然后在右边看到一个编辑区:选择 java editor text fonts 选项。
就可以修改字体。
2.恢复输入点(.)后显示提示
Window->Preferences->Java->Editor->Content Assist->Advanced选项
如图中所示打勾。
3.在Eclipse中运行Java程序时,报出
Could not find the main class.program will exit错误
原因:使用高版本JDK编译的Java class文件试图在较低版本的JVM上运行,所报的错误。高版本的JDK生成的class文件使用的格式,可能与低版本的JDK的.class文件格式不同。
不知怎么回事,我的Java文件夹中有两个:jre1.5.0_02和jre1.6.0_04(正确版本)
解决方法:
Window->Preferences->Java-> Installed JREs重新设置JDK路径,改为开发程序时的JDK版本
首先打开eclipse,按下面的方法即可修改字体。菜单项:window ->preferences -> general -> appearance -> colors and fonts,然后在右边看到一个编辑区:选择 java editor text fonts 选项。
就可以修改字体。
2.恢复输入点(.)后显示提示
Window->Preferences->Java->Editor->Content Assist->Advanced选项
如图中所示打勾。
3.在Eclipse中运行Java程序时,报出
Could not find the main class.program will exit错误
原因:使用高版本JDK编译的Java class文件试图在较低版本的JVM上运行,所报的错误。高版本的JDK生成的class文件使用的格式,可能与低版本的JDK的.class文件格式不同。
不知怎么回事,我的Java文件夹中有两个:jre1.5.0_02和jre1.6.0_04(正确版本)
解决方法:
Window->Preferences->Java-> Installed JREs重新设置JDK路径,改为开发程序时的JDK版本
0 0
- Could not find the main class.program will exit错误/////1.改变字体//////2.恢复输入点(.)后显示提示
- 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.
- 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
- 什么是令牌桶
- 随机产生不同的数
- 大整数乘法c语言版
- Java中Synth外观学习(一)--建立工程加载自定义外观的XML文件
- JMS的消息模式
- Could not find the main class.program will exit错误/////1.改变字体//////2.恢复输入点(.)后显示提示
- 简单十步让你全面理解SQL
- 使用多个values文件造成样式不统一的问题
- 系统故障及软件质量
- 简易的验证码方法
- 【Cocos2d-x 2.2.2 自学笔记之一】利用自己的jar快捷创建项目
- Android中使用多进程的应用程序注意
- typedef,结构体,共用体,联合体
- 【Linux Kernel】抢占