Exception in thread "main" java.lang.NoClassDefFoundError: version
I am having this problem with all my own work and work I find on other websites. I have read the FAQ and they meantion about a classpath, but I have run soruce code before without the classpath. I have only noticed this problem since i updated from 1.5.0_04 to 1.5.0_06.
Could anyone help
I can now run programs locally by using the -classpath .
But when i try running applets on the web i get this error:
load: class freemind.main.FreeMindApplet.class not found.
java.lang.ClassNotFoundException: freemind.main.FreeMindApplet.class
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 more
Exception in thread "Thread-6" java.lang.NullPointerException
at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
at sun.plugin.AppletViewer.showAppletException(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
I have set the user variables on my system to point to the java\jdk1.5.0-06\. i have the path in user varaibles to java\jdk1.5.0-06\bin, like the documentation says. Are these correct?
Similar Messages
-
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 -
Exception in thread "main" java.lang.NoClassDefFoundError: Emp/class
Dear all,
It occur 'Exception in thread "main" java.lang.NoClassDefFoundError: Emp/class' error when I test a oracle java sample.I've already SET CLASSPATH=C:\ORACLE\JDBC\LIB\CLASSE~1.ZIP.
following is the source code:
import java.sql.*;
class Emp
public static void main (String args [])
throws SQLException
// Load the Oracle JDBC driver
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
// Connect to the database
// You must put a database name after the @ sign in the connection URL.
// You can use either the fully specified SQL*net syntax or a short cut
// syntax as <host>:<port>:<sid>. The example uses the short cut syntax.
Connection conn =
DriverManager.getConnection ("jdbc:oracle:oci8:@localhost:1521:orcl",
"scott", "tiger");
// Create a Statement
Statement stmt = conn.createStatement ();
// Select the ENAME column from the EMP table
ResultSet rset = stmt.executeQuery ("select ENAME from EMP");
// Iterate through the result and print the employee names
while (rset.next ())
System.out.println (rset.getString (1));
Can you tell me what should also be set in classpath?
thanks in advance.You are right, the program is absolutely correct and I've run it before.but why set PATH=%PATH%;C:\ORACLE\JDBC\LIB\CLASSE~1.ZIP?I don't think it is correct.
I've ever run this jdbc program before and remeber only set classpath(path is also be set only for run executable program, for example set path=%path%;c:\j2sdk\bin),
I think the only difference with before is:
1,oracle version is changed from enterprise version to personal version
2,OS is changed from NT to windows 98
but i dont know if it lead to problem and can you give me some advice? -
hi,
I'm new in hibernate.I am studying hibernate tutorial from http://www.hibernate.org/hib_docs/v3/reference/en/html/tutorial.html
After few steps When I've to start data base.It doesn't.
I post whatever at command prompt. Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\shobhitsingh>cd\
C:\>cd hibernate*
C:\hibernateTutorial>java -classpath ../lib/hsqldb.jar org.hsqldb.Server
Exception in thread "main" java.lang.NoClassDefFoundError: org/hsqldb/Server
C:\hibernateTutorial>I thing I should copy paste third party libraries in lib folder.
but still i am confused.
pl guide for this.
Regards
S.SinghPut the hsqldb JAR file into your classpath. I suspect Mr Singh was using ".." when he should have been using "." in the classpath string, but even if he wasn't his classpath issue's not that likely to be identical to yours.
[http://java.sun.com/j2se/1.3/docs/tooldocs/win32/classpath.html|http://java.sun.com/j2se/1.3/docs/tooldocs/win32/classpath.html] -
I am getting the following exception described below:
Exception in thread "main" java.lang.NoClassDefFoundError: java/sql/Savepoint
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java, Compiled Code)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java, Compiled Code)
at java.net.URLClassLoader.defineClass(URLClassLoader.java, Compiled Code)
at java.net.URLClassLoader.access$1(URLClassLoader.java, Compiled Code)
at java.net.URLClassLoader$1.run(URLClassLoader.java, Compiled Code)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java, Compiled Code)
at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java, Compiled Code)
at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java, Compiled Code)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java, Compiled Code)
at java.sql.DriverManager.getConnection(DriverManager.java, Compiled Code)
at java.sql.DriverManager.getConnection(DriverManager.java, Compiled Code)
at source.UserCompileASLFromPatch.getConnection(UserCompileASLFromPatch.java, Compiled Code)
at source.UserCompileASLFromPatch.initialize(UserCompileASLFromPatch.java, Compiled Code)
at source.UserCompileASLFromPatch.main(UserCompileASLFromPatch.java, Compiled Code)
I am using java version "1.4.2_09" for the JDBC Connection. Is it the version problem or can be a problem specific to the code?hello debdatta
The JVM is unable to find the class. Just check ur driver class whether its included in the class path.
and its not getting the location of the file. The path where ur program is searching the class isnt there. so its the problem with ur path not the program. -
I have the following configuration:
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
on a Suse 10.1 Linux.
The javaversion is Java.Version = 1.4.2_11
The classpath does look like:
Eisele@brezn:~/FH-Weihenstephan/Winter_Semester_200809/Uebungen> echo $CLASSPATH
/derby.jar:/derbytools.jar:/derbynet.jar:/derbyclient.jar:/derbyTesting.jar:/local/derby/tools/java/jakarta-oro-2.0.8.jar:/derbyLocale_de_DE.jar:/derbyLocale_es.jar:/derbyLocale_fr.jar:/derbyLocale_it.jar:/derbyLocale_ja_JP.jar:/derbyLocale_ko_KR.jar:/derbyLocale_pt_BR.jar:/derbyLocale_zh_CN.jar:/derbyLocale_zh_TW.jar:/oracle/oracle/product/10.2.0/db_1/jdbc/lib/classes12.jar:/oracle/oracle/product/10.2.0/db_1/jdbc/lib/classes12.zip:/oracle/oracle/product/10.2.0/db_1/jlib/orai18n.jar:/oracle/oracle/product/10.2.0/db_1/jdbc/lib/ojdbc14.jar:/home/Eisele/Oracle/ojdbc14.jar:/home/Eisele/FH-Weihenstephan/Winter_Semester_200809/Uebungen
Eisele@brezn:~/FH-Weihenstephan/Winter_Semester_200809/Uebungen>
The Program JDBCVersion.java which I copied out of the Oracle-Documentation looks like:
import java.sql.*;
import oracle.jdbc.*;
import oracle.jdbc.pool.OracleDataSource;
class JDBCVersion
public static void main (String args[]) throws SQLException
System.out.println("Java.Version = " + System.getProperty("java.version")) ;
OracleDataSource ods = new OracleDataSource();
ods.setURL("jdbc:oracle:thin:scott/tiger@host:port:service");
Connection conn = ods.getConnection();
// Create Oracle DatabaseMetaData object
DatabaseMetaData meta = conn.getMetaData();
// gets driver info:
System.out.println("JDBC driver version is " + meta.getDriverVersion());
I get the following error
Eisele@brezn:~/FH-Weihenstephan/Winter_Semester_200809/Uebungen> javac JDBCVersion.java
Eisele@brezn:~/FH-Weihenstephan/Winter_Semester_200809/Uebungen> java -cp ~/FH-Weihenstephan/Winter_Semester_200809/Uebungen/ JDBCVersion
Java.Version = 1.4.2_11
Exception in thread "main" java.lang.NoClassDefFoundError: oracle/jdbc/pool/OracleDataSource
at JDBCVersion.main(JDBCVersion.java:10)
Eisele@brezn:~/FH-Weihenstephan/Winter_Semester_200809/Uebungen>
Can anyone help me out here and tell me, what I did wrong ?
Thanks in advance !
RüdigerTwo thoughts.
The first is that 10.2.0.1 is unpatched. Why? It has been two years since its release and no one has applied 10.2.0.2, 10.2.0.3 or 10.2.0.4.
The second is that your question is not a database question but a Java question is you are more likely to get an answer that will help you if you post in a group where it is on-topic. -
Exception in thread "main" java.lang.NoClassDefFoundError: utils.CertGen
I want to set the environment by using the setWLSEnv.sh shell in linux OS. Then execute the "java weblogic.utils.CertGen" the below error is occurred.
[root@loaclhost ~]# cd /oracle/Middleware_1033/wlserver_10.3/server/bin/
[root@loaclhost bin]# ll
total 16
drwxr-x--- 2 root root 4096 Dec 3 14:37 international
-rwxr-x--- 1 root root 3845 Dec 3 14:38 setWLSEnv.sh
-rwxr-x--- 1 root root 4150 Dec 3 14:38 startNodeManager.sh
[root@loaclhost bin]# sh setWLSEnv.sh
CLASSPATH=/oracle/Middleware_1033/patch_wls1033/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/oracle/Middleware_1033/patch_ocp353/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/oracle/Middleware_1033/patch_jdev1111/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/oracle/Middleware_1033/jdk160_18/lib/tools.jar:/oracle/Middleware_1033/wlserver_10.3/server/lib/weblogic_sp.jar:/oracle/Middleware_1033/wlserver_10.3/server/lib/weblogic.jar:/oracle/Middleware_1033/modules/features/weblogic.server.modules_10.3.3.0.jar:/oracle/Middleware_1033/wlserver_10.3/server/lib/webservices.jar:/oracle/Middleware_1033/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/oracle/Middleware_1033/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:
PATH=/oracle/Middleware_1033/wlserver_10.3/server/bin:/oracle/Middleware_1033/modules/org.apache.ant_1.7.1/bin:/oracle/Middleware_1033/jdk160_18/jre/bin:/oracle/Middleware_1033/jdk160_18/bin:/usr/lib64/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
Your environment has been set.
[root@loaclhost bin]# java weblogic.utils.CertGen welcome1 vinoth_MS1_cert vinoth_MS1_key domestic vinoth
Exception in thread "main" java.lang.NoClassDefFoundError: weblogic.utils.CertGen
at gnu.gcj.runtime.FirstThread.run() (/usr/lib64/libgcj.so.5.0.0)
at JvThreadRun(java.lang.Thread) (/usr/lib64/libgcj.so.5.0.0)
at JvRunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib64/libgcj.so.5.0.0)
at __gcj_personality_v0 (/oracle/Middleware_1033/wlserver_10.3/server/bin/java.version=1.4.2)
at __libc_start_main (/lib64/tls/libc-2.3.4.so)
at JvRegisterClasses (/oracle/Middleware_1033/wlserver_10.3/server/bin/java.version=1.4.2)
You have new mail in /var/spool/mail/root
But i use check the command " echo CLASSPATH " it's doesn't show any thing.
How to resolve this problem to execute the mentioned command "java weblogic.utils.CertGen welcome1 vinoth_MS1_cert vinoth_MS1_key domestic vinoth"
Regards,
S.Vinoth Babu
Edited by: Vinoth Babu on Dec 13, 2010 5:14 AMYou have to 'source' the call the setWLSEnv, for example,
source ./setWLSEnv.sh or the short version
. ./setWLSEnv.sh -
Exception in thread "main" java.lang.NoClassDefFoundError: SayHi/class
Program - c:\jdk1.3.1_01\demo\SayHi.java
import java.io.*;
class SayHi
public static void main(String[] args)
System.out.println("hellow Worls");
Operating Environment-
1) New installation of Windows Advance 2000 Server. No other installatons.
2) Installed j2sdk-1_3_1_01a-win.exe which I downloaded today.
3) Modified path - PATH=c:\jdk1.3.1_01\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem
4 Created the above program in c:\jdk1.3.1\demo
4a) javac SayHi.java
4b) java SayHi.class
ERROR MESSAGE ENCOUNTERED
Exception in thread "main" java.lang.NoClassDefFoundError: SayHi/class
5) I've experimented with the -classpath
6) I've followed the installation notes for Version 1.3.1
and searched the support site and found numerious problems in this area.
7) I've encountered this same problem on Windows 2K Professional.
I need some help getting the tools to workTry running the sample by typing:
java SayHi
I hope you're using a book or taking a course to learn Java. Pay attention to the details. -
Hi
I am new to java and am trying to deploy a code on linux red hat 4.I have 5 files namely:
1.ClassReportGenerator.java
2.ClassScheduler.java
3.manifest
4.rep_compile.sh
5.repgen.sh
first the rep_compile.sh is used to generate the class files for the two java files and then it creates a jar file
rep.jar file.
rep_compile.sh
export PATH=/app/oradshome/jdk/bin:/app/oradshome:$PATH
echo "Compiling ClassReportGenerator.java ClassScheduler.java"
javac -verbose ClassReportGenerator.java ClassScheduler.java
echo "Creating jar from manifest file"
jar -cvfm rep.jar manifest ClassReportGenerator.class ClassScheduler.class
echo "Executing repgen.sh"
sh repgen.sh
At the end it calls the repgen.sh file
which sets some path and class paths and then takes some user inputs and fires the command
paths being set---
export CLASSPATH=/dit/reports/rep.jar:$CLASSPATH
export PATH=/app/oradshome/jdk/bin:/app/oracle/OraHome/bin:$PATH
command being fired
java -jar rep.jar $userid $password $schema $scheduleafter firing the last lines it throws the error :
Warning: -jar not understood. Ignoring.
Exception in thread "main" java.lang.NoClassDefFoundError: rep.jar
at gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.5.0.0)
at JvThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.5.0.0)
at JvRunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/libgcj.so.5.0.0)
at __gcj_personality_v0 (/dit/reports/java.version=1.4.2)
at __libc_start_main (/lib/tls/libc-2.3.4.so)
at JvRegisterClasses (/dit/reports/java.version=1.4.2)
Plaese help me in this regard.The Code is running fine on IBM AIX.
Thanks & Regards
Ankit GoelWrong forum
-
Exception in thread main java.lang.NoClassDefFoundError when Install 11g 2
Exception in thread main java.lang.NoClassDefFoundError when Install Oracle database 11g release 2 on redhat linux enterprise 5
My Java Version is 1.6.0_13-b03, can anyone help?
Error Message as follows:
准备从以下地址启动 Oracle Universal Installer /tmp/OraInstall2009-12-01_11-25-58AM. 请稍候...[oracle@redhatlinux ~]$ Exception in thread "main" java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at java.awt.Toolkit$2.run(Toolkit.java:821)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:804)
at com.jgoodies.looks.LookUtils.isLowResolution(Unknown Source)
at com.jgoodies.looks.LookUtils.<clinit>(Unknown Source)
at com.jgoodies.looks.plastic.PlasticLookAndFeel.<clinit>(PlasticLookAndFeel.java:122)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at javax.swing.SwingUtilities.loadSystemClass(SwingUtilities.java:1783)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:480)
at oracle.install.commons.util.Application.startup(Application.java:758)
at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:164)
at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:181)
at oracle.install.commons.base.driver.common.Installer.startup(Installer.java:265)
at oracle.install.ivw.db.driver.DBInstaller.startup(DBInstaller.java:114)
at oracle.install.ivw.db.driver.DBInstaller.main(DBInstaller.java:132)I am getting the same exception. I tried using xhost_+ but it's still not working for me.
Again, here is the error that I'm receiving when trying to install Oracle 11g:
Exception in thread "main" java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at java.awt.Toolkit$2.run(Toolkit.java:821)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:804)
at com.jgoodies.looks.LookUtils.isLowResolution(Unknown Source)
at com.jgoodies.looks.LookUtils.<clinit>(Unknown Source)
at com.jgoodies.looks.plastic.PlasticLookAndFeel.<clinit>(PlasticLookAndFeel.java:122)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at javax.swing.SwingUtilities.loadSystemClass(SwingUtilities.java:1783)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:480)
at oracle.install.commons.util.Application.startup(Application.java:758)
at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:164)
at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:181)
at oracle.install.commons.base.driver.common.Installer.startup(Installer.java:265)
at oracle.install.ivw.db.driver.DBInstaller.startup(DBInstaller.java:114)
at oracle.install.ivw.db.driver.DBInstaller.main(DBInstaller.java:132)
Thanks in advance for the help!!
Also, this is all very new to me. So if you could provide a step-by-step answer I would really appreciate it.
Edited by: user9014123 on Jan 25, 2010 1:40 PM -
Exception in thread "main" java.lang.NoClassDefFoundError: Xms512m
when i change memory arguments , i am getting the following error and the server is not starting.
JAVA Memory arguments: Xms512m -Xmx512m -XX:MaxPermSize=128m
WLS Start Mode=Production
CLASSPATH=:/home3/bea9/patch_weblogic922/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home3/bea9/jdk150_07/lib/tools.jar:/home3/bea9/weblogic92/server/lib/weblogic_sp.jar:/home3/bea9/weblogic92/server/lib/weblogic.jar:/home3/bea9/weblogic92/server/lib/webservices.jar::/home3/bea9/weblogic92/common/eval/pointbase/lib/pbclient51.jar:/home3/bea9/weblogic92/server/lib/xqrl.jar::
PATH=/home3/bea9/weblogic92/server/bin:/home3/bea9/jdk150_07/jre/bin:/home3/bea9/jdk150_07/bin:/home3/bea8/weblogic81/server/bin:/weblogic/bea/scripts:/home3/bea8/jdk142_05/bin:/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/nettladm/bin:/opt/fc/bin:/opt/fcms/bin:/opt/upgrade/bin:/opt/pd/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/hparray/bin:/opt/langtools/bin:/opt/imake/bin:/opt/perf/bin:/opt/ignite/bin:/opt/OV/bin/OpC:/opt/hpnp//bin:/opt/resmon/bin:/usr/sbin/diag/contrib:/opt/pred/bin:/opt/sec_mgmt/spc/bin:/opt/graphics/common/bin:/opt/OV/bin:/opt/ssh/bin:/opt/aCC/bin:/opt/sec_mgmt/bastille/bin:.:/u01/app/oracle/product/8.1.7/bin
* To start WebLogic Server, use a username and *
* password assigned to an admin-level user. For *
* server administration, use the WebLogic Server *
* console at http://hostname:port/console *
starting weblogic with Java version:
java version "1.5.0.07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0.07-_20_mar_2007_05_31)
Java HotSpot(TM) Server VM (build 1.5.0.07 jinteg:03.20.07-04:39 PA2.0 (aCC_AP), mixed mode)
Starting WLS with line:
/home3/bea9/jdk150_07/bin/java -server Xms512m -Xmx512m -XX:MaxPermSize=128m -da -Dplatform.home=/home3/bea9/weblogic92 -Dwls.home=/home3/bea9/weblogic92/server -Dwli.home=/home3/bea9/weblogic92/integration -Dweblogic.management.discover=false -Dweblogic.management.server=http://localhost:9001 -Dwlw.iterativeDev=false -Dwlw.testConsole=false -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=/home3/bea9/patch_weblogic922/profiles/default/sysext_manifest_classpath -Dweblogic.Name=TEST -Djava.security.policy=/home3/bea9/weblogic92/server/lib/weblogic.policy weblogic.Server
Exception in thread "main" java.lang.NoClassDefFoundError: Xms512m
$
The server is starting fine with domain variables without changing the memory arguments in the managed server startup scripts.
But when i changed the mem args in the server startup script , this is the error and server is not starting.
the domain env is set and weblogic server version 9.2
Here is the arguments i changed in the startup script, the server is starting with out these arguments with domain set memory arguments. Any body please help
USER_MEM_ARGS="Xms512m -Xmx512m -XX:MaxPermSize=128m"
export USER_MEM_ARGSI think you are missing a character '-'
USER_MEM_ARGS="Xms512m -Xmx512m -XX:MaxPermSize=128m"Add this character like follows
"-Xms512m -Xmx512m -XX:MaxPermSize=128m" -
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" ?
-
Exception in thread "main" java.lang.NoClassDefFoundError: JDBCVersion
I using the example in the online jdbc docs shown below:
+++++++
import java.sql.*;
import oracle.jdbc.*;
import oracle.jdbc.pool.OracleDataSource;
class JDBCVersion
public static void main (String args[]) throws SQLException
OracleDataSource ods = new OracleDataSource();
//ods.setURL("jdbc:oracle:thin:scott/tiger@host:port:service");
ods.setURL("jdbc:oracle:thin:scott/tiger@testdb:1521:xe");
Connection conn = ods.getConnection();
// Create Oracle DatabaseMetaData object
DatabaseMetaData meta = conn.getMetaData();
// gets driver info:
System.out.println("JDBC driver version is " + meta.getDriverVersion());
I compiles without a problem:
C:\temp>javac JDBCVersion.java -classpath c:\instantclient\ojdbc6.jar
+++
I keep getting the following error when attempting to run the
C:\temp>java JDBCVersion -classpath c:\instantclient\ojdbc6.jar
Exception in thread "main" java.lang.NoClassDefFoundError: JDBCVersion
Caused by: java.lang.ClassNotFoundException: JDBCVersion
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)
Could not find the main class: JDBCVersion. Program will exit.
I attempted to set my classpath using the parameter -classpath
and setting the environment variable in the ontrol panel, system, adv, env. vars.
I still get the error.
Can someone provide some specific idea why this is occuring?
Thanks in advance,
LarryThanks for the response. I also found a solution by setting the classpath using the environment variable in xp. I tried to set the environmental variable before, but I did it incorrectly(unknown to me); I set it up in the system variable portion. I was surfing around for solutions and found the proper way to set the value with this link. I hope it saves some else several days of work that it cost me :)
http://faculty.ed.umuc.edu/~arnoldyl/NetBeansTutorials/Setting-Classpath.html -
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 -
Hi All
I am using XSLT transformation in JDeveloper with the following code but getting exception. How to avoid using Oracle XSLT processor which looks incomplete ?
TransformerFactory factory = TransformerFactory.newInstance();
Transformer transformer;
try {
result =
new StreamResult(new OutputStreamWriter(new FileOutputStream(output),
"UTF-8"));
transformer = factory.newTransformer(XSLTFile);
transformer.transform(inputXML, result);
} catch (TransformerException e) {
e.printStackTrace();
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
} catch (FileNotFoundException e) {
e.printStackTrace();
Code runs fine but throws exception when there is any XPath expression in the XSLT file such as
/ns:root/sa:node[@name='attribName']
It does not show exception for simple expressions like "/ns:root/sa:node"
Exception is
Exception in thread "main" java.lang.NoClassDefFoundError: oracle/i18n/text/OraCollator
at oracle.xml.xqxp.functions.builtIns.FNUtil.getCollator(FNUtil.java:355)
at oracle.xml.xqxp.datamodel.OXMLItem.compareValue(OXMLItem.java:1080)
at oracle.xml.xpath.XPathItem.compareValue(XPathItem.java:409)
at oracle.xml.xpath.XPathSequence.compareGeneral(XPathSequence.java:1477)
at oracle.xml.xpath.ComparisonExpr.evaluate(XSLExpr.java:1507)
at oracle.xml.xpath.XPathPredicate.filter(XPathPredicate.java:264)
at oracle.xml.xpath.XPathChildAxis.getNodeList(XPathAxis.java:580)
at oracle.xml.xpath.XPathStep.evaluate(XPathStep.java:555)
at oracle.xml.xpath.PathExpr.evaluate(XSLNodeSetExpr.java:859)
at oracle.xml.xpath.XSLExprBase.streamingEvaluate(XSLExprBase.java:392)
at oracle.xml.xslt.XSLForEach.processAction(XSLForEach.java:135)
at oracle.xml.xslt.XSLNode.processChildren(XSLNode.java:497)
at oracle.xml.xslt.XSLTemplate.processAction(XSLTemplate.java:205)
at oracle.xml.xslt.XSLStylesheet.execute(XSLStylesheet.java:585)
at oracle.xml.xslt.XSLProcessor.processXSL(XSLProcessor.java:332)
at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:485)
PS. my XSLT version is <?xml version="1.0" , can't make it to 2.0 as Jdeveloper (11.1.1.5.0) throws error during compilation.The exception got resolved by the library orai18n-collation.jar in the directory "Oracle\Middleware\oracle_common\modules\oracle.nlsrtl_11.1.0"
However I wanted to completely avoid Oracle V2 Parser as it was working in a fresh project where only standard import javax.xml.transform.Transformer was available.
Maybe you are looking for
-
Archive and Install: How to get my data back?
I did an archive/install to resolve a "computer not going to sleep" issue. It did resolve the issue but now I want my data back. I see it is all probably in the folder titled: Previous Systems. How do i get things into this new install (such as my ad
-
How to Integrate B2B into Portal(7.0)
Dear sirs, I have installed a CRM 5.0(sp7) based on ABAP and JAVA. The JCRM is installed on the same WAS while the PORTAL(7.0) is installed on another WAS(different form the CRM WAS). The ISA user management is based on CRM backend, which means t
-
How to integrate two plantfloor systems
Can anybody help me that how to Integrate two plant floor systems
-
anyone have any ideas on how to get that off there?
-
Hello Is it possible to create a COPA report with posting date as a selection criteria? If so, how?