· KLDP.org · KLDP.net · KLDP Wiki · KLDP BBS ·
jdk 설치문서



1. J2SDK/J2RE-1.4

1.1. 설치

DebianKorea:자바에서 나온 것 처럼 직접 설치하거나, java-package를 사용하여 deb패키지를 만들어 설치하는 두가지 방법이 있습니다.

1.2. 한글설정


요즘의 배포판은 ko_KR.UTF-8에 맞춰 나오므로 아래의 설정과 다를 수 있습니다.

/usr/local/j2sdk1.4.1/jre/lib/fonts 에다가 batang.ttc gulim.ttc를 복사 혹은 링크.(윈도우에서 슬쩍) 한 후 fonts.dir 에다가 다음을 추가 밑에 74은 72+2개를 말함.
74
batang.ttc -ms-batang-medium-r-normal--0-0-0-0-c-0-ksc5601.1987-0
gulim.ttc -ms-gulim-medium-r-normal--0-0-0-0-c-0-ksc5601.1987-0

다음을 /usr/local/j2sdk1.4.1/jre/lib/font.properties.ko 로 저장.
# @(#)font.properties.linux 1.7 01/04/21
#
# Copyright 1997-2001 by Sun Microsystems, Inc.,
# 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
# All rights reserved.
#
# This software is the confidential and proprietary information
# of Sun Microsystems, Inc. ("Confidential Information"). You
# shall not disclose such Confidential Information and shall use
# it only in accordance with the terms of the license agreement
# you entered into with Sun.
#

#
# Linux version derived from the version for SunOS 5.5.1 Notice that
# we use the .ttf files shipped in the JDK distribution.
#

# Serif font definition
#
serif.0=-b&h-lucidabright-medium-r-normal--*-%d-*-*-p-*-iso8859-1
serif.1=-ms-batang-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0

serif.italic.0=-b&h-lucidabright-medium-i-normal--*-%d-*-*-p-*-iso8859-1
serif.italic.1=-ms-batang-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0

serif.bold.0=-b&h-lucidabright-demibold-r-normal--*-%d-*-*-p-*-iso8859-1
serif.bold.1=-ms-batang-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0

serif.bolditalic.0=-b&h-lucidabright-demibold-i-normal--*-%d-*-*-p-*-iso8859-1
serif.bolditalic.1=-ms-batang-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0

# SansSerif font definition
#
sansserif.0=-b&h-lucidasans-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1
sansserif.1=-ms-gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0

sansserif.italic.0=-b&h-lucidasans-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1
sansserif.italic.1=-ms-gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0

sansserif.bold.0=-b&h-lucidasans-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1
sansserif.bold.1=-ms-gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0

sansserif.bolditalic.0=-b&h-lucidasans-bold-i-normal-sans-*-%d-*-*-p-*-iso8859-1
sansserif.bolditalic.1=-ms-gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0

# Monospaced font definition
#
monospaced.0=-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1
monospaced.1=-ms-mingliu-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0

monospaced.italic.0=-b&h-lucidatypewriter-medium-i-normal-sans-*-%d-*-*-m-*-iso8859-1
monospaced.italic.1=-ms-mingliu-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0

monospaced.bold.0=-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1
monospaced.bold.1=-ms-mingliu-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0

monospaced.bolditalic.0=-b&h-lucidatypewriter-bold-i-normal-sans-*-%d-*-*-m-*-iso8859-1
monospaced.bolditalic.1=-ms-mingliu-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0

# Dialog font definition
#
dialog.0=-b&h-lucidasans-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1
dialog.1=-ms-gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0

dialog.italic.0=-b&h-lucidasans-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1
dialog.italic.1=-ms-gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0

dialog.bold.0=-b&h-lucidasans-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1
dialog.bold.1=-ms-gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0

dialog.bolditalic.0=-b&h-lucidasans-bold-i-normal-sans-*-%d-*-*-p-*-iso8859-1
dialog.bolditalic.1=-ms-gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0

#DialogInput font definition
#
dialoginput.0=-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1
dialoginput.1=-ms-gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0

dialoginput.italic.0=-b&h-lucidatypewriter-medium-i-normal-sans-*-%d-*-*-m-*-iso8859-1
dialoginput.italic.1=-ms-gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0

dialoginput.bold.0=-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1
dialoginput.bold.1=-ms-gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0

dialoginput.bolditalic.0=-b&h-lucidatypewriter-bold-i-normal-sans-*-%d-*-*-m-*-iso8859-1
dialoginput.bolditalic.1=-ms-gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0

# Default font definition
#
default.char=274f

# name aliases
#
alias.timesroman=serif
alias.helvetica=sansserif
alias.courier=monospaced

# for backward compatibility
#uncomment with urw fonts
#zapfdingbats.0=--zapf dingbats-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific

# Static FontCharset info.
#
# This information is used by the font which is not indexed by Unicode.
# Such fonts can use their own subclass of FontCharset.
#
# This information can be overriden by describing more specific style.
# For example
#
# fontcharset.serif.plain.3=SpecialSymbols
# means serif.plain.3 font's index can be retrieved with the convert() method
# of instance of SpecialSymbols and what kind of characters serif.plain.3 font
# has can be judged with the isCovered() method of instance of SpecialSymbols.
#
fontcharset.serif.0=sun.io.CharToByteISO8859_1
fontcharset.serif.1=sun.awt.motif.CharToByteX11KSC5601

fontcharset.sansserif.0=sun.io.CharToByteISO8859_1
fontcharset.sansserif.1=sun.awt.motif.CharToByteX11KSC5601

fontcharset.monospaced.0=sun.io.CharToByteISO8859_1
fontcharset.monospaced.1=sun.awt.motif.CharToByteX11KSC5601

fontcharset.dialog.0=sun.io.CharToByteISO8859_1
fontcharset.dialog.1=sun.awt.motif.CharToByteX11KSC5601

fontcharset.dialoginput.0=sun.io.CharToByteISO8859_1
fontcharset.dialoginput.1=sun.awt.motif.CharToByteX11KSC5601

#replace font line if you have zapf fonts
#fontcharset.zapfdingbats.0=sun.io.CharToByteISO8859_1

# exclusion info.
#
# This information describe exclusion ranges for each fonts.
#
# 'exclusion.serif.plain.0' overrides 'exclusion.serif.0', and
# 'exclusion.serif.0' overrides exclusion.0, and so on.
#

# XFontSet string
# X11 only properties
#

fontset.serif.plain=\
-sun-roundgothic-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0,\
-b&h-lucidabright-medium-r-normal--*-%d-*-*-p-*-iso8859-1,\
-ms-gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0

fontset.serif.italic=\
-sun-roundgothic-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0,\
-b&h-lucidabright-medium-i-normal--*-%d-*-*-p-*-iso8859-1,\
-ms-gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0

fontset.serif.bold=\
-sun-roundgothic-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0,\
-b&h-lucidabright-demibold-r-normal--*-%d-*-*-p-*-iso8859-1,\
-ms-gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0

fontset.serif.bolditalic=\
-sun-roundgothic-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0,\
-b&h-lucidabright-demibold-i-normal--*-%d-*-*-p-*-iso8859-1,\
-ms-gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0

# SansSerif font definition
#

fontset.sansserif.plain=\
-sun-roundgothic-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0,\
-b&h-lucida-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1,\
-ms-gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0

fontset.sansserif.italic=\
-sun-roundgothic-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0,\
-b&h-lucida-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1,\
-ms-gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0

fontset.sansserif.bold=\
-sun-roundgothic-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0,\
-b&h-lucida-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1,\
-ms-gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0

fontset.sansserif.bolditalic=\
-sun-roundgothic-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0,\
-b&h-lucida-bold-i-normal-sans-*-%d-*-*-p-*-iso8859-1,\
-ms-gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0

# Monospaced font definition
#

fontset.monospaced.plain=\
-sun-roundgothic-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0,\
-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1,\
-ms-gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0

fontset.monospaced.italic=\
-sun-roundgothic-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0,\
-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1,\
-ms-gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0

fontset.monospaced.bold=\
-sun-roundgothic-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0,\
-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1,\
-ms-gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0

fontset.monospaced.bolditalic=\
-sun-roundgothic-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0,\
-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1,\
-ms-gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0

# Dialog font definition
#

fontset.dialog.italic=\
-sun-roundgothic-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0,\
-b&h-lucida-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1,\
-ms-gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0

fontset.dialog.bold=\
-sun-roundgothic-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0,\
-b&h-lucida-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1,\
-ms-gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0

fontset.dialog.bolditalic=\
-sun-roundgothic-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0,\
-b&h-lucida-bold-i-normal-sans-*-%d-*-*-p-*-iso8859-1,\
-ms-gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0

fontset.dialog.plain=\
-sun-roundgothic-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0,\
-b&h-lucida-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1,\
-ms-gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0

# DialogInput font definition
#

fontset.dialoginput.italic=\
-sun-roundgothic-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0,\
-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1,\
-ms-gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0

fontset.dialoginput.bold=\
-sun-roundgothic-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0,\
-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1,\
-ms-gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0

fontset.dialoginput.bolditalic=\
-sun-roundgothic-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0,\
-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1,\
-ms-gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0

fontset.dialoginput.plain=\
-sun-roundgothic-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0,\
-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1,\
-ms-gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0

#uncomment with urw fonts
#fontset.zapfdingbats=\
#--zapf dingbats-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific

#
fontset.default=\
-sun-roundgothic-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0,\
-b&h-lucida-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1,\
-ms-gulim-medium-r-normal--*-%d-*-*-c-*-ksc5601.1987-0
#

주의 : 위의 내용을 copy & paste 하면 뒤에 공백이 붙는데 제거해야 합니다. # vi font.properties.ko 한 후 :%s/$//g 라고 치고 :wq하면 됩니다.

마지막으로 [http]http://kr.games.yahoo.com/으로 가서 고스톱을 치면서 피로를 풉니다.

2. JDK/JRE 5.0

  • J2SE 5.0 이 나와서 추가해봅니다 :D by Gomdori
이 역시, 데비안의 경우는 java-package를 설치하여서 deb패키지를 만들어 설치하는 것이 낫습니다.

Fedora core 5 에서는 http://www.fedorafaq.org/#java 의 내용을 따르면 몇가지 문제로부터 벗어날 수 있습니다.

( 11. yum -y localinstall ~~ 에서 진행이 안된다면(nosigned) rpm -Uvh ~~ 로 설치하시면 됩니다. )

2.1. 다운로드와 설치

  • sun.com 홈페이지에서 다운로드 받습니다. [http]http://java.sun.com/products/archive/index.html

    JDK : Java Development Kit (자바개발툴)

    JRE : Java Runtime Environment (자바로만든것실행을 위한것)

    자바 소스 컴파일을 위해서는 JDK를 받아야 됩니다.. JDK에 JRE가 포함되어있습니다.


  • 저는 Linux RPM in self-extracting file (jdk-1_5_0-linux-i586-rpm.bin) 를 설치했습니다.. /usr/java/jdk1.5.0 에 설치됩니다.
# chmod +x jdk-1_5_0-linux-i586-rpm.bin
# ./jdk-1_5_0-linux-i586-rpm.bin
# rpm -Uvh jdk-1_5_0-linux-i586-rpm

  • 관리하기 쉽게 심볼릭링크로 만듭니다.
# ln -s /usr/java/jdk1.5.0 /usr/local/jdk

  • /etc/profile 에 추가합니다.
export JAVA_HOME=/usr/local/jdk
export PATH=$PATH:$JAVA_HOME/bin
export CLASSPATH=$JAVA_HOME/lib/tools.jar:.
# .  /etc/profile

2.2. 글꼴 설정

아래의 내용중에는 font.properties를 고치라고 나와있으나, font.properties.ko를 고치시기 바랍니다.

# pwd
 /usr/local/jdk/jre/lib
# cp fontconfig.RedHat.8.0.properties.src fontconfig.properties
# chmod 644 fontconfig.properties
# vi fontconfig.properties

  • fontconfig.properties 의 아래쪽에
# Font File Names

filename.-arphic_technology_co.-ar_pl_mingti2l_big5-medium-r-normal--*-%d-*-*-c-*-iso10646-1=/usr/share/fonts/zh_TW/TrueType/bsmi00lp.ttf
filename.-misc-baekmuk_batang-medium-r-normal--*-%d-*-*-c-*-iso10646-1=/usr/share/fonts/ko/TrueType/batang.ttf
filename.-misc-baekmuk_batang-medium-r-normal--*-%d-*-*-c-*-iso10646-1=/usr/share/fonts/ko/TrueType/gulim.ttf
filename.-misc-kochi_gothic-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0=/usr/share/fonts/ja/TrueType/kochi-gothic.ttf
filename.-misc-kochi_mincho-medium-r-normal--*-%d-*-*-c-*-jisx0208.1983-0=/usr/share/fonts/ja/TrueType/kochi-mincho.ttf
filename.-misc-zysong18030-medium-r-normal--*-%d-*-*-c-*-iso10646-1=/usr/share/fonts/zh_CN/TrueType/zysong.ttf

# AWT X11 font paths
awtfontpath.latin-1=/usr/X11R6/lib/X11/fonts/Type1
awtfontpath.chinese-big5=/usr/share/fonts/zh_TW/TrueType
awtfontpath.chinese-gb18030=/usr/share/fonts/zh_CN/TrueType
awtfontpath.japanese-x0208=/usr/share/fonts/ja/TrueType
awtfontpath.korean=/usr/share/fonts/ko/TrueType
filename.-hanyang_system-batang-medium-r-normal--*-%d-*-*-c-*-iso10646-1=/usr/share/fonts/hanyang/batang.ttf filename.-hanyang_system-gulim-medium-r-normal--*-%d-*-*-c-*-iso10646-1=/usr/share/fonts/hanyang/gulim.ttf awtfontpath.korean=/usr/share/fonts/hanyang

  • 실제로 쓸 폰트가 있는 디렉토리와 파일이름을 적어줍니다, 폰트 디렉토리의 fonts.dir 내용을 참고합니다.
  • 일단 위 세줄만 바꿔준뒤 자바AWT 등을 실행시키면 한글이 나왔습니다.

filename을 지정할 때는, 절대경로를 사용하거나 lib/fonts하위에 심볼릭 링크를 걸어야 합니다. 이때, 대소문자를 구별하므로 조심해야 합니다.

절대 경로 대신에 심볼릭 링크를 만들면 다른 글꼴로 대치하는 설정을 좀 더 쉽게 할 수 있을 것입니다.



ID
Password
Join
Try to divide your time evenly to keep others happy.


sponsored by andamiro
sponsored by cdnetworks
sponsored by HP

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2006-07-06 23:12:07
Processing time 0.0092 sec