RCP发布出现 java.lang.NoClassDefFoundError 异常 [问题点数:10分,结帖人java2000_net]

Bbs1
本版专家分:30
结帖率 100%
Bbs3
本版专家分:546
java.lang.NoClassDefFoundError异常
[code=Java][/code]rnrnUserDAO中的找username:rnrnpublic static User findUser(String name) rn try rn User user = (User)getSession().createQuery(rn "from User as u where u.username='" + name + "'")rn .uniqueResult();rn return user;rn catch (HibernateException ex) rn ex.printStackTrace();rn return null;rn finally rn if (getSession().isOpen()) rn if (getSession() != null)rn getSession().close();rn rn rn rnrnAction中的找“XX”用户发生<em>异常</em>rnrnpublic ActionForward execute(ActionMapping mapping, ActionForm form,rn HttpServletRequest request, HttpServletResponse response)rn throws Exception rn LogonForm logonForm = (LogonForm) form; rn User user = UserDAO.findUser("XX");rn if (user != null)rn return mapping.findForward("testlogn");rn elsern return mapping.getInputForward();rn
使用jdbc的程序出现java.lang.NoClassDefFoundError的异常
很简单的代码,在JCreator的集成环境中可以执行,但在命令行下不能运行,要做哪些设置?代码如下:rnimport java.io.*;rnimport java.sql.*;rnrnclass SimpleJDBCrn public static void main(String[] args) throws SQLException,IOException,ClassNotFoundExceptionrn Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");rn String dsURL="jdbc:odbc:JavaDb";rn Connection connection=DriverManager.getConnection(dsURL);rn rn if (connection==null)rn System.out.println("Could not establish connection.");rn elsern System.out.println("Connection successfully established.");rn Statement statement=connection.createStatement();rn rn int rc=0;rn rc=statement.executeUpdate("DROP TABLE EMPLOYEE");rn rc=statement.executeUpdate("CREATE TABLE EMPLOYEE(EmpId integer,LastName char(30),FirstName char(30))");rn rn statement.close();rn connection.close();rn rn rn
出现 java.lang.NoClassDefFoundError?
什么原因[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/monkey/12.gif][/img]
救命呀!!java.lang.NoClassDefFoundError异常!!
用Struts做MVC,当调用EJB时(代码如下)!rnrnProperties p = new Properties();rnp.put(Context.INITIAL_CONTEXT_FACTORY,rn "weblogic.jndi.WLInitialContextFactory");rn p.put(Context.PROVIDER_URL, "t3://localhost:7001");rnjavax.naming.Context ctx=new InitialContext(p); rnObject home=ctx.lookup("Dept");rnDeptHome deptHome=(DeptHome)javax.rmi.PortableRemoteObject.narrow(home,DeptHome.class);rndept.Dept client=deptHome.create();rnrn总是抛出rnError 500--Internal Server Error rnjava.lang.NoClassDefFoundError: login.LoginEmployeeHomern at mystruts.loginAction.class$(loginAction.java:21)rn at mystruts.loginAction.perform(loginAction.java:21)rn at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1787)rn at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1586)rn at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)rn at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)rn at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)rn at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)rn at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6310)rn at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)rn at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)rn at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622)rn at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)rn at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)rn at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)rn rn在此环境下重新写了一个相同代码的JAVA小程序,一切正常!!rnrn请各位帮忙分析一下!先谢啦!!
求助:java.lang.NoClassDefFoundError 异常
我做了一个上传 部署到tomcat上 运行没有问题 但是 部署到 geronimo 上 上传的时候报错java.lang.ClassNotFoundException: org.apache.commons.io.output.DeferredFileOutputStream in classloader org.apache.geronimo.configs/axis2/2.2.1/carrnrn我查了一下 网上大多都是说少 io jar包 我在tomcat部署时 io jar包在web程序里 tomcat lib 里面没有,但是 在geronimo 里面 有commons.io jar包 我怀疑是 jar包冲突 但是删除 web程序中的jar包 部署到 geronimo 后 ,依然<em>出现</em>这个问题 费解啊...rn
Hibernate异常java.lang.NoClassDefFoundError,急!!!!!!!!
各位大侠:rnrn在Eclipse开发环境中,执行到代码this.getPortalService(request).save(todo)时<em>出现</em><em>异常</em>;rnjava.lang.NoClassDefFoundError: org/hibernate/exception/DataExceptionrnrn其中todo是一个自定义类的对象;我重新下了hibernate3.jar包,还是不行,小弟实在不知道错在哪里了,望各位指点,谢谢!rn
异常">"java.lang.NoClassDefFoundError: javax/activation/DataSource"异常
hi,大家好rn 我用idea进行我的开发的,javax.activation.jar包我也加到了我的工程的class-path中了。在我的机器上是完全可以运行的,可是当我把工程原封不动的移植到服务器上后,运行工程它就抛出<em>异常</em>“java.lang.NoClassDefFoundError: javax/activation/DataSource”。我不知道是怎么回事,是不是与系统的环境变量有关,还望高手指教。
j2me出现java.lang.NoClassDefFoundError
我在学习j2mepolish。我导入了包,而且下面有那个类的class文件,但是老是<em>出现</em>java.lang.NoClassDefFoundError: de/enough/polish/util/Locale
编译是出现java.lang.NoClassDefFoundError
我用的是eclipse工具,写了一个java程序,第一次编译通过,说明程序没有错。该java调用了几个类,编译时产生了几个class文件,但是当我删掉了其中一个class文件后再编译该java程序发现<em>出现</em>了错误java.lang.NoClassDefFoundError。rn 是怎么回事,请教了。
RCP RCP RCP RCP
RCP RCP RCP RCPRCP RCP RCP RCPRCP RCP RCP RCPRCP RCP RCP RCP www.cyexhibit.cn
开发jms出现java.lang.NoClassDefFoundError: weblogic/transaction/internal/TransactionHelperImpl异常
在weblogic7下没有问题,而在weblogic10下却<em>出现</em><em>异常</em>,<em>异常</em>如下rnException in thread "main" java.lang.NoClassDefFoundError: weblogic/transaction/internal/TransactionHelperImplrn at weblogic.jndi.spi.EnvironmentManager$DefaultFactoryMaker.(EnvironmentManager.java:26)rn at weblogic.jndi.spi.EnvironmentManager.getInstance(EnvironmentManager.java:48)rn at weblogic.jndi.Environment.getContext(Environment.java:307)rn at weblogic.jndi.Environment.getContext(Environment.java:277)rn at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)rn at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)rn at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)rn at javax.naming.InitialContext.init(InitialContext.java:223)rn at javax.naming.InitialContext.(InitialContext.java:197)rn at com.ccit.jms10.queue.QueueSend.getInitialContext(QueueSend.java:131)rn at com.ccit.jms10.queue.QueueSend.main(QueueSend.java:87)rn代码是weblogic自带的例子,郁闷一天了
重启weblogic后webservice服务出现java.lang.NoClassDefFoundError异常
遇到一个很奇怪的问题. 之前Webservice服务用得好好的. 可有次重启了Weblogic以后. 服务就不能用了.客户端调用服务超时 后台日志报rnjava.lang.NoClassDefFoundErrorrn at org.apache.axis.deployment.wsdd.WSDDChain.makeNewInstance(WSDDChain.java:121)rn at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274)rn at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260)rn at org.apache.axis.deployment.wsdd.WSDDTargetedChain.makeNewInstance(WSDDTargetedChain.java:151)rn at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274)rn at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260)rn at org.apache.axis.deployment.wsdd.WSDDDeployment.getTransport(WSDDDeployment.java:410)rn at org.apache.axis.configuration.FileProvider.getTransport(FileProvider.java:257)rn at org.apache.axis.AxisEngine.getTransport(AxisEngine.java:332)rn at org.apache.axis.transport.http.AxisServlet.initQueryStringHandlers(AxisServlet.java:1057)rn at org.apache.axis.transport.http.AxisServlet.init(AxisServlet.java:200)rn at javax.servlet.GenericServlet.init(GenericServlet.java:256)rn at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:276)rn at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)rn at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)rn at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:68)rn at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)rn at weblogic.servlet.internal.StubLifecycleHelper.(StubLifecycleHelper.java:48)rn at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:504)rn at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:235)rn at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)rn at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3214)rn at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)rn at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)rn at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1983)rn at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1890)rn at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1344)rn at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)rn at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)rnrn求各位达人解答! thx
Maven管理的web项目,在使用tomcat发布的时候出现java.lang.NoClassDefFoundError
最近遇到Maven管理的web项目,在使用tomcat<em>发布</em>的时候<em>出现</em>java.lang.NoClassDefFoundError ,编译的时候没有问题,最后发现 是maven目录没有添加到项目管理的目录中右击项目的设置,deployment assembly , add ,java build path entries , Maven Dependencies 把maven目录添加进去就行
请教 java3d的applet发布出现 java.lang.NoClassDefFoundError: javax/media/j3d/Node 异常
自己的机器访问没问题,别人访问站点还是<em>出现</em><em>异常</em>,的plug in,java3d1.5 该装的都装了,rn控制台内容如下: rnJava Plug-in 1.5.0_06rn使用 JRE 版本 1.5.0_06 Java HotSpot(TM) Client VMrn用户主目录 = C:\Documents and Settings\Administrator rnrnjava.lang.NoClassDefFoundError: javax/media/j3d/Nodern at java.lang.Class.getDeclaredConstructors0(Native Method)rn at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)rn at java.lang.Class.getConstructor0(Unknown Source)rn at java.lang.Class.newInstance0(Unknown Source)rn at java.lang.Class.newInstance(Unknown Source)rn at sun.applet.AppletPanel.createApplet(Unknown Source)rn at sun.plugin.AppletViewer.createApplet(Unknown Source)rn at sun.applet.AppletPanel.runLoader(Unknown Source)rn at sun.applet.AppletPanel.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnException in thread "Thread-5" java.lang.NullPointerExceptionrn at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)rn at sun.plugin.AppletViewer.showAppletException(Unknown Source)rn at sun.applet.AppletPanel.runLoader(Unknown Source)rn at sun.applet.AppletPanel.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnjava.lang.NullPointerExceptionrn at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)rn at sun.plugin.AppletViewer.showAppletStatus(Unknown Source)rn at sun.applet.AppletPanel.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnException in thread "thread applet-App3DShow.class" java.lang.NullPointerExceptionrn at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)rn at sun.plugin.AppletViewer.showAppletException(Unknown Source)rn at sun.applet.AppletPanel.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnjava.lang.NoClassDefFoundError: javax/media/j3d/Nodern at java.lang.Class.getDeclaredConstructors0(Native Method)rn at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)rn at java.lang.Class.getConstructor0(Unknown Source)rn at java.lang.Class.newInstance0(Unknown Source)rn at java.lang.Class.newInstance(Unknown Source)rn at sun.applet.AppletPanel.createApplet(Unknown Source)rn at sun.plugin.AppletViewer.createApplet(Unknown Source)rn at sun.applet.AppletPanel.runLoader(Unknown Source)rn at sun.applet.AppletPanel.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnException in thread "Thread-12" java.lang.NullPointerExceptionrn at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)rn at sun.plugin.AppletViewer.showAppletException(Unknown Source)rn at sun.applet.AppletPanel.runLoader(Unknown Source)rn at sun.applet.AppletPanel.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnjava.lang.NullPointerExceptionrn at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)rn at sun.plugin.AppletViewer.showAppletStatus(Unknown Source)rn at sun.applet.AppletPanel.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnException in thread "thread applet-App3DShow.class" java.lang.NullPointerExceptionrn at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)rn at sun.plugin.AppletViewer.showAppletException(Unknown Source)rn at sun.applet.AppletPanel.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnjava.lang.NoClassDefFoundError: javax/media/j3d/Nodern at java.lang.Class.getDeclaredConstructors0(Native Method)rn at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)rn at java.lang.Class.getConstructor0(Unknown Source)rn at java.lang.Class.newInstance0(Unknown Source)rn at java.lang.Class.newInstance(Unknown Source)rn at sun.applet.AppletPanel.createApplet(Unknown Source)rn at sun.plugin.AppletViewer.createApplet(Unknown Source)rn at sun.applet.AppletPanel.runLoader(Unknown Source)rn at sun.applet.AppletPanel.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnException in thread "Thread-16" java.lang.NullPointerExceptionrn at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)rn at sun.plugin.AppletViewer.showAppletException(Unknown Source)rn at sun.applet.AppletPanel.runLoader(Unknown Source)rn at sun.applet.AppletPanel.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnjava.lang.NullPointerExceptionrn at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)rn at sun.plugin.AppletViewer.showAppletStatus(Unknown Source)rn at sun.applet.AppletPanel.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnException in thread "thread applet-App3DShow.class" java.lang.NullPointerExceptionrn at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)rn at sun.plugin.AppletViewer.showAppletException(Unknown Source)rn at sun.applet.AppletPanel.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnjava.lang.NoClassDefFoundError: javax/media/j3d/Nodern at java.lang.Class.getDeclaredConstructors0(Native Method)rn at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)rn at java.lang.Class.getConstructor0(Unknown Source)rn at java.lang.Class.newInstance0(Unknown Source)rn at java.lang.Class.newInstance(Unknown Source)rn at sun.applet.AppletPanel.createApplet(Unknown Source)rn at sun.plugin.AppletViewer.createApplet(Unknown Source)rn at sun.applet.AppletPanel.runLoader(Unknown Source)rn at sun.applet.AppletPanel.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rn
本地跟发布出现的编码异常
我在服务端有这么一句话:ViewData["UserLocation"] = Server.HtmlDecode(Request.Cookies["wapCity"].Value);rnRequest.Cookies["wapCity"].Value的值是“北京”,rn在本地运行的时候,ViewData["UserLocation"]输送到客户端是正常的现实“北京”,rn、但<em>发布</em>后上线后,ViewData["UserLocation"]输送到客户端却变为“鍖椾含”。rn我知道是编码错误,是不是后端写ViewData["UserLocation"] = Server.HtmlEncode(Request.Cookies["wapCity"].Value);前端写rnViewData["UserLocation"] = Server.HtmlDecode(Request.Cookies["wapCity"].Value);rn还有为什么本地是正常的,而上线后却<em>异常</em>!(好像是16进制)
eclipse3.2+jdk1.6.0.6环境下发布rcp项目时出现的错误提示
详细报错信息:rn1。G:\NewEli\DsrEli-client.main\src\java\com\dsrcom\ecq\client\main\ui\ApplicationActionBarAdvisor.java 中存在错误 (位于第 188 行)rn .getServiceBean(DailyWorkService.class);rn ^rn标记“;”上有语法错误,应为 ,rn----------rn2。G:\NewEli\DsrEli-client.main\src\java\com\dsrcom\ecq\client\main\ui\ApplicationActionBarAdvisor.java 中存在错误 (位于第 438 行)rn .getImageDescriptor("/icons/toolbar/apply32.png"));rn ^rn语法错误,将“”插入到完整 MethodBody 中rn----------rn3。G:\NewEli\DsrEli-client.main\src\java\com\dsrcom\ecq\client\main\ui\ApplicationActionBarAdvisor.java 中存在错误 (位于第 438 行)rn .getImageDescriptor("/icons/toolbar/apply32.png"));rn ^rn语法错误,将“最终”插入到完整 TryStatement 中rn----------rn4。G:\NewEli\DsrEli-client.main\src\java\com\dsrcom\ecq\client\main\ui\ApplicationActionBarAdvisor.java 中存在错误 (位于第 438 行)rn .getImageDescriptor("/icons/toolbar/apply32.png"));rn ^rn语法错误,将“”插入到完整 块 中rn----------rn…………rn可有高手给出个说法呢?
加载项目出现java.lang.NoClassDefFoundError错误。
java.lang.NoClassDefFoundError: org/codehaus/groovy/control/CompilationFailedExceptionrn at java.lang.Class.forName0(Native Method)rn at java.lang.Class.forName(Class.java:169)rn at org.springframework.scripting.config.LangNamespaceHandler.class$(LangNamespaceHandler.java:45)rn at org.springframework.scripting.config.LangNamespaceHandler.init(LangNamespaceHandler.java:45)rn at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.initHandlerMappings(DefaultNamespaceHandlerResolver.java:123)rn at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.(DefaultNamespaceHandlerResolver.java:96)rn at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.(DefaultNamespaceHandlerResolver.java:83)rn at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDefaultNamespaceHandlerResolver(XmlBeanDefinitionReader.java:498)rn at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createReaderContext(XmlBeanDefinitionReader.java:487)rn at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:468)rn at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:363)rn at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:313)rn at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:290)rn at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:131)rn at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:147)rn at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124)rn at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:92)rn at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:101)rn at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:389)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:324)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:245)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:188)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4336)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1023)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:448)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:552)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rnrn运行是没什么问题,但是就是看着不爽啊。 说是groovy-all-1.5.3.jar版本错误,但是我都换了好几个版本了,但还是一直报这个,求高手指导指导。
求救!!:Applet中出现java.lang.NoClassDefFoundError
在我的Applet中引用了一个包rnimport com.esri.*rnrn编译的时候通不过,但是我已经在Classpath中加入了相关的Jar,于是使用rnjavac -classpath %CLASS_PATH% myapplet.javarnrn编译通过,但是在页面中显示java.lang.NoClassDefFoundError:com/esri/*rnrn请问应该怎么办,很急,先谢谢各位
加载配置文件时出现java.lang.NoClassDefFoundError
我在配置hibernate.cfg.xml时,双击打开这个文件,其中内容为rnrnrn时,弹出错误对话框rnAn internal error occurred during: "loading file:/D:/Program Files/MyEclipse 6.5/myeclipse/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_6.5.0.zmyeclipse650200806/catalog-dtd/hibernate-configuration-3.0.dtd".rnjava.lang.NoClassDefFoundErrorrn,请问高手这是什么问题,怎么解决啊?rn我看像加载错误,可是那个文件也有,原来没<em>出现</em>过这样的问题,今天一早晨就有了
出现commons.mail发送email出现:java.lang.NoClassDefFoundError错误
我编译成功了,但是执行的时候<em>出现</em>如下错误:rnjava.lang.NoClassDefFoundError: TestEmailrnCaused by: java.lang.ClassNotFoundException: TestEmailrn at java.net.URLClassLoader$1.run(URLClassLoader.java:200)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(URLClassLoader.java:188)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:307)rn at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:252)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)rnCould not find the main class: TestEmail. Program will exit.rnException in thread "main" rnrnrn我的环境变量设置的为(CLASSPATH):rn.;%JAVA_HOME%\lib;D:\java\lib\commons-email-1.1.jar;D:\java\lib\commons-lang-2.4.jar;D:\java\lib\mail.jarrnJAVA_HOME也设置了,bin目录也在path变量中加入了,但是运行的时候就是出错,大家帮个忙吧,多谢了!rnrnrn我的代码如下,是从网上找的:rn[code=Java]rnrnimport org.apache.commons.mail.EmailException;rnimport org.apache.commons.mail.HtmlEmail;rnrnrnpublic class mailSender rnrn/**rn * @param argsrn */rnpublic static void main(String[] args) rn //不要使用SimpleEmail,会<em>出现</em>乱码问题rn HtmlEmail email = new HtmlEmail();rn tryrn //这里是发送服务器的名字:,163的如下:rn email.setHostName("smtp.163.com");rn //编码集的设置rn email.setCharset("gbk");rn //收件人的邮箱rn email.addTo("abcd@163.com");rn //发送人的邮箱rn email.setFrom("abcd@163.com", "发送人名称");rn //如果需要认证信息的话,设置认证:用户名-密码。分别为发件人在邮件服务器上的注册名称和密码rn email.setAuthentication("abcd","abcd");rn email.setSubject("下午3:00会议室讨论,请准时参加");rn //要发送的信息rn email.setMsg("下午3:00会议室讨论,请准时参加");rn //发送rn email.send();rn catch (EmailException e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn rnrnrnrnrnrn[/code]
在cmd下运行出现java.lang.NoClassDefFoundError错误问题
在eclipse下新建了一个java项目:first,其后新建一个包:doudou;在新建一个类:hello。rn在eclipse下运行成功,我想在cmd下运行,却一直提示错误:java.lang.NoClassDefFoundError。。。rn 然后我就同样在新建一个java项目:gfh,其后没有新建包,默认为缺省包;在新建一个类:hello,就能在cmd下运行,rn 难道就是因为包的原因吗?请高手指点啊。。。。在线等。。。。。。。
出现这样的运行错误:java.lang.NoClassDefFoundError: JDemo
文件名:JDemo.javarnrn文件内容:rnimport java.lang.*;rnrnpublic class JDemo extends Objectrnrn private static int InstanceCount = 0;rn private boolean isStudent;rn private String name;rn private int[] number;rnrn public JDemo()rn rn //初始化对象rn System.out.println("Construct instance "+JDemo.InstanceCount+" of class JDemo...");rn this.InstanceCount++;rn number = new int[4];rn for(int i=0;i
JavaME程序出现java.lang.NoClassDefFoundError错误
这是我写的第一个JavaME程序,编译通过,模拟器运行时<em>出现</em>这个错误。演示程序运行正常。Wireless Toolkit 2.5.2下编译和运行的。rn代码如下:rnrnrnimport javax.microedition.midlet.*;rnimport javax.microedition.lcdui.*;rnrnpublic class SimpleMIDlet extends MIDletrnrn private Display display;rn TextBox box = null;rn public SimpleMIDlet()rn rn rn rn public void startApp()rn rn display = Display.getDisplay(this);rn box = new TextBox("Simple Example","I am a MIDlet",20,0);rn display.setCurrent(box);rn rn public void pauseApp()rn rn rn rn public void destroyApp(boolean unconditional)rn rn rnrn
部分手机出现java.lang.NoClassDefFoundError的解决办法
谷歌规定单个dex文件中的方法不能超过65535的限制。 Android应用程序(APK)在Dalvik可执行文件的形式包含可执行的字节码文件(DEX)文件,其中包含已编译的代码来运行你的应用程序。Dalvik可执行规格限制一个Dex文件包含65535个方法:包括Android框架方法、Library方法的总数、和你自己的代码方法总数。因为65535等于64×1024,这一限制被称为“64k引用
java.lang.NoClassDefFoundError
java.lang.NoClassDefFoundError这个<em>异常</em>是什么意思rnrn我的程序里,明明都可以 new到那个classrnrn但是Class.forName()的时候就会报出这样的<em>异常</em>rnrn说明我出错的这个类是放在jar包里的rn我测试了一个自己写的类使用Class.forName()可以调到。
一个运行时候,抛出的java.lang.NoClassDefFoundError异常
在这个论坛中,也有回答这个问题的。rn但是我觉得我的JDK等配置应该都没有问题吧。。。。rn所以,再问下大家确认下,到底是什么错误?因为我在我的eclipse里面调试是没有问题的。rn但是使用JDK(记事本)调试的时候,却有错误了,真是郁闷呀。rn因为,,实验室的电脑里面,没有安装eclipse,只能使用记事本调试呢。。rn大家救命呀。。。。rnrnjava.lang.NoClassDefFoundError: DatagramServer (wrong name: system/DatagramServer)rn at java.lang.ClassLoader.defineClass1(Native Method)rn at java.lang.ClassLoader.defineClass(ClassLoader.java:620)rn at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)rn at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)rn at java.net.URLClassLoader.access$100(URLClassLoader.java:56)rn at java.net.URLClassLoader$1.run(URLClassLoader.java:195)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(URLClassLoader.java:188)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:306)rn at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:251)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)rnException in thread "main"
java.lang.NoClassDefFoundError: org/hibernate/cfg/Configuration异常
简单的struts+hibernate整合,望指教rn错误如下:rn严重: Servlet.service() for servlet action threw exceptionrnjava.lang.NoClassDefFoundError: org/hibernate/cfg/Configurationrn at com.liang.hibernate.MyOperate.(MyOperate.java:19)rn at com.liang.struts.action.MyTestAction.select(MyTestAction.java:46)rn at com.liang.struts.action.MyTestAction.execute(MyTestAction.java:37)rn at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)rn at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)rn at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)rn at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)rn at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)rn at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)rn at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)rn at java.lang.Thread.run(Thread.java:595)rnrn
JavaMail抛java.lang.NoClassDefFoundError (comsunmailutilLineInputStream)异常解决方案
JavaMail抛java.lang.NoClassDefFoundError (com.sun.mail.util.LineInputStream)<em>异常</em>解决方案
java.lang.NoClassDefFoundError: net/sf/ezmorph/Morpher异常解决方法
NULL 博文链接:https://bijian1013.iteye.com/blog/2305804
java.lang.NoClassDefFoundError: com/sun/faces/spi/InjectionPro异常
信息: Reloading context [/ZHFServer]rn2013-12-25 1:35:04 org.apache.catalina.core.StandardContext listenerStoprn严重: Exception sending context destroyed event to listener instance of class com.sun.faces.application.WebappLifecycleListenerrnjava.lang.NoClassDefFoundError: com/sun/faces/spi/InjectionProviderExceptionrn at com.sun.faces.application.WebappLifecycleListener.handleAttributeEvent(WebappLifecycleListener.java:224)rn at com.sun.faces.application.WebappLifecycleListener.contextDestroyed(WebappLifecycleListener.java:275)rn at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3882)rn at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4523)rn at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1108)rn at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1214)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)rn at java.lang.Thread.run(Thread.java:662)rnCaused by: java.lang.ClassNotFoundException: com.sun.faces.spi.InjectionProviderExceptionrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)rn ... 13 morern2013-12-25 1:35:04 org.apache.catalina.core.StandardContext listenerStoprn严重: Exception sending context destroyed event to listener instance of class com.sun.faces.config.ConfigureListenerrnjava.lang.NoClassDefFoundError: com/sun/faces/config/ConfigureListener$ServletContextAdapterrn at com.sun.faces.config.ConfigureListener.contextDestroyed(ConfigureListener.java:489)rn at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3882)rn at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4523)rn at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1108)rn at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1214)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)rn at java.lang.Thread.run(Thread.java:662)rnCaused by: java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener$ServletContextAdapterrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)rn ... 12 morern2013-12-25 1:35:25 org.apache.catalina.startup.HostConfig checkResources
java.lang.NoClassDefFoundError:
严重: Servlet.service() for servlet BackGroundService threw exceptionrnjava.lang.NoClassDefFoundError: org/apache/commons/io/output/DeferredFileOutputStreamrn at org.apache.commons.fileupload.disk.DiskFileItemFactory.createItem(DiskFileItemFactory.java:191)rn at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:350)rn at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:126)rn at liuzuochen.sample.upload.BackGroundService.processFileUpload(BackGroundService.java:130)rn at liuzuochen.sample.upload.BackGroundService.doPost(BackGroundService.java:202)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)rn at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)rn at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)rn at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)rn at java.lang.Thread.run(Thread.java:619)rn请高手帮忙!!!!!rn
java.lang.NoClassDefFoundError: org/apache/log4j/Level 异常
java.lang.NoClassDefFoundError: org/apache/log4j/Levelrn at com.handsome.ip.util.Util.getIpByteArrayFromString(Util.java:28)rn at com.handsome.ip.IPSeeker.getArea(IPSeeker.java:250)rn at com.handsome.ip.IPSeeker.getIPLocation(IPSeeker.java:126)rn at org.apache.jsp.index_jsp._jspService(index_jsp.java:431)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at com.iprecare.util.EncodingFilter.doFilter(EncodingFilter.java:36)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rn at java.lang.Thread.run(Thread.java:619)rn谁见过啊。在以前的电脑上没的<em>出现</em> 。在win7下<em>出现</em>了这个问题。是版本的问题吗?rn是这个包 handsome-ipaddress-bin的问题吗?
异常">"java.lang.NoClassDefFoundError: org/apache/log4j/Appender"异常
大家好,rn 在开发过程中,我的一个程序中使用了log4j,可是它报了<em>异常</em>“java.lang.NoClassDefFoundError: org/apache/log4j/Appender”,我觉得我该做的事情都已经做了,可是还是不能够解决此问题,希望得到高手帮忙,谢谢!
异常:java.lang.NoClassDefFoundError: javax/servlet/ServletRequest 是怎么回事?
<em>异常</em>:java.lang.NoClassDefFoundError: javax/servlet/ServletRequestrn是不是找不到javax.servlet.ServletRequest的显现类?
??java.lang.NoClassDefFoundError
小程序如下:rnrnrnrnimport用到的包我已经放到webapps/ROOT/WEB-INF/lib下了,还是<em>出现</em>以下错误,不知道要怎么办```rnrndescription: The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnjavax.servlet.ServletException: org/apache/log4j/Categoryrn org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)rn org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)rn org.apache.jsp.test.jobsub_005f2_jsp._jspService(jobsub_005f2_jsp.java:66)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:810)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:298)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:810)rnrnrnroot cause rnrnjava.lang.NoClassDefFoundError: org/apache/log4j/Categoryrn org.apache.jsp.test.jobsub_005f2_jsp._jspService(jobsub_005f2_jsp.java:52)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:810)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:298)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:810)rnrn谢谢各位先^^
发布您的基于Eclipse的产品rcp
手把手教你怎么<em>发布</em>你的eclipseRCP产品。
RCP常用方法,RCP常用方法
RCP常用方法,Java,gui开发绝对经典书
RCP,RCP开发
RCP&OSGI;
RCP在线升级,RCP在线升级
RCP在线升级RCP在线升级RCP在线升级RCP在线升级RCP在线升级
RCP用webstart方式发布,请教!!!跪求了
RCP用webstart方式<em>发布</em>,请教!!!跪求了rnrn使用webstart方式<em>发布</em>,能够正常下载,但是不能运行,提示以下<em>异常</em>,大家有解决的么?rn!SESSION Fri Feb 23 09:36:24 CET 2007 ------------------------------------------rn!ENTRY org.eclipse.core.launcher 4 0 2007-02-23 09:36:24.134rn!MESSAGE Exception launching the Eclipse Platform:rn!STACKrnjava.lang.NullPointerExceptionrnat java.util.Hashtable.put(Unknown Source)rnat org.eclipse.core.launcher.WebStartMain.basicRun(WebStartMain.java:58)rnat org.eclipse.core.launcher.Main.run(Main.java:977)rnat org.eclipse.core.launcher.WebStartMain.main(WebStartMain.java:40)rnat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rnat sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rnat sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rnat java.lang.reflect.Method.invoke(Unknown Source)rnat com.sun.javaws.Launcher.executeApplication(Unknown Source)rnat com.sun.javaws.Launcher.executeMainClass(Unknown Source)rnat com.sun.javaws.Launcher.continueLaunch(Unknown Source)rnat com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)rnat com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)rnat com.sun.javaws.Launcher.run(Unknown Source)rnat java.lang.Thread.run(Unknown Source)rn
RCP经典,rcp eclipse
RCP经典,<em>rcp</em> eclipse
rcp
如何在<em>rcp</em>工程中调用plugin?
RCP
n 打包RCP ,运行<em>出现</em> JVM terminated Exit code=13  ,大概说 JVM终止退出代码= 13rn 不清楚什么原因引起的;rn  n
IIS发布异常
系统在本机上运行正常,<em>发布</em>的IIS上显示“错误404”,“你所查看的页面无法浏览或页面不存在”“输入的地址不正确”“页面重定义或程序出错”!,想知道怎么解决
jboss5.0GA发布EAR异常
[color=#FF0000][b]单独的ejb用jar<em>发布</em>是正常的,能通过测试,rn当把ejb的jar删除后,如下把ejb与web应用一起<em>发布</em>[/b]rnrn eartestrn rn rn test1.warrn /test1rn rn rn rn oraclecabin.jarrn rnrn[color=#FF0000][/[b]<em>出现</em>如下错误信息[/b][/color]rnlobal JNDI:rnrn eartest/AdminBean/remote - EJB3.x Default Remote Business Interfacern eartest/AdminBean/remote-com.test.enty.Admin - EJB3.x Remote Business Inrnterfacernrn15:31:42,031 ERROR [AbstractKernelController] Error installing to Configured: narnme=jboss.web.deployment:war=/test1 state=Instantiated mode=Manual requiredState=rnConfiguredrnjava.lang.RuntimeException: Exception setting attribute SecurityManagement on mbrnean jboss.web.deployment:war=/test1rn at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.jarnva:170)rn at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.jarnva:114)rn at org.jboss.system.microcontainer.ConfigureAction.installAction(ConfigurnreAction.java:58)rn at org.jboss.system.microcontainer.ConfigureAction.installAction(ConfigurnreAction.java:42)rn at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simrnpleInstallAction(SimpleControllerContextAction.java:62)rn at org.jboss.dependency.plugins.action.AccessControllerContextAction.insrntall(AccessControllerContextAction.java:71)rn at org.jboss.dependency.plugins.AbstractControllerContextActions.installrn(AbstractControllerContextActions.java:51)rn at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstrarnctControllerContext.java:348)rn at org.jboss.system.microcontainer.ServiceControllerContext.install(ServrniceControllerContext.java:286)rn at org.jboss.dependency.plugins.AbstractController.install(AbstractContrrnoller.java:1598)rn at org.jboss.dependency.plugins.AbstractController.incrementState(AbstrarnctController.java:934)rn at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstrrnactController.java:1062)rn at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstrrnactController.java:984)rn at org.jboss.dependency.plugins.AbstractController.change(AbstractContrornller.java:822)rn at org.jboss.dependency.plugins.AbstractController.change(AbstractContrornller.java:553)rn at org.jboss.system.ServiceController.doChange(ServiceController.java:68rn8)rn at org.jboss.system.ServiceController.install(ServiceController.java:274rn)rn at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.javrna:90)rn at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.javrna:46)rn at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.irnnternalDeploy(AbstractSimpleRealDeployer.java:62)rn at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(rnAbstractRealDeployer.java:50)rn at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerrnWrapper.java:171)rn at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployerrnsImpl.java:1439)rn at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirnrst(DeployersImpl.java:1157)rn at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirnrst(DeployersImpl.java:1178)rn at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirnrst(DeployersImpl.java:1210)rn at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersrnImpl.java:1098)rn at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstrarnctControllerContext.java:348)rn at org.jboss.dependency.plugins.AbstractController.install(AbstractContrrnoller.java:1598)rn at org.jboss.dependency.plugins.AbstractController.incrementState(AbstrarnctController.java:934)rn at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstrrnactController.java:1062)rn at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstrrnactController.java:984)rn at org.jboss.dependency.plugins.AbstractController.change(AbstractContrornller.java:822)rn at org.jboss.dependency.plugins.AbstractController.change(AbstractContrornller.java:553)rn at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersrnImpl.java:781)rn at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployernrImpl.java:698)rn at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScarnnner.java:290)rn at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanrnner.java:221)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:41rn7)rn at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.javarn:280)rn at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)rn at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.rnaccess$101(ScheduledThreadPoolExecutor.java:65)rn at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.rnrunPeriodic(ScheduledThreadPoolExecutor.java:142)rn at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.rnrun(ScheduledThreadPoolExecutor.java:166)rn at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecrnutor.java:650)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutorrn.java:675)rn at java.lang.Thread.run(Thread.java:595)rnCaused by: javax.management.InvalidAttributeValueException: Set attribute has crnlass class org.jboss.security.integration.JNDIBasedSecurityManagement loaded frornm BaseClassLoader@16dc5c9vfsfile:/D:/server/jboss-5.0.1.GA/server/default/conf/rnjboss-service.xml that is not assignable to attribute class interface org.jbossrn.security.ISecurityManagement loaded from BaseClassLoader@21dfe5vfszip:/D:/servrner/jboss-5.0.1.GA/server/default/deploy/eartest.ear/test1.war/rn at org.jboss.mx.interceptor.ModelMBeanAttributeInterceptor.checkAssignabrnle(ModelMBeanAttributeInterceptor.java:229)rn at org.jboss.mx.interceptor.ModelMBeanAttributeInterceptor.invoke(ModelMrnBeanAttributeInterceptor.java:88)rn at org.jboss.mx.interceptor.PersistenceInterceptor.invoke(PersistenceIntrnerceptor.java:76)rn at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)rn at org.jboss.mx.server.AbstractMBeanInvoker.setAttribute(AbstractMBeanInrnvoker.java:461)rn at org.jboss.mx.server.MBeanServerImpl.setAttribute(MBeanServerImpl.javarn:617)rn at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.jarnva:166)rn ... 46 morern
webservice 发布异常
我用axis 写了一个webservice <em>发布</em>在了tomcat\webapp\下rnrn然后我在dos 环境下 测试rn C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\MyWebService-1\WEB-INF> java org.apache.axis.client.AdminClient deploy.wsddrnrn报错,信息如下: rn rn server:userException rn rn statckTrace:java.net.ConnectException:connecion refused:connectrnrn是我的路径<em>发布</em>错了,还是少包rnrn望各位大侠指点。谢谢rn rn
异常】SptingBoot+RabbitMQ整合出现异常
c.r.c.impl.ForgivingExceptionHandler : An unexpected connection driver error occured (Exception message: Socket closed) o.s.a.r.listener.BlockingQueueConsumer : Queue declaration failed; retries left=3
加载applet时出现java.lang.NoClassDefFoundError,如何解决
java.lang.NoClassDefFoundError: Chart (wrong name: Chart/Chart)rn at java.lang.ClassLoader.defineClass1(Native Method)rn at java.lang.ClassLoader.defineClass(Unknown Source)rn at java.security.SecureClassLoader.defineClass(Unknown Source)rn at sun.applet.AppletClassLoader.findClass(Unknown Source)rn at java.lang.ClassLoader.loadClass(Unknown Source)rn at sun.applet.AppletClassLoader.loadClass(Unknown Source)rn at java.lang.ClassLoader.loadClass(Unknown Source)rn at sun.applet.AppletClassLoader.loadCode(Unknown Source)rn at sun.applet.AppletPanel.createApplet(Unknown Source)rn at sun.plugin.AppletViewer.createApplet(Unknown Source)rn at sun.applet.AppletPanel.runLoader(Unknown Source)rn at sun.applet.AppletPanel.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnjava.lang.NoClassDefFoundError: Chart (wrong name: Chart/Chart)rn at java.lang.ClassLoader.defineClass1(Native Method)rn at java.lang.ClassLoader.defineClass(Unknown Source)rn at java.security.SecureClassLoader.defineClass(Unknown Source)rn at sun.applet.AppletClassLoader.findClass(Unknown Source)rn at java.lang.ClassLoader.loadClass(Unknown Source)rn at sun.applet.AppletClassLoader.loadClass(Unknown Source)rn at java.lang.ClassLoader.loadClass(Unknown Source)rn at sun.applet.AppletClassLoader.loadCode(Unknown Source)rn at sun.applet.AppletPanel.createApplet(Unknown Source)rn at sun.plugin.AppletViewer.createApplet(Unknown Source)rn at sun.applet.AppletPanel.runLoader(Unknown Source)rn at sun.applet.AppletPanel.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rn
出现错误:Exception in thread "main" java.lang.NoClassDefFoundError: Hello?
我在rnD:\Program Files\tomcat-4.1.24\webapps\ROOT\test目录下新建了一个Hello.javarnrnpublic class Hellornrn public static void main(String[] args) rn rn System.out.println("Hello World!");rn rn;rnrn编译javac Hello.java也通过了,但执行java Hello时就报错:rnException in thread "main" java.lang.NoClassDefFoundError: Hellornrnrn我的dos命令窗口如下:rnD:\Program Files\tomcat-4.1.24\webapps\ROOT\classes>javac Hello.javarnrnD:\Program Files\tomcat-4.1.24\webapps\ROOT\classes>java HellornException in thread "main" java.lang.NoClassDefFoundError: Hellornrn但是如果我把hello.java放到D:\Program Files\j2sdk1.4.2\bin这个目录下,编译执行就都是好的。我在系统环境变量里面也添加了path和classpath路径啊rnclasspath :rnD:\Program Files\j2sdk1.4.2\bin;D:\Program Files\j2sdk1.4.2\jre;D:\Program Files\j2sdk1.4.2rnpath :rnD:\Program Files\j2sdk1.4.2;D:\Program Files\j2sdk1.4.2\bin;D:\Program Files\j2sdk1.4.2\jrernrn是我其他什么地方配置有问题吗?rn
java -jar 执行jar包出现 java.lang.NoClassDefFoundError
我用idea打包的jar,运行<em>出现</em>java.lang.NoClassDefFoundError,报错缺少的包在打包时已经包含进去,MANIFEST.MF文件也没写错,百度许久还是没有解决,特来求助!rn浏览器出问题不能上传,就只能大概描述rn一个java项目,三方库在根目录lib文件夹里。rnMANIFEST.MF文件内容:rnManifest-Version: 1.0rnClass-Path: lib/log4j.jar lib/sqljdbc4-2.0.jarrnMain-Class: com.company.CatchDataUtilrnrn
jboss 发布jsp客户端时 发布异常
刚学EJB,今天在做拦截器实验的在用JSP做客户端时总是会<em>发布</em><em>异常</em>,<em>发布</em>不成功,而我用Java做客户端就没有问题,出错信息如下:请高手们不吝赐教。rn rn 22:21:12,765 ERROR [MainDeployer] Could not start deployment: file:/D:/JavaEEServer/jboss/jboss-4.2.2.GA/server/default/deploy/InterceptorTest.war/rnorg.jboss.deployment.DeploymentException: URL file:/D:/JavaEEServer/jboss/jboss-4.2.2.GA/server/default/deploy/InterceptorTest.war/ deployment failedrn at org.jboss.system.ServiceController.start(ServiceController.java:417)rn at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)rn at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)rn at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)rn at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)rn at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)rn at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)rn at $Proxy44.start(Unknown Source)rn at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)rn at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)rn at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)rn at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)rn at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)rn at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)rn at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)rn at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)rn at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)rn at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)rn at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)rn at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)rn at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)rn at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)rn at $Proxy45.start(Unknown Source)rn at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)rn at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)rn at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)rn at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)rn at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)rn at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)rn at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)rn at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)rn at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)rn at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)rn at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)rn at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)rn at $Proxy9.deploy(Unknown Source)rn at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)rn at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)rn at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)rn at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)rn at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)rnrnrnrnrnrn--------------------------------------------------------------------------------rn网易邮箱,中国第一大电子邮件服务商
在java文件中启动tomcat6出现java.lang.NoClassDefFoundError
运行时<em>异常</em>信息大致如下:rnorg/apache/tomcat/util/log/systemLogHandlerrn......某文件x行 new Embedded()rn......某文件x行 getEmbedded().addlifecyclelistenerrn程序中语法无错误提示,而改用tomcat5.5嵌入版不再<em>出现</em>这错误,请问是什么缘故?如何解决?rn
myeclipse在运行hibernate出现错误java.lang.NoClassDefFoundError
错误如下:rnException in thread "main" java.lang.NoClassDefFoundError: org/hibernate/annotations/common/reflection/MetadataProviderrn at StudentTest.main(StudentTest.java:10)rnCaused by: java.lang.ClassNotFoundException: org.hibernate.annotations.common.reflection.MetadataProviderrn at java.net.URLClassLoader$1.run(URLClassLoader.java:202)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(URLClassLoader.java:190)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:306)rn at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:247)rn ... 1 morernrnStudentTest类的代码:rn[code=java]import org.hibernate.Session;rnimport org.hibernate.SessionFactory;rnimport org.hibernate.cfg.Configuration;rnimport com.hibernate.Student;rnpublic class StudentTest rn public static void main(String[] args) rn Student s=new Student();rn s.setName("sa");rn s.setAge(12);rn Configuration cf=new Configuration();rn SessionFactory sf=cf.configure().buildSessionFactory();rn Session session=sf.openSession();rn session.beginTransaction();rn session.save(s);rn session.getTransaction().commit();rn session.close();rn sf.close();rn rn rn[/code]rnrnstudent.hbm.xml代码 (IE打开没有显示错误)rn[code=java]rnrnrn rn rn rn rn rn [/code]rnrnhibernate.cfg.xml代码(IE打开没有显示错误)rn[code=java] rn rn rn rn com.mysql.jdbc.Driver rn jdbc:mysql://localhost:3306/hibernate rn root rn 12345678 rn rn true rn rn UTF-8 rn rn org.hibernate.dialect.MySQLDialect rn rn rn [/code]rnrnstudent.java代码如下rn[code=java]package com.hibernate;rnpublic class Student rn private int age;rn private String name;rn private int id;rn rn public String getName() rn return name;rn rn rn public void setName(String name) rn this.name = name;rn rn rn public int getAge() rn return age;rn rn rn public void setAge(int age) rn this.age = age;rn rnrn rn public int getId() rn return id;rn rn rn public void setId(int id) rn this.id = id;rn rnrnrn[/code]rn导入的hibernate的jar包如下rnrnrn
编译运行出现exception in thread "main" java.lang.NoClassDefFoundError:
编译运行<em>出现</em>exception in thread "main" java.lang.NoClassDefFoundError:rn试了好几个程序都是rn但是在myeclipse下可以运行的rn本人菜鸟
jcreator运行错误,出现 Exception in thread "main" java.lang.noclassDefFoundError
public class crnrn public static void main(String args[])rn rn system.out.println("dd");rn rnrnrnrn文件名也叫crnrn系统环境变量配置成功了。
引用第三方库出现的java java.lang.NoClassDefFoundError问题
新建一个工程1,将第三方jar包添加到该工程的构建路径下,然后新建另一个工程2,rn将工程1添加到工程2的依赖中,rn写写代码,都正常~~~~~~~~运行时,rn抛出了java.lang.NoClassDefFoundError 找不到Jface的Dialog,找不到SWT的SelectionListener~~~~rnrn之前没有遇到这种问题,问题大概是因为使用到第三方jar包时,没有加载到SWT和JFacern所以在工程1的依赖中添加 SWT和JFace是可以的,但是其中的原理还不是很理解。rnrn求讲解,O(∩_∩)O谢谢rn
J2ME程序移到真机时出现java.lang.NoClassDefFoundError
初学J2ME,想写个蓝牙通讯类,碰到了问题,希望大家来帮帮忙,谢谢了.rn以下代码在手机模拟器中可以正常运行,但当把它放到真机下运行时报java.lang.NoClassDefFoundError错误.rnrnpublic class btMidlet extends MIDlet rn public void startApp() rn Form f = new Form("aaaa");rn f.append("kkkkk");rn Display dis = Display.getDisplay(this);rn test t = new test();rn dis.setCurrent(t);rn rn rn ......rnrnclass test extends TextBox implements DiscoveryListenerrnrn Command com_pub = new Command("开启", Command.OK, 0);rn Command com_back = new Command("返回", Command.BACK, 1);rn test()rn rn super(null, "", 500, TextField.ANY);rn this.addCommand(com_pub);rn this.addCommand(com_back);rn this.setString("test");rn rn ......rnrnrn但当把test类的DiscoveryListener接口删除时,程序便可以在真机下运行.rn即把test类改成:rnclass test extends TextBoxrnrn Command com_pub = new Command("开启", Command.OK, 0);rn Command com_back = new Command("返回", Command.BACK, 1);rn test()rn rn super(null, "", 500, TextField.ANY);rn this.addCommand(com_pub);rn this.addCommand(com_back);rn this.setString("test");rn rn ......rn
出现的原因??">Exception in thread "main" java.lang.NoClassDefFoundError出现的原因??
大家看看,前几天我的JAVA还运行的好好的,不知是不是因为昨天安装TOMCAT,然后配置JSP环境的问题,今天运行JAVA程序,用JAVAC还好,可用JAVA时,就<em>出现</em>了下面的提示;rnException in thread "main" java.lang.NoClassDefFoundErrorrnrn我的环境变量 CLASSPATH:%JAVA_HOME%\lib;%TOMCAT_HOME%\binrn JAVA_HOME:C:\安装的软件\j2sdk-1_4_0-winrn TOMCAT_HOME:C:\安装的软件\jakarta-Tomcat 5.0rn我的JAVA程序都放在D:\java练习rn本人在CMD下使用 D:\java练习>JAVAC a.javarn 这句运行还好rn但下面一句 D:\java练习>java arn就<em>出现</em> Exception in thread "main" java.lang.NoClassDefFoundError: arnrn顺便:有没有人给我解释一下classpath是什么意思,在实际的cmd操作中有什么用处?rn谢谢
救命!!!!!!使用hibernate3时出现java.lang.NoClassDefFoundError错误
我的环境是eclipse+Tomcat4.1+jdk1.5,在运行程序时<em>出现</em>错误rnjava.lang.NoClassDefFoundErrorrn at persistence.DAOImp.createStu(DAOImp.java:27)rn at BusinessManager.BM.test(BM.java:17)rn但我检查的时候包persistence的DAOImp.classes和包BusinessManager的BM.classes都在WEB-INF下的classes中,不晓得怎么会报缺少类的错误,是什么问题呢?????????
JBuilder2006编译出现"java.lang.NoClassDefFoundError"怎么解决?
错误代码如下:rnjava.lang.NoClassDefFoundError: Files\Borland\JBuilder2006\j2mewtk2/2rnException in thread "main"
出现Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld
我已经安装了JDK1.4.2.在C:\JDK目录下,rn并且已经在系统的path目录下面添加了C:\JDK\bin;.;C:\JDK\librn注:查过以前的贴子,其中的"."已经放进去了.rnrn现在编辑了一个最简单的HelloWorld.java,编译通过,但是运行时rn还是<em>出现</em>"Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld"这样的错误!!rnrn各位弟兄帮帮忙,rn
java.lang.noclassdeffounderror 提示出现错误!">Exception in thread "main" java.lang.noclassdeffounderror 提示出现错误!
环境变量我是这样设置的(我的jdk 1.4.1版 装在E:\J2SDK)rnpath=E:\J2SDK\bin;E:\J2SDK\jre\binrnclasspath=.;E:\J2SDK\lib;E:\J2SDK\lib\tools.jarrnrn但是运行下面这个程序的时候,却提示错误rnclass ArithmeticOprnrn public static void main(String args[])rn rn int p=5,q=12,r=20,s;rn s=p+q;rn System.out.println(p+" + "+q+" 得 "+s);rn s=p%q;rn System.out.print(s+" *= "+r+" 得 ");rn s *= r;rn System.out.println(s);rn System.out.println("运算前 p 值为 "+p);rn p++;rn System.out.println("p++ 运算已执行");rn System.out.println(" 运算后 p 滴?"+p);rn double x=25.75,y=14.25,z;rn z=x-y;rn System.out.println(x+" - "+y+" 得 "+z);rn System.out.print(z+" -= 2.50 得 ");rn z -= 2.50;rn System.out.println(z);rn System.out.println("运算前 z 值为 "+z);rn z--;rn System.out.println("z-- 运算已执行");rn System.out.println("运算后 z 值为 "+z);rn z=x/y;rn System.out.println("x+" / "+y+" 得 "+z);rn rnrnrnrnrnrn_____________________________________________rn但是却可以运行下面这个程序rn//在屏幕上输入1~10的程序rnclass LoopExrnrn public static void main (String args[])rn rn System.out.println("输出1........10");rn for (int cnt=1;cnt<=10;cnt++)rn System.out.println(cnt);rn rnrnrn==================================rnrn万分感谢
为什么会出现java.lang.NoClassDefFoundError: org/ksoap2/SoapFault
这个类的包我在工程属性下面通过添加external jars导入了,rn编译时通过了,但运行MIDlet时就<em>出现</em>这个错误了
运行java * ,出现Exception in thread "main" java.lang.NoClassDefFoundError:
用javac * 可以编译过去,但rn运行java hello ,<em>出现</em>Exception in thread "main" java.lang.NoClassDefFoundError: hellorn如果是设置问题 应该如何设置
【转】出现java.lang.NoClassDefFoundError的错误的一种原因和解决办法
今天在跑某java程序时,遇到了java.lang.NoClassDefFoundError的错误。第一眼看感觉是classpath设置的问题。事后证明,解决方法也很简单,有两个办法: 运行的时候,加上-cp参数,值是一个”.”,表示当前目录。比如: java -cp . VolcanoRobot 在环境变量里写CLASSPATH = .\;%JAVA_HOME%\lib\tools...
出现Exception in thread "main" java.lang.NoClassDefFoundError:hello的错误!
我的classpath是 .;C:\Program Files\Java\jdk1.5.0_09\lib\tools.jar;C:\Program Files\Java\jdk1.5.0_09\lib\dt.jar;E:\my\rnPath是;C:\Program Files\Java\jdk1.5.0_09\binrn执行HelloJava的时候就<em>出现</em>上面的错误,大家帮帮我啊,谢谢
在ubuntu下用eclipse时,出现了如下的 java.lang.NoClassDefFoundError
Exception in thread "main" java.lang.NoClassDefFoundError: chapter9.PDFBoxLuceneIndexrn at gnu.java.lang.MainThread.run(libgcj.so.7)rnCaused by: java.lang.ClassNotFoundException: chapter9.PDFBoxLuceneIndex not found in gnu.gcj.runtime.SystemClassLoaderurls=[], parent=gnu.gcj.runtime.ExtensionClassLoaderurls=[], parent=nullrn at java.net.URLClassLoader.findClass(libgcj.so.7)rn at java.lang.ClassLoader.loadClass(libgcj.so.7)rn at java.lang.ClassLoader.loadClass(libgcj.so.7)rn at java.lang.Class.forName(libgcj.so.7)rn at gnu.java.lang.MainThread.run(libgcj.so.7)rnrn用eclipse编辑其他程序都能正常运行,唯独这个luncene工程不行。。rn一运行就出错。而且代码无错。。rn望高手指点。。
出现 Exception in thread "main" java.lang.NoClassDefFoundError: 谢谢
我在输入 java XXX <em>出现</em>Exception in thread "main" java.lang.NoClassDefFoundError: rnrn不知道为什么啊 我安装jdk 的 path 是 c:\Programmi\Java\j2re1.4.1_0\binrnrn我把 xxx.java 的 文件都放在 bin 的目录下拉rnxxx.java 的文件 应该放 那里啊rn谢谢
运行myeclipse时出现java.lang.NoClassDefFoundError的错误
我想获得网页的编码,在网上找了可以用chardet.jar中的方法实现,于是下载了它,导入我的工程中,然后用如下代码进行测试:rnimport info.monitorenter.cpdetector.io.CodepageDetectorProxy; rnimport info.monitorenter.cpdetector.io.HTMLCodepageDetector; rnimport info.monitorenter.cpdetector.io.JChardetFacade; rn rnimport java.io.BufferedReader; rnimport java.io.IOException; rnimport java.io.InputStreamReader; rnimport java.net.HttpURLConnection; rnimport java.net.URL; rnimport java.util.Iterator; rnimport java.util.List; rnimport java.util.Map; rnimport java.util.Set; rnpublic class WebEncoding rn private static CodepageDetectorProxy detector = CodepageDetectorProxy rn .getInstance(); rnstatic rnrndetector.add(new HTMLCodepageDetector(false)); rnrndetector.add(JChardetFacade.getInstance()); rnrn rn/** 测试用例 rn* @param args rn*/ rnpublic static void main(String[] args) rnWebEncoding web=new WebEncoding(); rnrntry rn System.out.println("*******************");rn System.out.println(web.getCharset("http://www.baidu.com/")); rn catch (IOException e) rn // TODO Auto-generated catch block rn e.printStackTrace(); rn rn rn/** rn* @param strurl rn* 页面url地址,需要以 http://开始,例:http://www.pujia.com rn* @return rn* @throws IOException rn*/ rnpublic String getCharset(String strurl) throws IOException rn// 定义URL对象 rnURL url = new URL(strurl); rn// 获取http连接对象 rnHttpURLConnection urlConnection = (HttpURLConnection) url rn .openConnection(); rn; rnurlConnection.connect(); rn// 网页编码 rnString strencoding = null; rnrn/** rn * 首先根据header信息,判断页面编码 rn */ rn// map存放的是header信息(url页面的头信息) rnMap> map = urlConnection.getHeaderFields(); rnSet keys = map.keySet(); rnIterator iterator = keys.iterator(); rnrn// 遍历,查找字符编码 rnString key = null; rnString tmp = null; rnwhile (iterator.hasNext()) rn key = iterator.next(); rn tmp = map.get(key).toString().toLowerCase(); rn // 获取content-type charset rn if (key != null && key.equals("Content-Type")) rn int m = tmp.indexOf("charset="); rn if (m != -1) rn strencoding = tmp.substring(m + 8).replace("]", ""); rn return strencoding; rn rn rn rnrn/** rn * 通过解析meta得到网页编码 rn */ rn// 获取网页源码(英文字符和数字不会乱码,所以可以得到正确 区域) rnStringBuffer sb = new StringBuffer(); rnString line; rntry rn BufferedReader in = new BufferedReader(new InputStreamReader(url rn .openStream())); rn while ((line = in.readLine()) != null) rn sb.append(line); rn rn in.close(); rn catch (Exception e) // Report any errors that arise rn System.err.println(e); rn System.err rn .println("Usage: java HttpClient []"); rn rnString htmlcode = sb.toString(); rn// 解析html源码,取出 区域,并取出charset rnString strbegin = " -1) rn end = htmlcode.substring(begin).indexOf(strend); rn if (begin > -1 && end > -1) rn strtmp = htmlcode.substring(begin, begin + end).toLowerCase(); rn inttmp = strtmp.indexOf("charset"); rn if (inttmp > -1) rn strencoding = strtmp.substring(inttmp + 7, end).replace( rn "=", "").replace("/", "").replace("\"", "") rn .replace("\'", "").replace(" ", ""); rn return strencoding; rn rn rn htmlcode = htmlcode.substring(begin); rn begin = htmlcode.indexOf(strbegin); rn rnrn/** rn * 分析字节得到网页编码 rn */ rnstrencoding = getFileEncoding(url); rnrn// 设置默认网页字符编码 rnif (strencoding == null) rn strencoding = "GBK"; rn rnrnreturn strencoding; rn rnrn/** rn* rn* rn* 方法说明:通过网页内容识别网页编码 rn* rn* rn* 输入参数:strUrl 网页链接; timeout 超时设置 rn* rn* rn* 返回类型:网页编码 rn*/ rnpublic static String getFileEncoding(URL url) rnrnjava.nio.charset.Charset charset = null; rntry rnrn charset = detector.detectCodepage(url); rnrn catch (Exception e) rnrn System.out.println(e.getClass() + "分析" + "编码失败"); rnrn rnrnif (charset != null) rnrn return charset.name(); rnrnreturn null; rnrn rnrn可运行时总是<em>出现</em>java.lang.NoClassDefFoundError: org/mozilla/intl/chardet/nsICharsetDetectionObserver的错误 !!!!
RCP程序设计自学RCP的教程
有关<em>rcp</em>的内容 是<em>rcp</em>入门的好帮手,<em>rcp</em>自学的好帮手
RCP应用篇之RCP开发
其中,主要元素的意义如下: ◇ 配置视图的扩展点的类型是“org.eclipse.ui.views”。 ◇ 元素中表示视图。其中class表示该视图所对应的类,且该类必须实现org.eclipse.ui.IViewPart接口,它的一个抽象实现为org.eclipse.ui.part.ViewPart,通常是使用继承该类的方法。 ◇ 元素中id表示该视图的唯一标...
猜数字小游戏,适合初学者下载
一个猜数字的小游戏,希望能帮助大家,适合初学者学习,属于基础类的。 相关下载链接:[url=//download.csdn.net/download/a408789699/2271179?utm_source=bbsseo]//download.csdn.net/download/a408789699/2271179?utm_source=bbsseo[/url]
CELL服务器端应用下载
CELL服务器端应用 相关下载链接:[url=//download.csdn.net/download/xgt15868456418/4564845?utm_source=bbsseo]//download.csdn.net/download/xgt15868456418/4564845?utm_source=bbsseo[/url]
odu试用版测试使用下载
odu试用版测试使用,方便大家下载,学习如何使用odu恢复数据库 相关下载链接:[url=//download.csdn.net/download/z546117604/4969354?utm_source=bbsseo]//download.csdn.net/download/z546117604/4969354?utm_source=bbsseo[/url]
相关热词 c++和c#哪个就业率高 c# 批量动态创建控件 c# 模块和程序集的区别 c# gmap 截图 c# 验证码图片生成类 c# 再次尝试 连接失败 c#开发编写规范 c# 压缩图片好麻烦 c#计算数组中的平均值 c#获取路由参数
我们是很有底线的