Funny Compiling Error

Hi

I am trying to compile some classes but I get funny sorts of errors. Errors I get are as follows;

RemoteServerImpl.java:8: interface expected here

public class RemoteServerImpl extends UnicastRemoteObject implements RemoteServe

r

^

RemoteServerImpl.java:14: cannot resolve symbol

symbol : class Jdom_files

location: class RemoteServerImpl

private Jdom_files jdom= new Jdom_files();

^

RemoteServerImpl.java:14: cannot resolve symbol

symbol : class Jdom_files

location: class RemoteServerImpl

private Jdom_files jdom= new Jdom_files();

^

3 errors

I know that the first error is saying that I need to implement an interface and the second error is saying that it cannot find Jdom_files. However, I am implementing the interface and Jdom-files is in the same directory.

I have compiled the same class before, and it used to compile Ok. Also, if I compile the same class at my university computers, it again compiles fine. Only when I compile at home, it does not.

So does anyone knows what has happened to my home compiler.

regards

[1173 byte] By [qmqasim] at [2007-9-26 21:37:37]
# 1
Is your classpath correct?
pjt33 at 2007-7-3 21:50:52 > top of Java-index,Developer Tools,Java Compiler...
# 2

Hi,

The problem is in the CLASSPATH. The compiler is not able to fine the required class files..The reason it worked on ur university is 'coz they have the current working directory i.e ( ' . ' ) in their class path. compiler searches for class files in current directory first. It is not set at ur home.

set the CLASSPATH variable

in Windows :

set CLASSPATH=%CLASSPATH%;.

in linux :

export CLASSPATH=$CLASSPATH:.

- Bibin

s_bibin at 2007-7-3 21:50:52 > top of Java-index,Developer Tools,Java Compiler...