reading classes

Using the Java SDK with TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Bradley Gleich

reading classes

Post by Bradley Gleich »

After writing a class, I wrote another application that uses it, but the sencond application can not read the first one....the compiler gives me the error that can not find the variable.how do i fix this?
Hallvard Ystad

Re: reading classes

Post by Hallvard Ystad »

Make sure your classpath variable points to the right directory.
Mark Smith

Re: reading classes

Post by Mark Smith »

My question is how do you check the class path is pointing to the right directory?
mememe

Re: reading classes

Post by mememe »

basically, u need to put all classes inside the same folder. then, it will be ok
jhguan

Re: reading classes

Post by jhguan »

I have a same problem when I using another class files.
I think that Javac can't find another class files in same directory without adding classpath.
so I change a TextPad's configuration.(Configure-Preferences-Tools-Compile Java)
I changed parameters with *.java.
Everytime I compiled all java files.
Post Reply