tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arnaud Héritier <aherit...@sopragroup.com>
Subject RE: Very basic problem
Date Wed, 02 Jan 2002 15:37:37 GMT
In the memory of my first java lines I will reply to this out of subject question.

Firstly, You should have the current directory in your CLASSPATH.
Secondly you should put a capital to your class name and your file (to be clean)

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

then you launch it with :
java -classpath . Test

Arnaud

> -----Message d'origine-----
> De:	Jack Li [SMTP:JLi@MurraysDiscount.com]
> Date:	mercredi 2 janvier 2002 16:26
> À:	'tomcat-user@jakarta.apache.org'
> Objet:	Very basic problem
> 
> Hello All,
> I have a very basic problem. I try to an java application under DOS (Windows
> operating system is windows 2000 server). I got error:
> 
> java.lang.NoClassDefFoundError: test.
> 
> The application is a sample from text book, very simple:
> 
> class test {
>   public static void main(String args[]) {
>     System.out.println("Hello, World!");
>   }
> 
> }
> 
> I run it by "java test". I installed jdk1.3, and setup the CLASSPATH point
> to d:\jdk1.3;d:\jdk1.3\bin;
> 
> what do I missed ?
> 
> Thanks,
> Jack
> 
> 
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message