1.Could not find the main class.
原文地址:http://rogerfederer.iteye.com/blog/737377
原因和解决
办法如下:
出现这个错误是由于你的jdk版本与eclipse高版本配置造成的.
因为我们使用高版本的JDK编译的Java class文件试图在较低版本的JVM上运行,所报的错误。 因为,高版本的JDK生成的class文件使用的格式,可能与低版本的JDK的.class文件格式不同。这样,低版本的JVM无法解释执行这个.class文件,会抛出Could not find the main class.program will exit不支持的Class版本错误。
解决方法:
1. 弄清楚该程序是在哪个JDK版本下开发的
2. 在myEclipse 菜单->Windows->Proferences->java-> Installs Jres重新设置JDK路径,改为开发程序时的JDK版本(我做到这一步就可以了!我的eclipse是7.0,jdk是6u13的。)
3. Windows->Proferences->java->Compiler,将compiler compliance level设置为与上面相同的JDK
2.URLClassLoader$1.run() Source not found.
原文地址:http://stackoverflow.com/questions/14937235/i-cant-use-the-debugger-in-eclipse-juno
his happens because you (accidentally) created a breakpoint somewhere in
出现这个错误是由于你的jdk版本与eclipse高版本配置造成的.
因为我们使用高版本的JDK编译的Java class文件试图在较低版本的JVM上运行,所报的错误。 因为,高版本的JDK生成的class文件使用的格式,可能与低版本的JDK的.class文件格式不同。这样,低版本的JVM无法解释执行这个.class文件,会抛出Could not find the main class.program will exit不支持的Class版本错误。
解决方法:
1. 弄清楚该程序是在哪个JDK版本下开发的
2. 在myEclipse 菜单->Windows->Proferences->java-> Installs Jres重新设置JDK路径,改为开发程序时的JDK版本(我做到这一步就可以了!我的eclipse是7.0,jdk是6u13的。)
3. Windows->Proferences->java->Compiler,将compiler compliance level设置为与上面相同的JDK
2.URLClassLoader$1.run() Source not found.
原文地址:http://stackoverflow.com/questions/14937235/i-cant-use-the-debugger-in-eclipse-juno
his happens because you (accidentally) created a breakpoint somewhere in
URLClassLoader
.
Check the "Breakpoints" view (it's next to the "Variables" view) in your debugger perspective. There should be a breakpoint which readsURLClassLoader$1.run()
or at leastURLClassLoader
. Select and delete it.
3.boolean java.lang.String.contains(CharSequence s) 如何处理中文?