Exception in thread "main" java.lang.noclassdeffounderror: client
Hey, I just download a game and it's java based but when I try to run it run it just opens a cmd and tells me this:
exception in thread "main" java.lang.noclassdeffounderror: client
Caused by: java.lang.noclassdeffounderror: client ...
And some other things ... at the end of every caused problem ther is a (Unknown Source).
At the end it says: Could not find the main class: client. Program will exit.
I know, maybe this isnt the right topic, but please help me !!
And I'm not the best PC programmer but I know the basics :S
This is a support forum for programming Java, not for any and all Java-based software.
Your best bet is to contact the author of the software.
How did you try to run the program?
Similar Messages
-
I am trying to develop a web service client for amazon webservice.but i am getting this error while running the app. Can anyone please help me. I have installed the JWSDP and but could not understand why i have to locate all the jar files in the classpath?Please help.
===== error=========================================
C:\abr\classes>java -classpath c:\abr\test.jar;C:\abr\jaxrpc-api.jar;C:\abr\jaxrpc-impl.jar;C:\abr\jaxrpc-spi.jar;c:\abr\classes\amazon.jar;C:\abr\mail.jar;C:\a
br\saaj-api.jar;C:\abr\activation.jar;c:\abr\FastInfoset.jar;%classpath% Client
[b]Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/stream/XMLS
treamWriter
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at com.sun.xml.rpc.client.StreamingSender._writeRequest(StreamingSender.
java:672)
at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:87)
at amazon.AmazonSearchPort_Stub.authorSearchRequest(AmazonSearchPort_Stu
b.java:988)
at Client.main(Client.java:21)I'm assuming you're using JWSDP 1.6 as I see Fastinfoset.jar in your list. You are missing some jar files in your classpath there. The best way to know what you need is to look at the release notes for JWSDP 1.6. Since you're building a web serivce start with the table in there and lookup JAX-RPC. It'll show you what jar files are needed and what other libraries are needed. Now depending on what you're doing you don't really need all those.
For sure you're missing jsr173_api.jar which is where I believe that class you need is located. This is in the JWSDP_1_6\sjsxp\lib directory. You will probably need the other jar thats in there too. Best bet is to follow the dependancy chart in the release notes.
This should get you going.
Ryan -
I am trying to add jdbc to my project and find that jdbc components seem to be missing
compiles and runs fine in IDE
but when I try to run outside IDE I get this error
Exception in thread "main" java.lang.NoClassDefFoundError: org/netbeans/lib/sql/
DataNavigatorhere is my log file
Log Session: Sunday, May 22, 2005 10:17:39 PM EDT
System Info: Product Version = Sun(tm) Java(tm) Studio Enterprise 7 2004Q4 (Build 041123)
IDE Versioning = IDE/1 spec=4.26.1 impl=041123
Operating System = Windows XP version 5.1 running on x86
Java; VM; Vendor = 1.4.2_05; Java HotSpot(TM) Client VM 1.4.2_05-b04; Sun Microsystems Inc.
Java Home = C:\j2sdk1.4.2_05\jre
System Locale; Encod. = en_US (f4j_ee); Cp1252
Home Dir; Current Dir = C:\Documents and Settings\dale; C:\Sun\jstudio_04Q4\Ent_04Q4\bin
IDE Install; User Dir = C:\Sun\jstudio_04Q4\Ent_04Q4; C:\Documents and Settings\dale\.jstudio\Ent04Q4
CLASSPATH = C:\Sun\jstudio_04Q4\Ent_04Q4\lib\ext\boot.jar;C:\Sun\jstudio_04Q4\Ent_04Q4\lib\ext\Describe.jar;C:\Sun\jstudio_04Q4\Ent_04Q4\lib\ext\DescribeIDE.jar;C:\Sun\jstudio_04Q4\Ent_04Q4\lib\ext\jaxen.jar;C:\Sun\jstudio_04Q4\Ent_04Q4\lib\ext\logger.jar;C:\Sun\jstudio_04Q4\Ent_04Q4\lib\ext\msv.jar;C:\Sun\jstudio_04Q4\Ent_04Q4\lib\ext\parser.jar;C:\Sun\jstudio_04Q4\Ent_04Q4\lib\ext\saxpath.jar;C:\Sun\jstudio_04Q4\Ent_04Q4\lib\ext\Tidy.jar;C:\Sun\jstudio_04Q4\Ent_04Q4\lib\ext\tsgdtj55.jar;C:\Sun\jstudio_04Q4\Ent_04Q4\lib\ext\tsgetj55.jar;C:\Sun\jstudio_04Q4\Ent_04Q4\lib\ext\tsglt55.jar;C:\Sun\jstudio_04Q4\Ent_04Q4\lib\ext\tsgltc55.jar;C:\Sun\jstudio_04Q4\Ent_04Q4\lib\ext\tsgltjava55.jar;C:\Sun\jstudio_04Q4\Ent_04Q4\lib\ext\tsgmtj55.jar;C:\j2sdk1.4.2_05\lib\dt.jar;C:\j2sdk1.4.2_05\lib\tools.jar;C:\Sun\jstudio_04Q4\AppServer7\pointbase\client_tools\lib\pbclient42RE.jar
Boot & ext classpath = C:\j2sdk1.4.2_05\jre\lib\rt.jar;C:\j2sdk1.4.2_05\jre\lib\i18n.jar;C:\j2sdk1.4.2_05\jre\lib\sunrsasign.jar;C:\j2sdk1.4.2_05\jre\lib\jsse.jar;C:\j2sdk1.4.2_05\jre\lib\jce.jar;C:\j2sdk1.4.2_05\jre\lib\charsets.jar;C:\j2sdk1.4.2_05\jre\classes;C:\j2sdk1.4.2_05\jre\lib\ext\dnsns.jar;C:\j2sdk1.4.2_05\jre\lib\ext\jai_codec.jar;C:\j2sdk1.4.2_05\jre\lib\ext\jai_core.jar;C:\j2sdk1.4.2_05\jre\lib\ext\ldapsec.jar;C:\j2sdk1.4.2_05\jre\lib\ext\localedata.jar;C:\j2sdk1.4.2_05\jre\lib\ext\mlibwrapper_jai.jar;C:\j2sdk1.4.2_05\jre\lib\ext\sunjce_provider.jar
Dynamic classpath = C:\Sun\jstudio_04Q4\Ent_04Q4\lib\patches\TopLogging.jar;C:\Sun\jstudio_04Q4\Ent_04Q4\lib\core.jar;C:\Sun\jstudio_04Q4\Ent_04Q4\lib\openfile-cli.jar;C:\Sun\jstudio_04Q4\Ent_04Q4\lib\openide-loaders.jar;C:\Sun\jstudio_04Q4\Ent_04Q4\lib\openide.jar;C:\Sun\jstudio_04Q4\Ent_04Q4\lib\locale\core_f4j.jar;C:\Sun\jstudio_04Q4\Ent_04Q4\lib\locale\core_f4j_ee.jar;C:\Sun\jstudio_04Q4\Ent_04Q4\lib\locale\openide_f4j.jar
Patched TopLogging from crash-reporter.nbm
[org.netbeans.core.modules #4] Warning - had to upgrade dependencies for module com.sun.xml.registry1_0_01: added = [module org.netbeans.libs.xerces/1 > 1.2] removed = [package org.apache.xerces.parsers[SAXParser], package org.apache.xml.serialize[XMLSerializer]]; details: [Xerces is now available only as an autoload module, not in classpath: http://libs.netbeans.org/#xerces]
[org.netbeans.core.modules #4] Warning: the extension C:\Sun\jstudio_04Q4\Ent_04Q4\modules\autoload\ext\namespace1_3.jar may be multiply loaded by modules: [C:\Sun\jstudio_04Q4\Ent_04Q4\modules\autoload\jaxr-module-1-3.jar, C:\Sun\jstudio_04Q4\Ent_04Q4\modules\autoload\jax-qname-module.jar]; see: http://www.netbeans.org/download/dev/javadoc/OpenAPIs/org/openide/doc-files/classpath.html#class-path
Module patch or custom extension: C:\Sun\jstudio_04Q4\Ent_04Q4\modules\patches\org-netbeans-modules-editor\codetemplatesPatches.jar
[org.netbeans.core.modules #4] Warning - had to upgrade dependencies for module org.netbeans.modules.jarpackager: added = [module org.netbeans.libs.regexp > 1.2] removed = [package org.apache.regexp > 1.2]; details: [Regexp is now available only as an autoload module, not on classpath: http://libs.netbeans.org/#regexp]
[org.netbeans.core.modules #4] Warning - had to upgrade dependencies for module org.netbeans.modules.refactoring: added = [module org.openide.debugger > 1.0, token org.openide.compiler.CompilationEngine, module org.openide.compiler > 1.0, token org.openide.TopManager, module org.openide.execution > 1.0, token org.openide.windows.IOProvider, module org.openide.deprecated > 1.0, token org.openide.execution.ExecutionEngine] removed = []; details: [API separation phase I (#19443): http://www.netbeans.org/download/dev/javadoc/OpenAPIs/org/openide/doc-files/upgrade.html#3.5i-sep-I, API separation phase II (#19443): http://www.netbeans.org/download/dev/javadoc/OpenAPIs/org/openide/doc-files/upgrade.html#3.5i-sep-II, Debugger API separation (#29914): http://www.netbeans.org/download/dev/javadoc/OpenAPIs/org/openide/doc-files/upgrade.html#3.5i-sep-III]
[org.netbeans.core.modules #4] Warning - had to upgrade dependencies for module org.netbeans.modules.web.tomcat.tomcat40: added = [module org.netbeans.libs.xerces/1 > 1.2] removed = [package [org.apache.xml.serialize.EncodingInfo]]; details: [Xerces is now available only as an autoload module, not in classpath: http://libs.netbeans.org/#xerces]
[org.netbeans.core.modules #4] Warning - had to add recursive class loader dependencies for module org.netbeans.modules.refactoring on [org.netbeans.modules.classfile]; see http://www.netbeans.org/download/dev/javadoc/OpenAPIs/org/openide/doc-files/upgrade.html#3.5i-indirect-dep-cp
[org.netbeans.core.modules #4] Warning - had to add recursive class loader dependencies for module com.sun.forte4j.j2ee.debugger on [org.openidex.util, org.netbeans.modules.web.core, org.netbeans.modules.schema2beans, org.netbeans.api.xml, org.netbeans.modules.jarpackager, javax.activation, org.netbeans.modules.vcscore, org.netbeans.libs.jaxp, org.netbeans.libs.xerces, org.netbeans.modules.projects, org.netbeans.modules.logger, org.netbeans.modules.html, com.sun.forte4j.j2ee.lib, org.netbeans.modules.clazz, javax.mail, org.netbeans.modules.image, com.sun.forte4j.modules.depclass, org.netbeans.libs.regexp]; see http://www.netbeans.org/download/dev/javadoc/OpenAPIs/org/openide/doc-files/upgrade.html#3.5i-indirect-dep-cp
[org.netbeans.core.modules #6] Warning: the module org.netbeans.modules.jarpackager uses org.netbeans.libs.regexp which is deprecated: JDK 1.4 includes regular expression support which should be used instead: http://www.netbeans.org/download/dev/javadoc/OpenAPIs/org/openide/doc-files/upgrade.html#3.6-jre-regexp
[org.netbeans.core.modules #6] Warning: the module org.netbeans.modules.projects uses org.openide.deprecated which is deprecated: Clients of obsoleted Open APIs are encouraged to remove this dependency. See http://www.netbeans.org/download/dev/javadoc/OpenAPIs/org/openide/doc-files/upgrade.html#3.5i-sep-I
[org.netbeans.core.modules #6] Warning: the module org.netbeans.modules.refactoring uses org.openide.deprecated which is deprecated: Clients of obsoleted Open APIs are encouraged to remove this dependency. See http://www.netbeans.org/download/dev/javadoc/OpenAPIs/org/openide/doc-files/upgrade.html#3.5i-sep-I
[org.netbeans.core.modules #6] Warning: the module com.embarcadero.netbeans uses org.openide.deprecated which is deprecated: Clients of obsoleted Open APIs are encouraged to remove this dependency. See http://www.netbeans.org/download/dev/javadoc/OpenAPIs/org/openide/doc-files/upgrade.html#3.5i-sep-I
[org.netbeans.core.modules #6] Warning: the module com.sun.forte4j.j2ee.debugger uses org.openide.deprecated which is deprecated: Clients of obsoleted Open APIs are encouraged to remove this dependency. See http://www.netbeans.org/download/dev/javadoc/OpenAPIs/org/openide/doc-files/upgrade.html#3.5i-sep-I
Type Groups Level Module Name
err * 255 * (Default)
Type Groups Level Module Name
err * 255 * (Default)
cfg 9 255 com.sun.forte4j.webdesigner
Last execution suffered an abnormal exit at Sunday, May 22, 2005 10:15:18 PM EDT
Log file not specified
Turning on modules:
org.openide/1 [4.26.1 041123]
org.openide.loaders [4.11.1 041123]
org.netbeans.core/1 [1.21.1 041123]
org.openide.io [1.1.1 041123]
org.netbeans.lib.terminalemulator [1.1.1 041123]
org.netbeans.core.output/1 [1.1.1 041123]
com.sun.tools.ide.collab/1 [7.0.0 041123]
com.sun.im [7.0.0 041123]
org.openide.src [1.1.1 041123]
org.openide.execution [1.1.1 041123]
org.openide.compiler [1.2.1 041123]
org.netbeans.core.compiler/1 [1.4.1 041123]
org.openide.debugger [1.1.1 041123]
org.netbeans.modules.editor/1 [1.14.1 041123]
org.netbeans.libs.xalan/1 [1.4.1 2.5.2]
org.netbeans.libs.jaxp/1 [1.2.1 1.1.2]
org.netbeans.api.xml/1 [1.3.1.3.6.0 3.6.0 041123]
org.netbeans.modules.xml.core/2 [1.1.1.3.6.0 3.6.0 041123]
org.netbeans.modules.xml.text/2 [1.1.1.3.6.0 3.6.0 041123]
org.netbeans.modules.classfile/1 [1.8 041123]
org.netbeans.core.execution/1 [1.3.1 041123]
org.netbeans.modules.clazz/1 [1.13.1 041123]
org.netbeans.modules.javahelp/1 [2.1.1 041123]
org.netbeans.modules.db/1 [1.8.2 041123]
com.sun.forte4j.modules.dbmodel.jdbcimpl/1 [7.0.0 041123]
org.openide.deprecated [1.3.1 041123]
org.netbeans.core.deprecated [1.3.1 041123]
org.netbeans.modules.debugger.core/3 [2.10.1 041123]
org.netbeans.modules.debugger.jpda/1 [1.17.1 041123]
org.netbeans.modules.j2eeserver/2 [1.7.3 041123]
org.apache.xalan [2.2.2 Xalan 2.2.0 release]
org.netbeans.modules.image/1 [1.11.1 041123]
javax.activation/1 [1.0.2 1.0.2]
javax.mail/1 [1.1.4 1.1.4]
org.netbeans.modules.logger/1 [1.5 041123]
com.sun.forte4j.modules.depclass/1 [2.4 041123]
org.openidex.util/2 [2.7.1 041123]
org.netbeans.modules.vcscore/1 [1.9.1 041123]
org.netbeans.libs.regexp [1.2.1 1.2]
org.netbeans.modules.jarpackager/2 [1.13.3 041123]
org.netbeans.modules.schema2beans/1 [1.4.3 041123]
org.netbeans.api.java/1 [1.3.1 041123]
org.netbeans.libs.xerces/1 [1.4.1 2.6.0]
org.netbeans.modules.java/1 [1.16.1 041123]
com.sun.ffj.modules.licensemgr/1 [7.0.0 041123]
com.sun.forte4j.j2ee.lib/1 [7.0.0 041123]
com.sun.forte4j.j2ee.ejb/1 [7.0.0 041123]
com.sun.forte4j.j2ee.ejbmodule/1 [7.0.0 041123]
org.netbeans.modules.projects/1 [1.14.1 041123]
org.netbeans.modules.html/1 [1.12.1 041123]
org.netbeans.modules.web.core/1 [1.16.3 041123]
com.sun.forte4j.j2ee.appasm/1 [7.0.0 041123]
com.sun.forte4j.j2ee.appclient/1 [7.0.0 041123]
com.sun.forte4j.j2ee.j2eeconn/1 [7.0.0 041123]
com.sun.forte4j.j2ee.importear/1 [7.0.0 041123]
org.netbeans.modules.diff/1 [1.7.1 041123]
org.netbeans.modules.vcs.advanced/1 [1.9.1 041123]
org.netbeans.modules.vcs.profiles.clearcase/1 [1.2 041123]
org.netbeans.modules.xml.catalog/2 [1.1.1.3.6.0 3.6.0 041123]
org.netbeans.modules.properties/1 [1.11.1 041123]
org.netbeans.modules.i18n/1 [1.14.1 041123]
org.netbeans.modules.javadoc/1 [1.11.1 041123]
javax.xml.namespace/1 [1.0 1.0]
com.sun.xml.messaging1_3/1 [1.0 1.0]
com.sun.xml.registry1_3/1 [1.0 1.0]
com.sun.tools.jaxrpc_cmn/1 [1.1 1.1]
com.sun.xml.rpc1_3/1 [1.0 1.0]
com.sun.forte4j.j2ee.wsdl/1 [7.0.0 041123]
org.netbeans.modules.servletapi23/1 [1.3.2 041123]
org.netbeans.modules.web.jspparser/1 [1.5.2 041123]
org.netbeans.modules.web.tomcat.tomcat40/1 [1.8.3 041123]
com.sun.forte4j.genericgenerator4/1 [1.1.1 020327]
org.netbeans.modules.web.ie/1 [1.15.3 041123]
com.sun.forte4j.webdesigner.xmlservice/1 [7.0.0 041123]
com.sun.tools.ide.j2eeant/1 [7.0.0 041123]
org.netbeans.modules.xml.schema/1 [1.1.1.3.6.0 3.6.0 041123]
org.netbeans.modules.filecopy/1 [1.11 041123]
org.netbeans.modules.group/1 [1.0.1 041123]
org.netbeans.modules.settings/1 [1.4.1 041123]
org.netbeans.tasklistapi/1 [1.7.1.2 2 041123]
org.netbeans.modules.tasklist.core/2 [1.22.1.26 6 041123]
org.netbeans.modules.suggestions_framework/2 [1.2.1.265 5 041123]
org.netbeans.modules.tasklist.docscan/2 [1.13.1.2653 3 041123]
com.sun.forte4j.codetemplates/1 [7.0.0 @BUILD_NUMBER_SUBST@]
com.sun.tools.vcsscc/1 [7.0.0 041123]
com.sun.tools.vcsscc.profiles.vss/1 [7.0.0 041123]
com.sun.forte4j.modules.pointbase/1 [7.0.0 041123]
org.netbeans.core.windows/2 [2.0.1 041123]
org.netbeans.core.ui/1 [1.3.1 041123]
org.netbeans.modules.utilities/1 [1.15.1 041123]
org.netbeans.modules.autoupdate/1 [2.8.1 041123]
org.netbeans.modules.welcome/1 [1.5.1 041123]
org.apache.soap [2.2.1 SOAP 2.2 release]
org.netbeans.lib.cvsclient/1 [1.8.1 041123]
org.netbeans.modules.vcs.profiles.cvsprofiles/1 [1.3.1 041123]
org.netbeans.modules.applet/1 [1.14.1 041123]
org.netbeans.modules.web.debug/1 [1.8.2 041123]
org.netbeans.modules.web.core.syntax/1 [1.12.3 041123]
com.sun.jato.tools.sunone.ee/1 [2.1.4 20041123.213634]
org.netbeans.modules.usersguide/1 [1.13.1 041123]
com.sun.forte4j.ee_examples/1 [7.0.0 041123]
org.netbeans.modules.css/2 [1.1.1.3.6.0 3.6.0 041123]
com.sun.tools.j2mews/1 [7.0.0 041123]
org.ksoap/1 [1.0.1 kSOAP release 1.0]
org.netbeans.modules.vcs.cmdline.compat/1 [1.3.1 041123]
org.netbeans.modules.form/2 [1.13.1 041123]
com.sun.tools.ide.collab.channel.mdc/1 [7.0.0 041123]
org.netbeans.modules.servletapi/1 [1.3.1 041123]
org.netbeans.modules.web.taglibed/1 [1.11.3 041123]
com.sun.tools.dbdrivers/1 [7.0.0 041123]
org.netbeans.modules.refactoring/1 [7.0.0 041123]
org.netbeans.modules.web.assemblee/1 [1.2.1 041123]
com.sun.tools.ide.portal.portlet/1 [1.0 041123]
com.sun.tools.crashreporter [7.0.0 041123]
org.netbeans.modules.text/1 [1.12.1 041123]
com.embarcadero.netbeans/2 [1.0 041123]
com.sun.tools.modules.cvsdisabler/1 [7.0.0 041123]
com.sun.tools.vcsscc.profiles.pvcs/1 [7.0.0 041123]
com.sun.tools.ide.collab.channel.chat/1 [7.0.0 041123]
org.netbeans.modules.i18n.form/2 [1.12 041123]
org.netbeans.modules.properties.syntax/1 [1.11 041123]
org.netbeans.modules.cvsclient/1 [2.0.1 041123]
com.sun.tools.ide.collab.channel.filesharing/1 [7.0.0 041123]
com.sun.forte4j.j2ee.ejbtest/1 [7.0.0 041123]
org.netbeans.modules.httpserver/1 [1.13.1 041123]
org.netbeans.modules.jdbc/1 [7.0.0 041123]
com.sun.jdo.modules.persistence.mapping.core/1 [7.0.0 041123]
com.sun.jdo.modules.persistence.mapping.ejb/1 [7.0.0 041123]
org.netbeans.modules.web.tomcat.tomcat40.autocompile/1 [7.0.0 041123]
org.netbeans.modules.junit/2 [2.11.1 041123]
com.sun.ffj.modules.registration/1 [7.0.0 041123]
org.netbeans.modules.xsl/1 [1.1.1.3.6.0 3.6.0 041123]
com.sun.forte4j.webdesigner.jwsdp/1 [7.0.0 041123]
org.netbeans.modules.extbrowser/1 [1.3.1 041123]
com.sun.forte4j.j2ee.debugger/1 [7.0.0 041123]
com.sun.xml.messaging1_0_01/1 [1.0 1.0]
com.sun.xml.rpc1_0_01/1 [1.0 1.0]
org.netbeans.modules.web.monitor/1 [1.8.3 041123]
org.netbeans.core.ide/1 [1.3.1 041123]
org.apache.tools.ant.module/3 [3.6.1 041123]
javax.portlet/1 [1.0 041123]
org.netbeans.modules.autoupdateffj/1 [7.0.0 041123 ]
com.sun.tools.profiler.monitor [7.2.4 041123]
org.netbeans.modules.beans/1 [1.11.1 041123]
com.sun.enterprise.webserver.tools/1 [7.0.0 PLUGINVERSION]
com.sun.portal.devtool/1 [1.0 041123]
com.sun.tools.ide.collab.ui/1 [7.0.0 041123]
org.netbeans.modules.xml.tax/2 [1.1.1.3.6.0 3.6.0 041123]
org.netbeans.modules.xml.tools/2 [1.1.1.3.6.0 3.6.0 041123]
com.sun.appserv.tools.forte/1 [7.0.0 041123]
org.netbeans.modules.web.dd.editors/1 [1.1.2 041123]
QuantumAutoupdateModule 1116814706515 starting check
Warning - org.netbeans.modules.projects.SetMainClassCookieAction should override CallableSystemAction.asynchronous() to return false
Warning - org.netbeans.modules.debugger.delegator.DefaultDebuggerType should have overridden startDebugger(DataObject,boolean); falling back on deprecated ExecInfo usage; see: http://www.netbeans.org/download/dev/javadoc/OpenAPIs/org/openide/doc-files/upgrade.html#3.5i-sep-II-ExecInfo -
TZupdater: Exception in thread "main" java.lang.NoClassDefFoundError:
Hello,
I am using the tool tzupdater over Solaris 9 to get java compliant with new DST (Daylight Saving Time) for US (2007).
I am using the following command:
# find /usr -fstype nfs -prune -o -fstype autofs -prune -o -name java -print -exec {} /marksman/packages/tzupdater2006p/tzupdater.jar -u \;
Getting the following messages:
/usr/bin/java
Exception in thread "main" java.lang.NoClassDefFoundError: /marksman/packages/tzupdater2006p/tzupdater/jar
/usr/dt/appconfig/netscape/java
/usr/j2se/bin/java
Exception in thread "main" java.lang.NoClassDefFoundError: /marksman/packages/tzupdater2006p/tzupdater/jar
/usr/j2se/bin/sparcv9/java
Exception in thread "main" java.lang.NoClassDefFoundError: /marksman/packages/tzupdater2006p/tzupdater/jar
/usr/j2se/jre/bin/java
Exception in thread "main" java.lang.NoClassDefFoundError: /marksman/packages/tzupdater2006p/tzupdater/jar
/usr/j2se/jre/bin/sparcv9/java
Exception in thread "main" java.lang.NoClassDefFoundError: /marksman/packages/tzupdater2006p/tzupdater/jar
/usr/j2se/opt/javahelp/doc/api/com/sun/java
/usr/java
/usr/iplanet/console5.1/java
/usr/iplanet/ds5/java
/usr/iplanet/admserv5.1/java
/usr/apache/jserv/docs/api/org/apache/java
/usr/java1.2/bin/java
Exception in thread "main" java.lang.NoClassDefFoundError: /marksman/packages/tzupdater2006p/tzupdater/jar
/usr/java1.2/jre/bin/java
Exception in thread "main" java.lang.NoClassDefFoundError: /marksman/packages/tzupdater2006p/tzupdater/jar
/usr/java1.2/jre/bin/sparc/native_threads/java
Exception in thread "main" java.lang.NoClassDefFoundError: /marksman/packages/tzupdater2006p/tzupdater/jar
/usr/appserver/samples/rmi-iiop/cpp/src/client/java
/usr/appserver/samples/rmi-iiop/cpp/src/client/org/omg/boxedRMI/java
/usr/dlc91d/jre/bin/java
Exception in thread "main" java.lang.NoClassDefFoundError: /marksman/packages/tzupdater2006p/tzupdater/jar
/usr/dlc91d/jre/bin/sparc/native_threads/java
Exception in thread "main" java.lang.NoClassDefFoundError: /marksman/packages/tzupdater2006p/tzupdater/jar
/usr/dlc91d/java
Any idea why I am getting this error, and how can I fix it?
Thank youHi,
I was wondering if you ever saw a resolution to your problem. I am seeing the same error on Windows and can't figure out what is causing it. Any information is appreciated.
Thanks,
Marina Orton -
Error complie "Exception in thread "main" java.lang.NoClassDefFoundError"
Dear All,
I have the following problem can not compile the code below.
Here my settings and the code.
Thanks for the help.
My java version.
===============================================
D:\bea\jdk150_22\bin>java -version
java version "1.5.0_22"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_22-b03)
Java HotSpot(TM) Client VM (build 1.5.0_22-b03, mixed mode)
===============================================
I use a bat to compile the code
===============================================
set JDK_HOME=D:\bea\jdk150_22
set PATH=%JDK_HOME%\bin;%PATH%
set CLASSPATH=%CLASSPATH%;D:\oracle\product\10.2.0\client_1\jdbc\lib\classes12.jar
rem ---- compile
javac GetDBOracle.java
rem ---- testing
java GetDBOracle
rem ---- add to jar
jar cf GetDBOracle.jar GetDBOracle.class
===============================================
My java code
===============================================
import java.sql.*;
import java.io.*;
public class GetDBOracle {
public static String GetDBOracle(String Parm1, String Parm2) throws SQLException
String myResult = "";
// Load Oracle driver
DriverManager.registerDriver (new oracle.jdbc.OracleDriver());
// Connect to the local database
Connection conn = DriverManager.getConnection
("jdbc:oracle:thin:@localhost:ORCL", "ORC", "ORC2010");
// Query the employee names
Statement stmt = conn.createStatement ();
ResultSet rset = stmt.executeQuery ("SELECT JAVA_GET_VALUE('"Parm1"','"Parm2"') FROM DUAL");
// Print the name out
while (rset.next ()) {
myResult = rset.getString (1);
//close the result set, statement, and the connection
rset.close();
stmt.close();
conn.close();
return myResult;
public static void main(String args[])
try {
System.out.println(GetDBOracle("XXI", "12000"));
} catch (Exception e) {
System.out.println(e.getMessage());
===============================================
Erro
===============================================
Exception in thread "main" java.lang.NoClassDefFoundError: GetDBOracle
===============================================What happened to this Error complie "Exception in thread "main" java.lang.NoClassDefFoundError" ?
-
I have a simple server program and a simple client program to test axis - soap-rpc style method using Topcat Apache 4.1.
I am getting errors while running my client program (for both methods - .jws as well as .wsdd)
Here is the errors:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/discovery/tools/DiscoverSingleton
at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:41)
at org.apache.axis.components.logger.LogFactory.<clinit>(LogFactory.java:33)
at org.apache.axis.utils.Options.<clinit>(Options.java:35)
==================================
I AM USING FOLLOWING CLASSPATH:
c:\Axis\lib\axis.jar;
c:\Axis\lib\axis-ant.jar;
c:\Axis\lib\commons-discovery-0.2.jar;
c:\Axis\lib\commons-logging-1.0.4.jar;
c:\Axis\lib\jax-1_1-fr-qname-class.jar;
c:\Axis\lib\jaxrpc.jar;
c:\Axis\lib\log4j-1.2.8.jar;
c:\Axis\lib\saaj.jar;
c:\Axis\lib\wsdl4j-1.5.1.jar;
c:\Axis\lib\activation.jar;
C:\Program Files\Apache Group\Tomcat 4.1\common\lib\servlet.jar
==================================
Based on the others recommendation I read I have changed some other version of "COMMANS-LOGGING.JAR", but still I am getting same errors.
Can anyone help me what may be wrong?
Help me!commons-discovery-0.2.jar was fine in my classpath.
Here is the solution:
My classpath did not include . (dot) for the default classpath.
After adding .; (dot) in the beginning of the classpath, the issue was solved.
Thanks -
Exception in thread "main" java.lang.NoClassDefFoundError: in wsdd
Hi All,
I am getting below error while executing command
java -cp %AXISCLASSPATH% org.apache.axis.client.RahulClient -lhttp://localhost:8080/axis/services/AdminService rahul.wsdd
Exception in thread "main" java.lang.NoClassDefFoundError: c:\axis\lib\commons-l
ogging-1/0/4/jar;c:\axis\lib\jaxrpc/jar;c:\axis\lib\saaj/jar;c:\axis\lib\log4j-1
/2/8/jar;c:\axis\lib\axis-ant/jar;c:\axis\lib\wsdl4j-1/5/1/jarjava -cp %AXISCLASSPATH% org.apache.axis.client.RahulClient -lhttp://localhost:8080/axis/services/AdminService rahul.wsdd
Can you tell me where is could be the problem?
Thanks,
Rahulhi,
am not sure.. better you to set classpath for your root or current folder also..
java -cp %AXISCLASSPATH%;.; org.apache.axis.client.RahulClient -lhttp://localhost:8080/axis/services/AdminService rahul.wsdd -
I'm trying to run the following code
public class Example2_22
public static void main( String[] args )
int a = 65;
int b = 78;
System.out.println( 29 / 4 );
System.out.print( "Hello there!\n" );
}Seems simple enough but I'm getting the error in my title
Exception in thread "main" java.lang.NoClassDefFoundError: Example2_22/java
I'm running Ubuntu 8 on the eeepc 900
$ java -version
java version "1.5.0_15"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_15-b04)
Java HotSpot(TM) Client VM (build 1.5.0_15-b04, mixed mode, sharing)
Any idea what's going on?Obviously from the error message you are trying to "run" this:
java Example2_22.java
That's not the way to do it. You first need to compile the source code, and then run the java executable passing it the class name , which has nothing to do with the file name of Example2_22.java.
You need to do the tutorials:
[http://java.sun.com/docs/books/tutorial] -
Exception in thread "main" java.lang.NoClassDefFoundError
Am using java 1.3.1 on Red Hat Linux 7.1
i get this error
Exception in thread "main" java.lang.NoClassDefFoundError
while running a simple program HelloWorld.java
helpWhen you use the "java" command, the only required argument is the name of the class that you want to execute. This argument must be a class name, not a file name, and class names are case sensitive. For example, "java HelloWorld.java" won't work because the class name isn't HelloWorld.java, it's HelloWorld. Similarly, "java helloworld" won't work because a class defined as "public class HelloWorld {" is not named helloworld due to case sensitivity. Finally, the .class file must be in a directory that is in the Classpath - that's where java.exe searches to find the file that contains the class.
-
Hi,
system i am using for Oracle SOA is :
Windows 64 Bit
i5 Processor
6 GB RAM
29 GB on C Drive is already free after installation of all SOA related products.
I have installed wlserver_10.3 for SOA 11g Development purpose and followed exact installation sequence and procedure as mention in oracle documentation
i created domain also and every thing look correct but after installation procedure there are "Additional actions required just after every thing installed" :
setting memory limit
starting weblogic server (Admin Server)
starting weblogic managed server
and so on
now Problem is when i execute C:\Oracle\Middleware\user_projects\domains\soa_div_domain\bin startWebLogic.cmd
as mention in oracle documentation i am getting following error message : (i have only included last error lines instead of complete console log)
oConsole= -Dweblogic.ext.dirs=C:\Oracle\MIDDLE~1\patch_wls1036\profiles\default\
sysext_manifest_classpath;C:\Oracle\MIDDLE~1\patch_oepe180\profiles\default\syse
xt_manifest_classpath;C:\Oracle\MIDDLE~1\patch_ocp371\profiles\default\sysext_ma
nifest_classpath;C:\Oracle\MIDDLE~1\patch_adfr1111\profiles\default\sysext_manif
est_classpath weblogic.Server
Listening for transport dt_socket at address: 8453
Exception in thread "main" java.lang.NoClassDefFoundError: vXmx512m
Caused by: java.lang.ClassNotFoundException: vXmx512m
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: ++Xmx512m. Program will exit.
Now to resolve this what i already tried are :
I change JAVA_HOME and PATH to jdk6 which came with web logic installer
Location is at :
JAVA_HOME : C:\Oracle\Middleware\jdk160_29
PATH : C:\Oracle\Middleware\jdk160_29\bin
The above dose not include any space between path
I ran the startWebLogic.cmd and got same error
After that I also added
CLASSPATH : C:\Oracle\Middleware\jdk160_29\lib\tool.jar;C:\Oracle\Middleware\wlserver_10.3\server\lib\weblogic.jar;C:\Oracle\Middleware\jdk160_29\bin
WL_HOME: C:\Oracle\Middleware\wlserver_10.3
I ran the startWebLogic.cmd and got same error
I also used earlier path which I used with eclipse when I was working on other java development.
JAVA_HOME : C:\Program Files\Java\jdk1.7.0_21
PATH : C:\Program Files\Java\jdk1.7.0_21\bin
I ran the startWebLogic.cmd and got same error
Then I also gave PATH: C:\Oracle\Middleware\wlserver_10.3\server\lib (including the existing one using ; )
I ran the startWebLogic.cmd and got same error
Now may be there is a file called setSOADomainEnv.cmd in
< C:\Oracle\Middleware\user_projects\domains\soa_div_domain\bin\ setSOADomainEnv.cmd>
That include some values for memory set :
set JAVA_OPTIONS=%JAVA_OPTIONS%
set DEFAULT_MEM_ARGS=-Xms512m –Xmx512m
set PORT_MEM_ARGS=-Xms512m –Xmx768m
if "%JAVA_VENDOR%" == "Oracle" goto OracleJVM
set DEFAULT_MEM_ARGS=%DEFAULT_MEM_ARGS% -XX:PermSize=128m -XX:MaxPermSize=768m
set PORT_MEM_ARGS=%PORT_MEM_ARGS% -XX:PermSize=256m -XX:MaxPermSize=768m
now as I change the red highlighted value to 512 value because I have less memory resource and I checked in installation documentation to change the above red highlighted value to 512 original is 1024 which is too high and it was crating problem and showing memory space problem so I change it to 512 and now I am not getting that memory space problem error but may be the above error is related with change value in setSOADomainEnv.cmd file or not
Following are my domain, weblogic and soa home directory path and all these path are exactly what it suppose to be according to Oracle Installation Documentation:
WebLogic :
C:\Oracle\Middleware\wlserver_10.3
C:\Oracle\Middleware\coherence_3.7
C:\Oracle\Middleware\oepe_11.1.1.8.0
SOA Oracle Home Directory :
C:\Oracle\Middleware\Oracle_SOA1
OSB Home Location :
C:\Oracle\Middleware\Oracle_OSB1
Domain name : soa_div_domain
Domain Location : C:\Oracle\Middleware\user_projects\domains
Application Location : C:\Oracle\Middleware\user_projects\applications
Domain Location: C:\Oracle\Middleware\user_projects\domains\soa_div_domain
form here i am trying to start weblogic : C:\Oracle\Middleware\user_projects\domains\soa_div_domain\bin\startWebLogic.cmd
Please tell me any body want more details.
Thanks.I think you are missing a character '-'
USER_MEM_ARGS="Xms512m -Xmx512m -XX:MaxPermSize=128m"Add this character like follows
"-Xms512m -Xmx512m -XX:MaxPermSize=128m" -
Hi,
I have created a class JaxmClient.java. When I compile the class with appropriate jar files assigned to -classpath it compiles successfully with no errors. But when I run the classe "java JaxmClient" it produces the following exception:
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/soap/SOAPElement
Can someone help me I am knew to this technology.
Thanks in advanceI tried to use in my execution all the jar files that I used for compilation.
java -cp jaxm-jar; etc.jar Request
but it still gives me this execption
Exception in thread "main" java.lang.NoClassDefFoundError: Request
I am in the right directory where is the Request.class file is and it is present in this directory....
Thanks appreciate your help... -
I want to run an jar file so on command prompt i am giving the command
" java -jar jSimpleX_3.0.jar "
I am getting the following error:
"exception in thread "main" java.lang.NoClassDefFoundError: org/xml/sax/SAXException "
Can any body explain the reason of this exception
Thanks in advance.Hi
I am getting an exception while running code of "
Reading an XML file in Java"
The error is " Exception in thread "main"
java.lang.NoClassDefFoundError:
org/xml/sax/SAXException "
I am using j2sdk1.4.0 and j2sdk1.4.2_13 and both are
containing rt.jar file. But still i am receiving the
same Error Exception.
Can anybody there help me out.
Thanks in Advance. !!!!Please help me out. Its urgent !!!!!!!!!!!!!!!!!!!!!!! -
Exception in thread main java.lang.NoClassDefFoundError: com/object/msg/SmsService
caused by: java.lang.NotFoundException: com.object.msg.SmsService
at java.net........................
at java.security.......
I'm trying to send SMS using this code and it gives above Exception during Runtime.
import java.io.File;
import com.objectxp.msg.*;
public class SendSMS
public static void main(String[] args)
SmsService service = null;
try {
// Configuration
File config = new File("jsms.conf");
// create service object.
service = new GsmSmsService();
service.init(config);
// create a new Message.
Message msg = new Message();
msg.setRecipient("7894561");
msg.setMessage("jSMS is cool!");
// Connect to the device
service.connect();
// send the Message
service.sendMessage(msg);
System.out.println("Message sent successfully, ID is ");
} catch (Exception ex) {
System.err.println("Message could not be sent: "+ex.getMessage());
ex.printStackTrace();
} finally {
if (service != null) {
try {
service.disconnect();
} catch( Exception unknown ) {}
service.destroy();
}run this one in command prompt and then convert the applet using converter tool
JC_HOME = C:\java_card_kit-2_2_2\bin\
set CLASSES=%JCHOME%\lib\apduio.jar;%JC_HOME%\lib\apdutool.jar;%JC_HOME%\lib\jcwde.jar;%JC_HOME%\lib\converter.jar;%JC_HOME%\lib\scriptgen.jar;%JC_HOME%\lib\offcardverifier.jar;%JC_HOME%\lib\api.jar;%JC_HOME%\lib\installer.jar;%JC_HOME%\lib\capdump.jar;
D:\NareshPalle\jcardRE\Smart\src>java -classpath %_CLASSES% com.sun.javacard.con
verter.Converter -out EXP JCA CAP -exportpath .\exp -applet 0x0a:0x00:0x00:0x00:0x0e:0x01:0x02:
0x03:0x04:0x05:0x06 PackageName appletName 0x01:0x02:0x03:0x04:0x05:0x0
6:0x07:0x08 1.0
or
go to following directory and run the converter tool in command prompt
step 1: cd C:\java_card_kit-2_2_2\bin\
then run this command under the above directory
step 2:converter -classdir E:\Pathof Your applet class file -out EXP JCA CAP -exportpath E:\path of exp files folder -applet AID PackageName AppletName PackAID major.minor no
For more doubts mail me....
*[removed by moderator]*
Thanks and Regards
NareshPalle
Edited by: EJP on 31/03/2012 20:09: removed your email address. Unless you like spam and unless you think these forums are provided for your personal benefit only, posting an email address here serves no useful purpose whatsoever. -
Exception in thread "main" java.lang.NoClassDefFoundError: oracle/xml/parser/v2/
XSLException
Hi
I have downloaded XDK and was trying to use the XSU feature..
I unzipped the XDK file, I ran the following query on SQL plus
select * from emp. It displayed the full table.
Then i set the class path for XDK,XMLparserv2,oracle JDBC driver and then ran the same query on dos prompt(that is front end command line for java in my case).
The following is the line i tried to execute on the command prompt
java OracleXML getXML -user "scott/tiger" -conn "jdbc:oracle:thin:@localhost
:1521:PomonaT" "select * from emp"
PomonaT is the db name(Host string i use to enter SQL+)
I get the following error
Exception in thread "main" java.lang.NoClassDefFoundError: oracle/xml/parser/v2/
XSLException
at OracleXML.To_XML(OracleXML.java:1038)
at OracleXML.ExecuteGetXML(OracleXML.java:917)
at OracleXML.main(OracleXML.java:184)
IS SOMETHING MISSING IN MY CLASSPATH??
IF YES? Could anyone tell what??
KunalAdd xmlparserv2.jar to Classpath & reboot.
-
Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldSwing
Hello;
I got a error to run my application, i have not problem with compile it. But it give me the following error massage when i run it.
Could anyone help me please.
E:\Java>javac HelloWorldSwing.java
E:\Java>java HelloWorldSwing
Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldSwing
E:\Java>path
PATH=C:\Program Files\Java\jdk1.6.0\bin;C:\Program Files\QuickTime\QTSystem\;C:\
Program Files\Common Files\Adobe\AGL;C:\Program Files\Microsoft SQL Server\80\To
ols\BINN;C:\Program Files\Java\jre1.6.0\bin;C:\Program Files\Java\jre1.6.0\bin;C
:\Program Files\Java\j2re1.4.2_13\bin
The following are where my jdk and jre store.
C:\Program Files\Java>dir
Volume in drive C has no label.
Volume Serial Number is 3023-229B
Directory of C:\Program Files\Java
04/02/2007 12:22 AM <DIR> .
04/02/2007 12:22 AM <DIR> ..
01/02/2007 10:54 PM <DIR> j2re1.4.2_13
03/02/2007 04:54 PM <DIR> jdk1.6.0
01/02/2007 10:02 PM <DIR> jre1.5.0_06
04/02/2007 12:22 AM <DIR> jre1.6.0
0 File(s) 0 bytes
6 Dir(s) 5,761,228,800 bytes freeIt even tries to tell you what's wrong. Run class "start.HelloWorldSwing", not "HelloWorldSwing".
I bet that copying that error message without the class name into Google would have given you the answer right away.
Maybe you are looking for
-
I have a iMac Desktop and MacBook Pro laptop. I generate my work related files on both of these machines. After a few days or weeks, I have new files on some folders on either of the machines that is not on the other machine. What is the best way to
-
TS1382 how do i change my name in ipod g5
how do I cange the my name in my Ipod G5
-
In Design CS 6 crashing on resizing a text frame
Some specifics: 2 MACs networked via cable directly connecting the two. one MAC Pro 12GB RAM 10.6 OS one Imac 16GB RAM 10.8 OS (this replaced another MAC Pro that we were told had a bad RAM controller when we started experiencing this odd crashing) I
-
Error when i try to open the Oracle content server workflow administrator
i have installed the Oracle content server 10g r3 , but when i tried to open the workflow administrator tool i got the following error message during "loading cached tables" process, although i have made all the required steps in the installation man
-
Reader email not going to default email client
If I open up an article in 'Reader' in safari, then go to 'Mail this page' it opens up in the OSX Mail program. I use 'Sparrow' and have set this up as the default email client (I know this as I can go to the file menu and 'Mail link to this page' an