could not find the main class.profram will exit 异常导入的包import java.io.FileInputStream;import org.apache.poi.poifs.filesystem.POIFSFileSystem; import org.apache.poi.hssf.usermodel.HSSFWorkbook; import org.apache.poi.hssf.usermodel.HSSFSheet

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/20 19:30:14
could not find the main class.profram will exit 异常导入的包import java.io.FileInputStream;import org.apache.poi.poifs.filesystem.POIFSFileSystem; import org.apache.poi.hssf.usermodel.HSSFWorkbook; import org.apache.poi.hssf.usermodel.HSSFSheet
xU]oG+#*9o#>,K&"4m#,fwloMbHn)(T<4^hC;k>xs=g8 &r@%5薋 [{y˶f $7e)o,ʕ[Q&Ќ>cq&狢`Dwν=uO7*{R% \O}51^Tbꍫp^>'̡&bqkf)=X!Dпl? 8B1VrX=0qӌf[gJٺ[W\{ʏqcQvnr}g08L~|)$M°Iph'ԅ5GDTGOWgG91|f\T ҏ蟧)6|C:|d?##9t hlOQ f|uQV)f́uebI@;}WmsŎ <.p6pzx`8},xݣ LdA<ETm2 q)W$AU6\^y<^qN&lv^;welՓ`;m+ڬvdi΍@UW_;OdmMEh8s6?C+Qi]~*x~f+l-%߼G@h%w;#HkϞ`Y3l$ v哛`p߈{7!,#LX.h: 0% RMr艠"rEc+LIuU,jGprB9ċ=U |~v&q~Ҹu;Z

could not find the main class.profram will exit 异常导入的包import java.io.FileInputStream;import org.apache.poi.poifs.filesystem.POIFSFileSystem; import org.apache.poi.hssf.usermodel.HSSFWorkbook; import org.apache.poi.hssf.usermodel.HSSFSheet
could not find the main class.profram will exit 异常
导入的包
import java.io.FileInputStream;
import org.apache.poi.poifs.filesystem.POIFSFileSystem;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFCell;
出现的异常
java.lang.UnsupportedClassVersionError:Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
Exception in thread "main"
请告诉帮我分析一下问题的所在,中间程序应该没有问题吧,我不知道是java版本错啦吗,我用的是1.5的jdk

could not find the main class.profram will exit 异常导入的包import java.io.FileInputStream;import org.apache.poi.poifs.filesystem.POIFSFileSystem; import org.apache.poi.hssf.usermodel.HSSFWorkbook; import org.apache.poi.hssf.usermodel.HSSFSheet
编译和执行的JDK版本不一致 为了能在JDK版本为1.5机子上也能运行,就对myEclipse进行如下修改:Project->Properties->Java Compiler->Configure Workspace Setting,在弹出的页面中进行设置,将JDK由6.0改为5.0,然后就可以正常运行了.