重新运行maven的命令就ok了。
MyEclipse运行Java出错:could not find the main class:test.program will exit(导入项目) 自己新建的项目运行没有任何问题。 但是我导入的很早以前别人写的项目,然后run就会弹框could not find the main class:test.program will exit 请确认JAVA编译器和JRE版本一致 右键点击项目--->>>preference-->>>JAVA compi...
1、首先打开MyEclipse,在该页面中,点击打开主菜单中的Windows选项。2、然后在弹出来的窗口中点击打开“Proferences”选项。3、然后在弹出来的窗口中点击打开“java compiler”选项。4、然后在弹出来的窗口中将编译器的JDK版本改为1.7的。如果安装的jre是1.6的则将这个改为1.6,根据自身的版本将JDK...
myeclipse出现Could not find the main class原因分析 昨天晚上像往常一样打开myeclipse,随便运行一个类(run as java application),居然弹出Could not find the main class.Program will exit. 按照以往的经验,做如下检查: 编译环境检查 window->preferences->installed JREs 编译级别检查 右击工程名->properties->java...
MyEclipse中could not find the main class. Program w,在MyEclipse中运行任何控制台的程序JVM都会出现上述问题,并报如下错误:java.lang.UnsupportedClassVersionError: Bad version number in .class file at java.lang.ClassLoader.defineClass1(Native Method) at jav
错误提示找不到main函数入口、 打开命令行,输入javac 看看报不报错。、用命令行运行文件看看正不正常,以此来确定问题出在谁身上,如果文件或者java环境配置错误 还好解决,如果是myeclipse的问题,可能是那地方需要设置,你可以在找找、 用排查法找错 ...
编译环境检查 window->preferences->installed JREs 编译级别检查 右击工程名->properties->java compiler 编译路径检查 右击工程名->build path->coufiguration build path 执行clean project->clean 我重新搞了一下 jres 就ok 了。 重新运行maven的命令就ok了。
不能发现主文件,程序即将关闭!需要用到其他包之间的类时,需要实例化对象!
Could not find the main class: org.apache.catalina.startup.Bootstrap. Program will exit. 二、解决办法: 通过如下操作,问题解决:MyEclipse->Window->Preferences->MyEclipse->Servers->Tomcat->Tomcat 6.x->Laucch->Create Launch Configuration->Classpath->Bootstrap Entities->Add External JARs->选择并填...
问题描述 Could not find the main class:org.apache.catalina.startup.Bootstrap. Program will exit 问题原因 主要原因可能就是MyEclipse和Tomcat的版本不兼容问题