| |
제 목 : FreeBSD 6.x에서 JDK 1.5 설치시 에러
작성자 : 좋은진호(truefeel, http://coffeenix.net/ )
작성일 : 2007.7.5(목)
FreeBSD 6.x에서 JDK 1.5를 설치할 때 다음과 같은 에러가 발생하고 컴파일이 중단됐을 때.
| |
/usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:226: <identifier> expected
Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location - find_vma failed
^
/usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:226: unclosed character literal
Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location - find_vma failed
^
/usr/ports/java/jdk15/work/control/build/bsd-i586/gensrc/sun/nio/cs/StandardCharsets.java:227: ')' expected
private static final class Aliases
... 생략 ...
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
21 errors
10 warnings gmake[3]: *** [.compile.classlist] Error 1
gmake[3]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make/java/java'
gmake[2]: *** [all] Error 1
gmake[2]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make/java'
gmake[1]: *** [all] Error 1
gmake[1]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make'
gmake: *** [j2se-build] Error 2
*** Error code 2
Stop in /usr/ports/java/jdk15.
*** Error code 1
Stop in /usr/ports/java/jdk15.
#
| |
먼저 리눅스 호환을 위한 linprocfs 파일시스템을 마운트한다.
| | # kldload linprocfs
# mount -t linprocfs linprocfs /compat/linux/proc
| |
그리고, 위 error 메시지에서 표시된 StandardCharsets.java 파일을 열어, 226, 389, 429번째 줄에서 다음 내용을 주석처리한다. 그런 후 컴파일을 다시 하면된다.
| | Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location - find_vma failed
| |
[ 관련글 ]
* Build failure jdk1.5
http://lists.freebsd.org/pipermail/freebsd-java/2007-January/006036.html
* Build fails for jdk14 on FreeBSD-5.2-CURRENT: Can't detect initial thread stack location
http://lists.freebsd.org/pipermail/freebsd-java/2004-July/002568.html
+--> Re: http://lists.freebsd.org/pipermail/freebsd-java/2004-July/002574.html |