From: Nils O. T. <no...@gm...> - 2005-07-11 20:53:12
|
I'm pretty sure your CLASSPATH is wrong. Try echo $CLASSPATH and see if the javaclient.jar file is included in the path. I'm compiling with javac and not gcc -c (if there's a difference) and the following classpath works: echo $CLASSPATH /home/not/jade:/home/not/javaclient/jars/javaclient.jar:. compiling then just requires javac test.java hope that helps, just started using Java again as well so I know your troubles :) cheers, Ole fly roadto wrote: > Hi all, > I am a beginner to try to use javaclient. When I tried to compile the > *.java file with gcc, I was given such error messages as below: > $ gcc -c Simple.java -o Simple.o > Simple.java:12: error: Can't find default package `javaclient'. Check > the CLASSPATH environment variable and the access to the archives > Simple.java:19: error: Type `PlayerClient' not found in declaration of > field `robot'. > PlayerClient robot; > ^ > Simple.java:20: error: Type `PositionInterface' not found in declaration > of field `position'. > PositionInterface position; > ^ > 3 errors > > I don't know why gcc couldn't find the javaclient package, since I'v > already changed the CLASSPATH and PATH_INCLUDE, but NetBeans could > compile the file. > > Anyone got some idea? > Cheers, > Jun Shi > > _________________________________________________________________ > It's fast, it's easy and it's free. Get MSN Messenger 7.0 today! > http://messenger.msn.co.uk > > > > ------------------------------------------------------- > This SF.Net email is sponsored by the 'Do More With Dual!' webinar > happening > July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual > core and dual graphics technology at this free one hour event hosted by HP, > AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar > _______________________________________________ > Java-player-users mailing list > Jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-player-users > > |