Tuesday, July 11, 2006

Install JDK 1.4 on FreeBSD

Do not run 'make clean', but edit /usr/local/ports/java/jdk14/work/control/build/
bsd-i586/gensrc/java/util/CurrencyData.java, remove the first line and run 'make' again.

For some reason (I don't know what) the first line of this file gets corrupted sometimes.

> Java HotSpot(TM) Client VM warning: Can't detect initial thread stack
> location
> /usr/local/ports/java/jdk14/work/control/build/
bsd-i586/gensrc/java/util/CurrencyData.java:1:
> 'class' or 'in terface' expected
> Java HotSpot(TM) Client VM warning: Can't detect initial thread stack
> location
> ^
> /usr/local/ports/java/jdk14/work/control/build/
bsd-i586/gensrc/java/util/CurrencyData.java:1:
> unclosed chara cter literal
> Java HotSpot(TM) Client VM warning: Can't detect initial thread stack
> location
> ^
> 2 errors
> gmake[4]: *** [.compile.classlist] Error 1
> gmake[4]: Leaving directory
> `/usr/local/ports/java/jdk14/work/j2se/make/java/java'
> gmake[3]: *** [optimized] Error 2
> gmake[3]: Leaving directory
> `/usr/local/ports/java/jdk14/work/j2se/make/java/java'
> gmake[2]: *** [all] Error 1
> gmake[2]: Leaving directory
> `/usr/local/ports/java/jdk14/work/j2se/make/java'
> gmake[1]: *** [all] Error 1
> gmake[1]: Leaving directory `/usr/local/ports/java/jdk14/work/j2se/make'
> gmake: *** [j2se-build] Error 2
> *** Error code 2
>
> Stop in /usr/local/ports/java/jdk14.

No comments: