Problems with comiling java files, using multiple classes

Hi there!

Ive got a problem:

Im working on servet.java files, that use other classes in the same directory

So if i try to compile one file (there is no main java file) it says that the compiler wasnt able to find the methods used in other *.java files , allthough all the files are in the same Directory..

I really dont know what i did wrong, all the files are additionally tagged as part of a common package..

Can you please help me?

Thanks

[484 byte] By [kyosaa] at [2007-10-1 18:02:49]
# 1

> ... the compiler is ... not able to

> find the methods used [declared] in other *.java files ,

> although all the files are in the same Directory..

You do not have . in your classpath.

> I really dont know what i did wrong, all the files

> are additionally tagged as part of a common

> package..

You do not have the root directory of your source tree in your classpath.

tschodta at 2007-7-11 12:40:46 > top of Java-index,Developer Tools,Java Compiler...
# 2
sorry i dont understand what you mean by"you dont have . in your classpath"what should i set there?thxregards
kyosaa at 2007-7-11 12:40:46 > top of Java-index,Developer Tools,Java Compiler...
# 3

> sorry i dont understand what you mean by

> "you dont have . in your classpath"

>

> what should i set there?

Depends.

You are compiling from the command prompt, using javac?

Your current directory is the root of your java source tree?

You should have "." (the current directory) in your classpath or javac will not be able to find the class and java source files in your source tree.

tschodta at 2007-7-11 12:40:46 > top of Java-index,Developer Tools,Java Compiler...
# 4
Read about how to use classpath here: http://java.sun.com/j2se/1.4.2/docs/tooldocs/tools.html
ChuckBinga at 2007-7-11 12:40:46 > top of Java-index,Developer Tools,Java Compiler...