Run time error - Exception in thread "main" java.lang.NoClassDefFoundError:

Can can one help me with this error:
Exception in thread "main" java.lang.NoClassDefFoundError: TestEnv
The program is a simple one
import java.io.*;
import java.util.*;
import java.lang.*;
import java.lang.String.*;
//A Very Simple Example
class TestEnv {
public static void main(String[] args){
System.out.println("Env is fine");
Compile the program:
javac TestEnv.java
Run the program:
java TestEnv
Error: Exception in thread "main" java.lang.NoClassDefFoundError: TestEnv

Try setting the classpath properly. It seems the runtime evironment is unable to find the compiled class files. Nothing else is wrong.
--Anil                                                                                                                                                                                                                                                                                           

Similar Messages

  • Java.exe error - Exception in thread "main" java.lang.NoClassDefFoundError:

    I've just started to take on java, and some examples from my learning source
    show the
    javac.exe fileincluded.java
    to
    java.exe fileincluded
    method. Although I can compile fine, when I go to run I get a java.exe error - Exception in thread "main" java.lang.NoClassDefFoundError:.
    I thought it was an environment variable problem as I'm running win xp.
    I've gotten the bin directory included, and I've previously had visual studio .net installed
    so the INCLUDE and LIB variables are set to those directories. I've tried to attach the java /lib and /bin directories by ";C:\PROGRAM FILES\JAVA\JDK1.5.0_02\LIB" etc,
    and that didn't work. What can I do to fix this problem?

    I get the I/O exception while reading: D:\Java\HelloApplet (The system cannot find the file specified). I have previously compiled HelloApplet.java into HelloApplet.class using javac.exe
    the two include statements in the sample HelloApplet I'm using are
    import java.applet.*;
    import java.awt.*;
    I also have a ComponentEventTest.java file which I've made into a class with these two
    include statements:
    import java.awt.*;
    import java.awt.event.*;
    I can however compile .java files which have no include statements.
    I take it that my classpath is not set correctly. Like I said earlier, I'm using winxp
    and trying to set the classpath variable under system. I have tried under user too. The path names I've tried setting are C:\Program Files\Java\jdk1.5.0_02\, C:\Program Files\Java\jdk1.5.0_02\lib, C:\Program Files\Java\jdk1.5.0_02\include, and C:\Program Files\Java\jdk1.5.0_02\;C:\Program Files\Java\jdk1.5.0_02\lib;C:\Program Files\Java\jdk1.5.0_02\include.
    How can I correct this? If it's possible, I would like to set a variable in windows
    versus having to type extra commands at the command prompt everytime I try
    to run a java class with java.exe. Any help would be much appreciated

  • Error: Exception in thread "main" java.lang.NoClassDefFoundError:

    Hi
    I have seen this problem on a few forums but have not found an answer that works for me, sorry if missed it!!
    The command I am giving is:
    C:\Program Files\Rococo\ImprontoSimulator\examples\echo\bin>echo-server
    Exception in thread "main" java.lang.NoClassDefFoundError: com/rococosoft/impronto/examples/echo/EchoServer
    this runs the following batch file:
    @echo off
    set CLASSPATH=
    set CLASSPATH=%SIMULATOR_HOME%\lib\isim_j2se.jar;%CLASSPATH%
    set CLASSPATH=%SIMULATOR_HOME%\lib\log4j.jar;%CLASSPATH%
    set CLASSPATH=%SIMULATOR_HOME%\examples\echo\lib\echo.jar;%CLASSPATH%
    java -classpath "%CLASSPATH%" com.rococosoft.impronto.examples.echo.EchoServer
    this is where I assume all the CLASSPATH's are set.
    Any help would be very much appreciated.
    Thanks
    Nitin

    Once you have defined your classpath as an environment variable, it shouldn't be necessary to include it (or quote it) within the command line. In other words,
    c:\> java EchoServer
    should have worked. However, I suspect the reason the batch script doesn't work might be because %SIMULATOR_HOME% isn't defined? If Java can't find any of the libraries, then it can't find a class EchoServer that contains a main() function to call, resulting in the error message you've received.

  • SQLJ error: "Exception in thread main java.lang.NoClassDefFoundError: sqlj/

    Hi,
    I am new to SQLJ. Now, in my PC (with Win98), I have JDK 1.2 and Oracle 8i (personal edition). I have used Java and Oracle in my PC without any problem. Now, I am going to learn SQLJ in order to create a java program to access Oracle database. What I have done is to set up several classpaths in DOS:
    SET classpath=C:\ora_program\sqlj\lib\translator.zip;
    SET classpath=C:\ora_program\sqlj\lib\runtime.zip;
    SET classpath=C:\ora_program\sqlj\lib\runtime12.zip;
    SET classpath=C:\ora_program\jdbc\lib\classes12.zip;
    The code of my program is:
    import java.sql.Date;
    import java.sql.SQLException;
    import oracle.sqlj.runtime.Oracle;
    import java.util.Date;
    public class Hello{
         public static void main(String[] args){
              java.sql.Date current_date;
              try{
                   // connect to the db
                   Oracle.connect(
                        "C:\ora_program\bin",
                        "system",
                        "manager");
                   // get the current date from the database
                   #sql{SELECT sysdate INTO :current_date FROM dual};
                   // display message
                   System.out.println("Hello, the current date is: "+ current_date);
              catch(SQLException e){
                   System.err.println("sqlException: "+e);
              finally{
                   try{
                        Oracle.close();
                   catch(SQLException e){
                        System.err.println("sqlException: "+e);
    And then I compile my program in DOS with the typing: sqlj Hello.sqlj
    The program cannot be compiled and the error message is:
    "Exception in thread main java.lang.NoClassDefFoundError: sqlj/tools/Sqlj"
    It indicates that the SQLJ translator class files cannot be found.
    I have set up the classpath in DOS (see above). How does the error come? Please help. Thanks.
    PC

    >
    SET classpath=C:\ora_program\sqlj\lib\translator.zip;
    SET classpath=C:\ora_program\sqlj\lib\runtime.zip;
    SET classpath=C:\ora_program\sqlj\lib\runtime12.zip;
    SET classpath=C:\ora_program\jdbc\lib\classes12.zip;
    The above only sets the classpath to the last value. You need to use the following.
    SET classpath=%classpath%;C:\ora_program\sqlj\lib\runtime.zip;

  • HELP Needed with this error:   Exception in thread "main" java.lang.NoClass

    Folks,
    I am having a problem connecting to my MSDE SQL 2000 DB on a WindowsXP pro. environment. I am learning Java and writing a small test prgm to connect the the database. The code compiles ok, but when I try to execute it i keep getting this error:
    "Exception in thread "main" java.lang.NoClassDefFoundError: Test1"
    I am using the Microsoft jdbc driver and my CLASSPATH is setup correctly, I've also noticed that several people have complained about this error, but have not seen any solutions....can someone help ?
    Here is the one of the test programs that I am using:
    import java.sql.*;
    * Microsoft SQL Server JDBC test program
    public class Test1 {
    public Test1() throws Exception {
    // Get connection
    DriverManager.registerDriver(new
    com.microsoft.jdbc.sqlserver.SQLServerDriver());
    Connection connection = DriverManager.getConnection(
    "jdbc:microsoft:sqlserver://LAPTOP01:1433","sa","sqladmin");
    if (connection != null) {
    System.out.println();
    System.out.println("Successfully connected");
    System.out.println();
    // Meta data
    DatabaseMetaData meta = connection.getMetaData();
    System.out.println("\nDriver Information");
    System.out.println("Driver Name: "
    + meta.getDriverName());
    System.out.println("Driver Version: "
    + meta.getDriverVersion());
    System.out.println("\nDatabase Information ");
    System.out.println("Database Name: "
    + meta.getDatabaseProductName());
    System.out.println("Database Version: "+
    meta.getDatabaseProductVersion());
    } // Test
    public static void main (String args[]) throws Exception {
    Test1 test = new Test1();

    I want to say that there was nothing wrong
    with my classpath config., I am still not sure why
    that didn't work, there is what I did to resolved
    this issue.You can say that all you like but if you are getting NoClassDefFound errors, that's because the class associated with the error is not in your classpath.
    (For future reference: you will find it easier to solve problems if you assume that the problem is your fault, instead of trying to blame something else. It almost always is your fault -- at least that's been my experience.)
    1. I had to set my DB connection protocol to TCP/IP
    (this was not the default), this was done by running
    the
    file "svrnetcn.exe" and then in the SQL Server Network
    Utility window, enable TCP/IP and set the port to
    1433.Irrelevant to the classpath problem.
    2. I then copied all three of the Microsoft JDBC
    driver files to the ..\jre\lib\ext dir of my jdk
    installed dir.The classpath always includes all jar files in this directory. That's why doing that fixed your problem. My bet is that you didn't have the jar file containing the driver in your classpath before, you just had the directory containing that jar file.
    3. Updated my OS path to located these files
    and....BINGO! (that simple)Unnecessary for solving classpath problems.
    4. Took a crash course on JDBC & basic Java and now I
    have created my database, all tables, scripts,
    stored procedures and can read/write and do all kinds
    of neat stuff.All's well that ends well. After a few months you'll wonder what all the fuss was about.

  • Exception in thread "main" java.lang.NoClassDefFoundError: Test

    Hi,
    I have just installed J2SE 1.4.2 on my computer, and I am trying to compile and run a simple test program.
    public class Test
         public static void main (String[] args)
         System.out.println("This is the skeleton for a program.");
    I think it compiles ok but when i try to run it I get the following error:
    Exception in thread "main" java.lang.NoClassDefFoundError: Test
    Is there something else I need to install, or a setting that needs to be changed?
    If anyone has any idea I would really appreciate it. Thanks

    You also need to set your $CLASSPATH variable to the directory you have for class files. Set it to like CLASSPATH=/directory/classdirectory/:. and export CLASSPATH. You need to put these two in your profile file.
    your profile should be reloaded for the variable to get set. Or you could set the variable on the command line before you run your program.
    I hope this solves your problem. Most of the time this is the problem's solution.

  • 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
    help

    When 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.

  • Exception in thread "main" java.lang.NoClassDefFoundError org/xml/sax/SAXEx

    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: org/netbeans/lib

    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/
    DataNavigator

    here 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: Hello

    Hi @ all!
    I'm a newbie and maybe for advanced developers my problem is just a tiny one, but I can't solve it. So everytime I want to run my Hello.class in a DOS window with the commandline: java Hello, it print this error:
    Exception in thread "main" java.lang.NoClassDefFoundError: Hello
    Who can I solve it???

    This is a common problem and everybody has had it! The Java runtime cannot find your class.
    - make sure that your compilation worked and the "Hello.class" file exists.
    - To test whether this is a classpath problem, navigate to the directory where "Hello.class" is located and then run "Java Hello" again (assumes you are not yet using packages). If it works, then add the directory to your classpath and you should be able to run from anywhere.
    - if it doesn't work, post again with the error.
    Good Luck

  • Exception in thread "main" java.lang.NoClassDefFoundError in Textpad

    Hello to everybody:
    I programed in java some time ago and now i'm trying to recycle and start again with it. I was programming using Textpad and compiling and excuting the files from there. Now i'm trying to configure it the same way that i had it some time ago. But i'm not able.
    My program is just a operation of 2 numbers. I know it's so dumb :P but i'm trying to learn again. I can compile it (Ctrl+1, using the instruction javac of j2sdk1.4.2_13) but when i try to execute (Ctrl+2, instruction java.exe) i throws me this error:
    Exception in thread "main" java.lang.NoClassDefFoundError: 6
    where "6" is the first parameter for the program.
    I put the CLASSPATH in enviromental variables
    CLASSPATH: C:\j2sdk1.4.2_13\bin;.
    PATH: C:\j2sdk1.4.2_13\bin (this last one after all the others that existed before and separated by ";" )
    If i try to execute it from the promp using the instructions javac.exe and java.exe it works ok. And using NetBeans too. So i have to think it's sth from textpad.
    Can somebody help me? Thank you to everybody for your time.

    Hey, first of all thank you for your help again.
    I'm trying to execute it in the textpad itself. You press Ctrl+2 and appears a window to put the arguments. So there's a parameter called $File (maybe that's the problem, this name should be another one), the name of the current project you're trying to execute. I've tried to put the class name between but it threw me the same error changing the parameter for the class name. So finally i've put the name of the project without extension and after it the arguments, and it has work. I'll go on looking for the parameter to substitute the project name.
    Thank you for all your help. It's the first time i enter in a forum and you've been really helpful. Tahnk you so much. Sure you'll see me here again,, cos i'm a kid of rookie:P

  • Exception in thread "main" java.lang.NoClassDefFoundError: BlueCheese

    I'm writing a simple swing application. It compiles, but I can't get it to run... I always get this error:
    Exception in thread "main" java.lang.NoClassDefFoundError: BlueCheese
    Caused by: java.lang.ClassNotFoundException: BlueCheese
    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)
    I tried running another app, and it works just fine. Here is the source code:
    package zing.blueCheese;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class BlueCheese
         private JFrame frame;
         private static void createGUI()
              JFrame frame = new JFrame("FileSmasher");
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              ImageIcon icon = new ImageIcon("Mac.gif");
              JTabbedPane tabbedPane = new JTabbedPane();
              JLabel label = new JLabel("<html><font size=6>1:</font></html>");
              JPanel panel = new JPanel();
              tabbedPane.addTab("Parse", icon, panel, "Smash a file");
              panel = new JPanel();
              tabbedPane.addTab("Concatenate", icon, panel, "Assemble the smashed pieces of a file");
              frame.pack();
              frame.setVisible(true);
         public static void main(String[] args)
              SwingUtilities.invokeLater(new Runnable()
                   public void run()
                        createGUI();
    Any suggestions?

    yawmark wrote:
    java -cp . zing.blueCheese.BlueCheeseExecuted in the directory containing the "zing" subdirectory (which itself should contain "blueCheese/BlueCheese.class"). Note the "dot" and spaces, which mean "add the current directory to the classpath". Alternately, you could add the full path to the directory containing "zing" to the classpath. Example:java -cp . path/to/dir zing.blueCheese.BlueCheese~Shouldn't that be (with appropriate path separator)
    java -cp.:path/to/dir zing.blueCheese.BlueCheese?

  • Exception in thread "main" java.lang.NoClassDefFoundError: ?classpath

    I try to run a java program at the JRE. I type the following at the DOS prompt.
    C:\j>java -classpath .\ldap.jar;. findAppList
    I have put the ldap.jar and the findAppList.class in the current directory. Also I am sure that the ldap.jar is the only jar file required. So the setting for the classpath variable should be correct. However I still get the following error:
    Exception in thread "main" java.lang.NoClassDefFoundError: ?classpath
    Anyone can tell me what is wrong? Thanks.

    The command-line parameter is "-cp", not "-classpath". Type java -? for list of parameters.

  • Exception in thread "main" java.lang.NoClassDefFoundError: TestInputs

    Hello everyone,
    Can someone enlighten my mind with this error?
    import java.io.*;
    public class TestInputs
         public static void main(String [] args) throws IOException
              DataInputStream din = new DataInputStream(System.in); // read inputs from keyboard
              InputStreamReader inReader = new InputStreamReader(din);
              BufferedReader inBuf = new BufferedReader(inReader);
              String s = inBuf.readLine( );
         } // end main( )
    } // end class
    Error:
    Exception in thread "main" java.lang.NoClassDefFoundError: TestInputs

    Looks like your CLASSPATH is not setup properly.
    Make sure that TestInputs.class is on your class path when you run
    "java TestInputs"
    and that you copiled it

  • Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commo

    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

Maybe you are looking for

  • When I try to restore my iPhone 3GS I get an error that says "unknown error (-1)." My iPhone is in recovery mode and I can't use it! PLEASE HELP!

    Before this it randomly said "your Phone can no longer send or recieve messages. Please restore to reactivate." Then, instead of restoring it, I restarted it. When I turned it back on it said "activation required." So then I tried to restore it and a

  • Http interface with class

    HI EXPRTS! i am working on the Class which is the copy of CL_HTTP_EXT_CSIF BUT I HAVE USED OPEN DATASET for Create,Get and delete comands. which is used to interface with HTTP. when i execute the same with using Url i am geeting correct resules but w

  • Sales Deuction in Invoice...

    Dear All, Scenerio: Booking Value: INR 800000 i.e. Material: XYZ Quantity: 100 UoM: Each Rate: INR 8000/ Each I made a single delivery with Quantity 100; and created Invoice with reference to Delivery document. The Invoice value becomes: INR 800000 B

  • Itunes do not see my ipad 3.

    When i deleted all installed  programms connected with itunes, my pc showed me a folder with ipad, but when I installed itunes again, folder was losted and itunes didn't show me ipad again. when i connect ipad with pc, i hear a sound which means that

  • A Beginner with JAVA.

    Hi all you pros out there, I am a total beginner at this so please bare with me. I looked at Sun Java Studio Creator and was very impressed. I liked the layout and the intro or demo played the right sort of music etc. Everything about the demo just g