Subject: Re: jdk14 package on current
To: Florence HENRY <Florence.Henry@obspm.fr>
From: James Chacon <jmc@NetBSD.org>
List: current-users
Date: 03/06/2004 00:05:56
On Fri, Mar 05, 2004 at 10:34:09AM +0100, Florence HENRY wrote:
>
> On 10/21/2003, John Hayward wrote :
>
> > I am trying to get javac under 1.4.2 to work under NetBSD 1.6ZD
> > (GENERIC_LAPTOP). It appears that the java interpreter is working
> > in that I can run applet viewers and interpret at least hello world
> > applications.
> > When I attempt to javac a hello world java file I get warnings and
> > errors complaining about things like:
> > ====
> > /usr/pkg/java/sun-1.4/src.zip(java/lang/Object.java):20: class Object is
> > public, should be declared in a file named Object.java (source
> > unavailable).
> > ...
> > /usr/pkg/java/sun-1.4/src.zip(java/net/URI.java):2572: warningn as of
> > release 1.4, assert is a keyword, and may not be used as an identifier
> > (source unavailable).
> > ....
> > 100 errors
> > 206 warings
> > ====
>
> I have exactly the same problem with 2 machines i386 running -current.
> Did you manage to solve your problem ?
>
I had this one. Do *not* set CLASSPATH == src.zip
Just set JAVA_HOME and everything will just work.
James