You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by John Najarian <j-...@earthlink.net> on 2004/09/16 09:00:52 UTC

A little offbeat question

I tried to run a program I thought would but it doesn't.

This is on a windows XP platform.

Everything compiled well but I get this error:

Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld/class

 

So I went back and tried a no brainer 'HelloWorld'  This is the code.

/**

 * The HelloWorld class implements an application that

 * displays "Hello World!" to the standard output.

 */

public class HelloWorld {

    public static void main(String[] args) {

        // Display "Hello World!"

        System.out.println("Hello World!");

    }

}

 

It compiles but I get the same error.

I check my environment variables and mine are

JAVA_HOME c:\j2sdk1.4.2_03

PATH
C:\Perl\bin\;C:\j2sdk1.4.2_03\bin\;C:\j2sdkee1.3.1\bin\;%SystemRoot%\system3
2;%SystemRoot%;%SystemRoot%\system32\WBEM

 

Any ideas?

 

Thanks in advance


RE: A little offbeat question

Posted by John Najarian <j-...@earthlink.net>.
I wasn't trying to do anything with tomcat.

Just writing a standalone app.  But now even
the dumb HelloWorld 1 doesn't work on the command line.

-----Original Message-----
From: Meena Alagappan [mailto:meenal@comneti.com] 
Sent: Thursday, September 16, 2004 12:13 AM
To: Tomcat Users List
Subject: Re: A little offbeat question


Frist tell me what you are trying do this code with tomcat ?





Best Regards,
Meena.
~~~~~~~~~

--------------------------
Life is a festival ...
Celebrate it ...
--------------------------



  ----- Original Message ----- 
  From: John Najarian 
  To: 'Tomcat Users List' 
  Sent: Thursday, September 16, 2004 12:33 PM
  Subject: RE: A little offbeat question


  One more thing, tomcat was running fine.

  -----Original Message-----
  From: John Najarian [mailto:j-najarian@earthlink.net] 
  Sent: Thursday, September 16, 2004 12:01 AM
  To: tomcat-user@jakarta.apache.org
  Subject: A little offbeat question

  I tried to run a program I thought would but it doesn't.

  This is on a windows XP platform.

  Everything compiled well but I get this error:

  Exception in thread "main" java.lang.NoClassDefFoundError:
HelloWorld/class

   

  So I went back and tried a no brainer 'HelloWorld'  This is the code.

  /**

   * The HelloWorld class implements an application that

   * displays "Hello World!" to the standard output.

   */

  public class HelloWorld {

      public static void main(String[] args) {

          // Display "Hello World!"

          System.out.println("Hello World!");

      }

  }

   

  It compiles but I get the same error.

  I check my environment variables and mine are

  JAVA_HOME c:\j2sdk1.4.2_03

  PATH
 
C:\Perl\bin\;C:\j2sdk1.4.2_03\bin\;C:\j2sdkee1.3.1\bin\;%SystemRoot%\system3
  2;%SystemRoot%;%SystemRoot%\system32\WBEM

   

  Any ideas?

   

  Thanks in advance




  ---------------------------------------------------------------------
  To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
  For additional commands, e-mail: tomcat-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: A little offbeat question

Posted by John Najarian <j-...@earthlink.net>.
That is the jdk from sun.  Go to
http://java.sun.com/j2se/1.4.2/download.html

Java 2 Platform, Standard Edition, v 1.4.2 (J2SE)

-----Original Message-----
From: Bedrijven.nl [mailto:maarten@bedrijven.nl] 
Sent: Thursday, September 16, 2004 12:18 AM
To: 'Tomcat Users List'
Subject: RE: A little offbeat question

JAVA_HOME c:\j2sdk1.4.2_03..don'nt you need a jdk? Seems it's a classpath
problem

-----Oorspronkelijk bericht-----
Van: Meena Alagappan [mailto:meenal@comneti.com]
Verzonden: Thursday, September 16, 2004 8:13 AM
Aan: Tomcat Users List
Onderwerp: Re: A little offbeat question



Frist tell me what you are trying do this code with tomcat ?





Best Regards,
Meena.
~~~~~~~~~

--------------------------
Life is a festival ...
Celebrate it ...
--------------------------



  ----- Original Message -----
  From: John Najarian
  To: 'Tomcat Users List'
  Sent: Thursday, September 16, 2004 12:33 PM
  Subject: RE: A little offbeat question


  One more thing, tomcat was running fine.

  -----Original Message-----
  From: John Najarian [mailto:j-najarian@earthlink.net]
  Sent: Thursday, September 16, 2004 12:01 AM
  To: tomcat-user@jakarta.apache.org
  Subject: A little offbeat question

  I tried to run a program I thought would but it doesn't.

  This is on a windows XP platform.

  Everything compiled well but I get this error:

  Exception in thread "main" java.lang.NoClassDefFoundError:
HelloWorld/class



  So I went back and tried a no brainer 'HelloWorld'  This is the code.

  /**

   * The HelloWorld class implements an application that

   * displays "Hello World!" to the standard output.

   */

  public class HelloWorld {

      public static void main(String[] args) {

          // Display "Hello World!"

          System.out.println("Hello World!");

      }

  }



  It compiles but I get the same error.

  I check my environment variables and mine are

  JAVA_HOME c:\j2sdk1.4.2_03

  PATH
  C:\Perl\bin\;C:\j2sdk1.4.2_03\bin\;C:\j2sdkee1.3.1\bin\;%SystemRoot%\syste
m3
  2;%SystemRoot%;%SystemRoot%\system32\WBEM



  Any ideas?



  Thanks in advance




  ---------------------------------------------------------------------
  To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
  For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: A little offbeat question

Posted by "Bedrijven.nl" <ma...@bedrijven.nl>.
JAVA_HOME c:\j2sdk1.4.2_03..don'nt you need a jdk? Seems it's a classpath
problem

-----Oorspronkelijk bericht-----
Van: Meena Alagappan [mailto:meenal@comneti.com]
Verzonden: Thursday, September 16, 2004 8:13 AM
Aan: Tomcat Users List
Onderwerp: Re: A little offbeat question



Frist tell me what you are trying do this code with tomcat ?





Best Regards,
Meena.
~~~~~~~~~

--------------------------
Life is a festival ...
Celebrate it ...
--------------------------



  ----- Original Message -----
  From: John Najarian
  To: 'Tomcat Users List'
  Sent: Thursday, September 16, 2004 12:33 PM
  Subject: RE: A little offbeat question


  One more thing, tomcat was running fine.

  -----Original Message-----
  From: John Najarian [mailto:j-najarian@earthlink.net]
  Sent: Thursday, September 16, 2004 12:01 AM
  To: tomcat-user@jakarta.apache.org
  Subject: A little offbeat question

  I tried to run a program I thought would but it doesn't.

  This is on a windows XP platform.

  Everything compiled well but I get this error:

  Exception in thread "main" java.lang.NoClassDefFoundError:
HelloWorld/class



  So I went back and tried a no brainer 'HelloWorld'  This is the code.

  /**

   * The HelloWorld class implements an application that

   * displays "Hello World!" to the standard output.

   */

  public class HelloWorld {

      public static void main(String[] args) {

          // Display "Hello World!"

          System.out.println("Hello World!");

      }

  }



  It compiles but I get the same error.

  I check my environment variables and mine are

  JAVA_HOME c:\j2sdk1.4.2_03

  PATH
  C:\Perl\bin\;C:\j2sdk1.4.2_03\bin\;C:\j2sdkee1.3.1\bin\;%SystemRoot%\syste
m3
  2;%SystemRoot%;%SystemRoot%\system32\WBEM



  Any ideas?



  Thanks in advance




  ---------------------------------------------------------------------
  To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
  For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: A little offbeat question

Posted by Meena Alagappan <me...@comneti.com>.
Frist tell me what you are trying do this code with tomcat ?





Best Regards,
Meena.
~~~~~~~~~

--------------------------
Life is a festival ...
Celebrate it ...
--------------------------



  ----- Original Message ----- 
  From: John Najarian 
  To: 'Tomcat Users List' 
  Sent: Thursday, September 16, 2004 12:33 PM
  Subject: RE: A little offbeat question


  One more thing, tomcat was running fine.

  -----Original Message-----
  From: John Najarian [mailto:j-najarian@earthlink.net] 
  Sent: Thursday, September 16, 2004 12:01 AM
  To: tomcat-user@jakarta.apache.org
  Subject: A little offbeat question

  I tried to run a program I thought would but it doesn't.

  This is on a windows XP platform.

  Everything compiled well but I get this error:

  Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld/class

   

  So I went back and tried a no brainer 'HelloWorld'  This is the code.

  /**

   * The HelloWorld class implements an application that

   * displays "Hello World!" to the standard output.

   */

  public class HelloWorld {

      public static void main(String[] args) {

          // Display "Hello World!"

          System.out.println("Hello World!");

      }

  }

   

  It compiles but I get the same error.

  I check my environment variables and mine are

  JAVA_HOME c:\j2sdk1.4.2_03

  PATH
  C:\Perl\bin\;C:\j2sdk1.4.2_03\bin\;C:\j2sdkee1.3.1\bin\;%SystemRoot%\system3
  2;%SystemRoot%;%SystemRoot%\system32\WBEM

   

  Any ideas?

   

  Thanks in advance




  ---------------------------------------------------------------------
  To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
  For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

RE: A little offbeat question

Posted by John Najarian <j-...@earthlink.net>.
One more thing, tomcat was running fine.

-----Original Message-----
From: John Najarian [mailto:j-najarian@earthlink.net] 
Sent: Thursday, September 16, 2004 12:01 AM
To: tomcat-user@jakarta.apache.org
Subject: A little offbeat question

I tried to run a program I thought would but it doesn't.

This is on a windows XP platform.

Everything compiled well but I get this error:

Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld/class

 

So I went back and tried a no brainer 'HelloWorld'  This is the code.

/**

 * The HelloWorld class implements an application that

 * displays "Hello World!" to the standard output.

 */

public class HelloWorld {

    public static void main(String[] args) {

        // Display "Hello World!"

        System.out.println("Hello World!");

    }

}

 

It compiles but I get the same error.

I check my environment variables and mine are

JAVA_HOME c:\j2sdk1.4.2_03

PATH
C:\Perl\bin\;C:\j2sdk1.4.2_03\bin\;C:\j2sdkee1.3.1\bin\;%SystemRoot%\system3
2;%SystemRoot%;%SystemRoot%\system32\WBEM

 

Any ideas?

 

Thanks in advance




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org