is this a bug?

2002-09-01 Thread Jochen Georges

hello

i've got a wicked problem.

 if my CLASSPATH is set like this:
 export CLASSPATH=$CLASSPATH:/usr/lib/j2sdk1.3/lib/tools.jar
 i get a compiler error (see below)
 if it is not set, the compilation runs without error.

 

 ---my system:
 linux (debian woody)
 j2sdk1.3_1.3.1-1_i386.deb from blackdown.org
 (i need the CLASSPATH for using jswat)

 ---the source
public class pingThread extends Thread{}
public class pingpong extends java.applet.Applet implements Runnable, 
ActionListener{
 pingThread pit = new pingThread();
 Thread sammelThread;
 
}

---the error
pingpong.java:18: cannot resolve symbol
symbol : class pingThread
location: class pingpong
pingThread pit = new pingThread();

pingpong.java:18: cannot resolve symbol
symbol : class pingThread
location: class pingpong
pingThread pit = new pingThread();


---my question
is that normal???
what can i do?

thanks for any hints

beste gruesse
jochen


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: is this a bug?

2002-09-01 Thread Jochen Georges

On Sunday 01 September 2002 16:31, Dan Kegel wrote:
> Jochen Georges wrote:
> >  if my CLASSPATH is set like this:
> >  export CLASSPATH=$CLASSPATH:/usr/lib/j2sdk1.3/lib/tools.jar
> >  i get a compiler error (see below)
> >  if it is not set, the compilation runs without error.
>
> Please tell us the *full* value of CLASSPATH.
> We don't know what's in CLASSPATH before that statement.
> Also, please tell use what 'which java' and 'java --version' say.
>
> Finally, please make sure you truly have only one JDK installed...
> - Dan

hello dan, 
thanks for your help.
i changed the line in /etc/profile from:
export CLASSPATH=$CLASSPATH:/usr/lib/j2sdk1.3/lib/tools.jar
to
export CLASSPATH=$CLASSPATH:/usr/lib/j2sdk1.3/lib/tools.jar:.
now it works.
don't know why, but it works.

so , thanks again :-)

beste gruesse
jochen


p.s.:

jochen@archie:~$ echo $CLASSPATH
:/usr/lib/j2sdk1.3/lib/tools.jar:.:/usr/lib/j2sdk1.3/lib

archie:~# which java
/usr/bin/java
archie:~# java --version
Unrecognized option: --version
Could not create the Java virtual machine.


archie:~# dpkg --list | grep j2sdk
hi  j2sdk1.3   1.3.1-1Blackdown Java(TM) 2 SDK, Standard Edition
archie:~# dpkg --list | grep java 
hi  java-common0.14   Base of all Java packages
ii  jswat  1.5.10-1   JPDA java debugger


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]