Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_java thread: exception in thread "main"


Message #1 by "armineh nazarian" <arminehn@c...> on Thu, 6 Jun 2002 18:15:27 -0700
This is a multi-part message in MIME format.

------=_NextPart_000_00BA_01C20F23.1CA543A0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

you also need to add the folder in which you are keeping your java 
source files and export that..

hope you have fun with Java

chanoch
  ----- Original Message -----
  From: armineh nazarian
  To: Professional Java
  Sent: Friday, June 07, 2002 2:15 AM
  Subject: [pro_java] exception in thread "main"


  I am new to Java. I successfully installed Java 2 standard edition on 
my linux 7.1 box (kernel 2.4.2). I can compile with no errors but I get 
the following runtime error no matter what program I run. The same 
program compiles and runs in MS windows with no problem:

  Here is one of the the sample programs that I run:

  public class Test
  {
     public static void main(String[] args)
     {
        System.out.println("Hello world");
     }
  }

  exception in thread "main" java.lang.noclassdeffound error

  I have the following settings in the /etc/profile file.
  PATH=3D/usr/java/j2sdk1.4.0_01/bin:$PATH
  export PATH
  export JAVA_HOME=3D/usr/java/j2sdk1.4.0_01
  export 
CLASSPATH=3D/usr/java/java/j2sdk1.4.0_01/lib/tools.jar:/usr/java/j2sdk1.4
.0_01/jre/lib/rt.jar

  I see these settings correctly when I type set at the prompt.
  I got the JAVA installation instructions from 
http://www.yolinux.com/TUTORIALS/LinuxTutorialTomcat.html#DATABASE

  --- Change your mail options at http://p2p.wrox.com/manager.asp or to 
unsubscribe send a blank email to 



  Return to Index