Compilation of 'D:\bea\WEBLOG~1\samples\domains\workshop\.\cgServer\.wlnotdelete\extract\cgServer_gs_gs\jsp_servlet\_web\__top.java' failed:
--------------------------------------------------------------------------------
D:\bea\WEBLOG~1\samples\domains\workshop\.\cgServer\.wlnotdelete\extract\cgServer_gs_gs\jsp_servlet\_web\__top.java:19: cannot access com.hiaward.gs.entity.AdminEntity
probably occurred due to an error in /web/top.jsp line 4:
<%@ page import="com.hiaward.gs.entity.AdminEntity"%>
--------------------------------------------------------------------------------
Full compiler error(s):
D:\bea\WEBLOG~1\samples\domains\workshop\.\cgServer\.wlnotdelete\extract\cgServer_gs_gs\jsp_servlet\_web\__top.java:19: cannot access com.hiaward.gs.entity.AdminEntity
bad class file: D:\bea\WEBLOG~1\samples\domains\workshop\cgServer\.wlnotdelete\extract\cgServer_gs_gs\jarfiles\_wl_cls_gen.jar(com/hiaward/gs/entity/AdminEntity.class)
class file has wrong version 49.0, should be 48.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
import com.hiaward.gs.entity.AdminEntity; //[ /web/top.jsp; Line: 4]
^
1 error
-------------------------------------------------------------------------
以上的错误原因应该是JDK版本问题!本人用的是WEBLOGIC8应用服务器,ECLIPSE中是使用WEBLOGIC 自带的JDK编绎的,没有发现错误.然后打成WAR包,部署在WEBLOGIC服务器上. 为何还会出现版本冲突的问题呢????????
--------------------------------------------------------------------------------
D:\bea\WEBLOG~1\samples\domains\workshop\.\cgServer\.wlnotdelete\extract\cgServer_gs_gs\jsp_servlet\_web\__top.java:19: cannot access com.hiaward.gs.entity.AdminEntity
probably occurred due to an error in /web/top.jsp line 4:
<%@ page import="com.hiaward.gs.entity.AdminEntity"%>
--------------------------------------------------------------------------------
Full compiler error(s):
D:\bea\WEBLOG~1\samples\domains\workshop\.\cgServer\.wlnotdelete\extract\cgServer_gs_gs\jsp_servlet\_web\__top.java:19: cannot access com.hiaward.gs.entity.AdminEntity
bad class file: D:\bea\WEBLOG~1\samples\domains\workshop\cgServer\.wlnotdelete\extract\cgServer_gs_gs\jarfiles\_wl_cls_gen.jar(com/hiaward/gs/entity/AdminEntity.class)
class file has wrong version 49.0, should be 48.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
import com.hiaward.gs.entity.AdminEntity; //[ /web/top.jsp; Line: 4]
^
1 error
-------------------------------------------------------------------------
以上的错误原因应该是JDK版本问题!本人用的是WEBLOGIC8应用服务器,ECLIPSE中是使用WEBLOGIC 自带的JDK编绎的,没有发现错误.然后打成WAR包,部署在WEBLOGIC服务器上. 为何还会出现版本冲突的问题呢????????
解决方案 »
- 关于java对象垃圾回收的问题
- InputStream,fileInputStream,Filereader有啥区别,以及用法
- 程序一:请各位高手看看,为什么出错
- 请问java mail 能不能接收邮件
- JAVA如何实现跟TELNET一样
- 关于try catch问题
- 我的线程是不是停了?请大家帮我看看
- Pattern p = Pattern.compile("^\w+$");为什么报错Invalid escape sequence (valid ones are \b \t \n \f \r \" \' \\ )
- 初学者---怎么学习JAVA?
- 菜鸟提问:我想做一个Button按钮做一个点击事件,我是MouseDown事件中做的,老是没做成功,请大家提示:
- 如何监听SWT Browser控件里的鼠标坐标?
- 如何判断上传到FTP服务器的文件大小
import com.hiaward.gs.entity.AdminEntity; //[ /web/top.jsp; Line: 4]