Netbeans
NetBeans IDE 是一个开源的、快速、功能齐全的Java开发软件。它是符合标准的并且能在任何有Java虚拟机的操作系统上运行。
源安装
Ubuntu源有带Netbeans,但版本通常是比官网的版本旧的。
sudo apt-get install netbeans
官网下载安装
为了安装和运行Netbeans,你需要安装Java软件开发工具包(Java SDK)。Ubuntu默认的是Open-JDK,你可能会需要Sun-java6。
从download page下载Netbeans,选择一个适合你需要的版本。
打开一个终端,用cd命令进入下载文件所在的文件夹并且给文件加上执行权限。
cd <你下载文件所在文件夹> chmod +x <已下载的安装文件>
为了使你的安装对所有用户都有效,用sudo运行安装命令并且根据提示操作。
sudo ./<已下载的安装文件>
为单个用户安装,只需运行安装文件并且根据提示操作。当安装程序询问你时,选择一个安装目录,并且确认这个用户对这个目录有写的权限。
./<已下载的安装文件>
要运行Netbeans,使用 <netbeans安装目录>/bin/netbeans命令。
netbeans.conf
NetBeans 路径\etc\netbeans.conf
Netbeans使用的JDK路径、界面语言、字体渲染等全部由该配置文件指定。
安装之后的设置
如果你安装了一个所有用户都能使用的、捆绑了Sun的J2EE应用程序服务器(J2EE Application Server)的Netbeans,你将不能用一个未授权的用户帐户访问默认的域(domain1)。因为安装的文件的所有者是root账户并且其中一些文件是读/写保护的。一个简单的解决方法就是把domain1目录中所有的文件的所有者改为你的用户。
sudo chown -R <你的用户名>:<你的用户名> <SUN应用程序服务器安装目录>/domains/domain1
在Netbeans里,在"运行环境"标签中右击"服务器"项选择"添加服务器"。在向导对话框中使用SUN应用程序服务器的目录作为"平台位置"并且在下拉框中选择默认的域。在点击"下一步"之后输入默认的管理员账号(默认是admin)和密码(默认是adminadmin)并且点击"完成"。
一个更简洁的方法是将domain1的文件夹拷贝一份,然后将所有者改为你的用户。因为这些文件包括和路经有关的信息,所以你需要编辑以下文件:bin/startserv 和 bin/stopserv
sudo cp -R <SUN应用程序服务器的安装目录>/domains/domain1 <拷贝的目的地> sudo chown -R <你的用户名>:<你的用户名> <拷贝目的地>/domain1 cd <拷贝目的地>/domain1 gedit bin/startserv bin/stopserv
在每个文件中,查找类似的行
INSTANCE_ROOT=<SUN应用程序服务器的安装目录>/domains/domain1
并且把它替换成
INSTANCE_ROOT=<拷贝目的地>/domain1
在Netbeans中,在"运行环境"标签中右击"服务器"项选择"添加服务器"。在向导对话框中使用SUN应用程序服务器的目录作为"平台位置",选择"注册本地域"并且点击"下一步"。用你拷贝的domain1作为域目录然后点击"下一步",输入默认的管理员账号(默认是admin)和密码(默认是adminadmin)并且点击"完成"。
Nimbus主题
对GNOME环境是没必要的,Netbeans(Swing程序)默认是GTK2主题,对KDE SC 4多少有点用处。
如下配置文件中
NetBeans 路径\etc\netbeans.conf
加入下列语句
netbeans_default_options="--laf com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel --fontsize 12"
要是已经有netbeans_default_options=,直接引号内加入
--laf com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel --fontsize 12
效果是使用Nimbus主题,外加设定字体大小为12。
中文问题
常规问题见Java#中文
Netbeans的中文界面问题有两种:
1 花字(OpenJDK),对中文uming字体支持有问题
桌面右键选择(更改桌面背景),然后选择(字体)选项卡,只要不选择(次像素平滑)
2 方块字(sun-java),找不到中文字体
问题在于fontconfig.properties中把中文字体的文件名写错了,把它的.ttc后缀名写成.ttf,Sun-JDK还几百年不修正这个bug。
fontconfig.properties,这是根本的解决方法,指定wqy-zenhei字体,同时解决上面2个问题,当然基本也没人会同时装Open-JDK和Sun-JDK。
Sun-JAVA路径是
/usr/lib/jvm/java-6-sun/jre/lib/fontconfig.properties
# # Copyright 2007 Sun Microsystems, Inc. All Rights Reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License version 2 only, as # published by the Free Software Foundation. Sun designates this # particular file as subject to the "Classpath" exception as provided # by Sun in the LICENSE file that accompanied this code. # # This code is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License # version 2 for more details (a copy is included in the LICENSE file that # accompanied this code). # # You should have received a copy of the GNU General Public License version # 2 along with this work; if not, write to the Free Software Foundation, # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. # # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, # CA 95054 USA or visit www.sun.com if you need additional information or # have any questions. # # Version # Uses Ubuntu 8.04 (hardy) (and more recent releases) fonts and file paths. version=1 # Component Font Mappings # Chinese fonts #allfonts.umingcn=AR PL UMing CN #allfonts.umingcn.motif=AR PL UMing CN #allfonts.uminghk=AR PL UMing HK #allfonts.uminghk.motif=AR PL UMing HK #allfonts.umingtw=AR PL UMing TW #allfonts.umingtw.motif=AR PL UMing TW allfonts.wqy-zenhei=WenQuanYi Zen Hei #allfonts.wqy-zenhei.motif=WenQuanYi Zen Hei #allfonts.shanheisun=AR PL ShanHeiSun Uni #allfonts.shanheisun.motif=AR PL ShanHeiSun Uni # Indic scripts allfonts.bengali=Lohit Bengali allfonts.gujarati=Lohit Gujarati allfonts.hindi=Lohit Hindi #allfonts.malayalam=Lohit Malayalam allfonts.oriya=Lohit Oriya allfonts.punjabi=Lohit Punjabi allfonts.tamil=Lohit Tamil allfonts.telugu=Lohit Telugu allfonts.sinhala=LKLUG serif.plain.latin-1=DejaVu Serif #serif.plain.latin-1.motif=LuxiSerif-Regular serif.plain.japanese-kochi=Kochi Mincho serif.plain.japanese-sazanami=Sazanami Mincho serif.plain.japanese-vlgothic=Kochi Mincho serif.plain.korean-baekmuk=Baekmuk Batang #serif.plain.korean-baekmuk.motif=Baekmuk Batang serif.plain.korean-un=UnBatang #serif.plain.korean-un.motif=UnBatang serif.bold.latin-1=DejaVu Serif Bold #serif.bold.latin-1.motif=LuxiSerif-Bold serif.bold.japanese-kochi=Kochi Mincho serif.bold.japanese-sazanami=Sazanami Mincho serif.bold.japanese-vlgothic=Kochi Mincho serif.bold.korean-baekmuk=Baekmuk Batang #serif.bold.korean-baekmuk.motif=Baekmuk Batang serif.bold.korean-un=UnBatang Bold #serif.bold.korean-un.motif=UnBatang Bold serif.italic.latin-1=DejaVu Serif Oblique #serif.italic.latin-1.motif=LuxiSerif-Oblique serif.italic.japanese-kochi=Kochi Mincho serif.italic.japanese-sazanami=Sazanami Mincho serif.italic.japanese-vlgothic=Kochi Mincho serif.italic.korean-baekmuk=Baekmuk Batang #serif.italic.korean-baekmuk.motif=Baekmuk Batang serif.italic.korean-un=UnBatang #serif.italic.korean-un.motif=UnBatang serif.bolditalic.latin-1=DejaVu Serif Bold Oblique #serif.bolditalic.latin-1.motif=LuxiSerif-BoldOblique serif.bolditalic.japanese-kochi=Kochi Mincho serif.bolditalic.japanese-sazanami=Sazanami Mincho serif.bolditalic.japanese-vlgothic=Kochi Mincho serif.bolditalic.korean-baekmuk=Baekmuk Batang #serif.bolditalic.korean-baekmuk.motif=Baekmuk Batang serif.bolditalic.korean-un=UnBatang Bold #serif.bolditalic.korean-un.motif=UnBatang Bold sansserif.plain.latin-1=DejaVu Sans #sansserif.plain.latin-1.motif=LuxiSans-Regular sansserif.plain.japanese-kochi=Kochi Gothic sansserif.plain.japanese-sazanami=Sazanami Gothic sansserif.plain.japanese-vlgothic=VL PGothic sansserif.plain.korean-baekmuk=Baekmuk Gulim #sansserif.plain.korean-baekmuk.motif=Baekmuk Gulim sansserif.plain.korean-un=UnDotum #sansserif.plain.korean-un.motif=UnDotum sansserif.bold.latin-1=DejaVu Sans Bold #sansserif.bold.latin-1.motif=LuxiSans-Bold sansserif.bold.japanese-kochi=Kochi Gothic sansserif.bold.japanese-sazanami=Sazanami Gothic sansserif.bold.japanese-vlgothic=VL PGothic sansserif.bold.korean-baekmuk=Baekmuk Gulim #sansserif.bold.korean-baekmuk.motif=Baekmuk Gulim sansserif.bold.korean-un=UnDotum Bold #sansserif.bold.korean-un.motif=UnDotum Bold sansserif.italic.latin-1=DejaVu Sans Oblique #sansserif.italic.latin-1.motif=LuxiSans-Oblique sansserif.italic.japanese-kochi=Kochi Gothic sansserif.italic.japanese-sazanami=Sazanami Gothic sansserif.italic.japanese-vlgothic=VL PGothic sansserif.italic.korean-baekmuk=Baekmuk Gulim #sansserif.italic.korean-baekmuk.motif=Baekmuk Gulim sansserif.italic.korean-un=UnDotum #sansserif.italic.korean-un.motif=UnDotum sansserif.bolditalic.latin-1=DejaVu Sans Bold Oblique #sansserif.bolditalic.latin-1.motif=LuxiSans-BoldOblique sansserif.bolditalic.japanese-kochi=Kochi Gothic sansserif.bolditalic.japanese-sazanami=Sazanami Gothic sansserif.bolditalic.japanese-vlgothic=VL PGothic sansserif.bolditalic.korean-baekmuk=Baekmuk Gulim #sansserif.bolditalic.korean-baekmuk.motif=Baekmuk Gulim sansserif.bolditalic.korean-un=UnDotum Bold #sansserif.bolditalic.korean-un.motif=UnDotum Bold monospaced.plain.latin-1=DejaVu Sans Mono #monospaced.plain.latin-1.motif=LuxiMono-Regular monospaced.plain.japanese-kochi=Kochi Gothic monospaced.plain.japanese-sazanami=Sazanami Gothic monospaced.plain.japanese-vlgothic=VL Gothic monospaced.plain.korean-baekmuk=Baekmuk Gulim #monospaced.plain.korean-baekmuk.motif=Baekmuk Gulim monospaced.plain.korean-un=UnDotum #monospaced.plain.korean-un.motif=UnDotum monospaced.bold.latin-1=DejaVu Sans Mono Bold #monospaced.bold.latin-1.motif=LuxiMono-Bold monospaced.bold.japanese-kochi=Kochi Gothic monospaced.bold.japanese-sazanami=Sazanami Gothic monospaced.bold.japanese-vlgothic=VL Gothic monospaced.bold.korean-baekmuk=Baekmuk Gulim #monospaced.bold.korean-baekmuk.motif=Baekmuk Gulim monospaced.bold.korean-un=UnDotum Bold #monospaced.bold.korean-un.motif=UnDotum Bold monospaced.italic.latin-1=DejaVu Sans Mono Oblique #monospaced.italic.latin-1.motif=LuxiMono-Oblique monospaced.italic.japanese-kochi=Kochi Gothic monospaced.italic.japanese-sazanami=Sazanami Gothic monospaced.italic.japanese-vlgothic=VL Gothic monospaced.italic.korean-baekmuk=Baekmuk Gulim #monospaced.italic.korean-baekmuk.motif=Baekmuk Gulim monospaced.italic.korean-un=UnDotum #monospaced.italic.korean-un.motif=UnDotum monospaced.bolditalic.latin-1=DejaVu Sans Mono Bold Oblique #monospaced.bolditalic.latin-1.motif=LuxiMono-BoldOblique monospaced.bolditalic.japanese-kochi=Kochi Gothic monospaced.bolditalic.japanese-sazanami=Sazanami Gothic monospaced.bolditalic.japanese-vlgothic=VL Gothic monospaced.bolditalic.korean-baekmuk=Baekmuk Gulim #monospaced.bolditalic.korean-baekmuk.motif=Baekmuk Gulim monospaced.bolditalic.korean-un=UnDotum Bold #monospaced.bolditalic.korean-un.motif=UnDotum Bold dialog.plain.latin-1=DejaVu Sans #dialog.plain.latin-1.motif=LuxiSans-Regular dialog.plain.japanese-kochi=Kochi Gothic dialog.plain.japanese-sazanami=Sazanami Gothic dialog.plain.japanese-vlgothic=VL PGothic dialog.plain.korean-baekmuk=Baekmuk Gulim #dialog.plain.korean-baekmuk.motif=Baekmuk Gulim dialog.plain.korean-un=UnDotum #dialog.plain.korean-un.motif=UnDotum dialog.bold.latin-1=DejaVu Sans Bold #dialog.bold.latin-1.motif=LuxiSans-Bold dialog.bold.japanese-kochi=Kochi Gothic dialog.bold.japanese-sazanami=Sazanami Gothic dialog.bold.japanese-vlgothic=VL PGothic dialog.bold.korean-baekmuk=Baekmuk Gulim #dialog.bold.korean-baekmuk.motif=Baekmuk Gulim dialog.bold.korean-un=UnDotum Bold #dialog.bold.korean-un.motif=UnDotum Bold dialog.italic.latin-1=DejaVu Sans Oblique #dialog.italic.latin-1.motif=LuxiSans-Oblique dialog.italic.japanese-kochi=Kochi Gothic dialog.italic.japanese-sazanami=Sazanami Gothic dialog.italic.japanese-vlgothic=VL PGothic dialog.italic.korean-baekmuk=Baekmuk Gulim #dialog.italic.korean-baekmuk.motif=Baekmuk Gulim dialog.italic.korean-un=UnDotum #dialog.italic.korean-un.motif=UnDotum dialog.bolditalic.latin-1=DejaVu Sans Bold Oblique #dialog.bolditalic.latin-1.motif=LuxiSans-BoldOblique dialog.bolditalic.japanese-kochi=Kochi Gothic dialog.bolditalic.japanese-sazanami=Sazanami Gothic dialog.bolditalic.japanese-vlgothic=VL PGothic dialog.bolditalic.korean-baekmuk=Baekmuk Gulim #dialog.bolditalic.korean-baekmuk.motif=Baekmuk Gulim dialog.bolditalic.korean-un=UnDotum Bold #dialog.bolditalic.korean-un.motif=UnDotum Bold dialoginput.plain.latin-1=DejaVu Sans Mono #dialoginput.plain.latin-1.motif=LuxiMono-Regular dialoginput.plain.japanese-kochi=Kochi Gothic dialoginput.plain.japanese-sazanami=Sazanami Gothic dialoginput.plain.japanese-vlgothic=VL Gothic dialoginput.plain.korean-baekmuk=Baekmuk Gulim #dialoginput.plain.korean-baekmuk.motif=Baekmuk Gulim dialoginput.plain.korean-un=UnDotum #dialoginput.plain.korean-un.motif=UnDotum dialoginput.bold.latin-1=DejaVu Sans Mono Bold #dialoginput.bold.latin-1.motif=LuxiMono-Bold dialoginput.bold.japanese-kochi=Kochi Gothic dialoginput.bold.japanese-sazanami=Sazanami Gothic dialoginput.bold.japanese-vlgothic=VL Gothic dialoginput.bold.korean-baekmuk=Baekmuk Gulim #dialoginput.bold.korean-baekmuk.motif=Baekmuk Gulim dialoginput.bold.korean-un=UnDotum Bold #dialoginput.bold.korean-un.motif=UnDotum Bold dialoginput.italic.latin-1=DejaVu Sans Mono Oblique #dialoginput.italic.latin-1.motif=LuxiMono-Oblique dialoginput.italic.japanese-kochi=Kochi Gothic dialoginput.italic.japanese-sazanami=Sazanami Gothic dialoginput.italic.japanese-vlgothic=VL Gothic dialoginput.italic.korean-baekmuk=Baekmuk Gulim #dialoginput.italic.korean-baekmuk.motif=Baekmuk Gulim dialoginput.italic.korean-un=UnDotum #dialoginput.italic.korean-un.motif=UnDotum dialoginput.bolditalic.latin-1=DejaVu Sans Mono Bold Oblique #dialoginput.bolditalic.latin-1.motif=LuxiMono-BoldOblique dialoginput.bolditalic.japanese-kochi=Kochi Gothic dialoginput.bolditalic.japanese-sazanami=Sazanami Gothic dialoginput.bolditalic.japanese-vlgothic=VL Gothic dialoginput.bolditalic.korean-baekmuk=Baekmuk Gulim #dialoginput.bolditalic.korean-baekmuk.motif=Baekmuk Gulim dialoginput.bolditalic.korean-un=UnDotum Bold #dialoginput.bolditalic.korean-un.motif=UnDotum Bold # Search Sequences sequence.allfonts=latin-1 sequence.allfonts.GB18030=latin-1,umingcn,shanheisun,wqy-zenhei sequence.allfonts.GB2312=latin-1,umingcn,shanheisun,wqy-zenhei sequence.allfonts.GBK=latin-1,umingcn,shanheisun,wqy-zenhei sequence.allfonts.x-euc-jp-linux=latin-1,japanese-vlgothic,japanese-kochi,japanese-sazanami sequence.allfonts.EUC-KR=latin-1,korean-un,korean-baekmuk sequence.allfonts.Big5=latin-1,umingtw,shanheisun,wqy-zenhei sequence.allfonts.Big5-HKSCS=latin-1,uminghk,shanheisun,wqy-zenhei #sequence.fallback=uminghk,shanheisun,wqy-zenhei,japanese-vlgothic,japanese-kochi,japanese-sazanami,korean-un,korean-baekmuk,bengali,gujarati,hindi,oriya,punjabi,malayalam,tamil,telugu,sinhala sequence.fallback=uminghk,shanheisun,wqy-zenhei,japanese-vlgothic,japanese-kochi,japanese-sazanami,korean-un,korean-baekmuk,bengali,gujarati,hindi,oriya,punjabi,tamil,telugu # Exclusion Ranges exclusion.japanese-kochi=0390-03d6,2200-22ef,2701-27be exclusion.japanese-sazanami=0390-03d6,2200-22ef,2701-27be exclusion.japanese-vlgothic=0390-03d6,2200-22ef,2701-27be # Font File Names filename.DejaVu_Sans=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf filename.DejaVu_Sans_Bold=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf filename.DejaVu_Sans_Oblique=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Oblique.ttf filename.DejaVu_Sans_Bold_Oblique=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-BoldOblique.ttf filename.DejaVu_Sans_Mono=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf filename.DejaVu_Sans_Mono_Bold=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-Bold.ttf filename.DejaVu_Sans_Mono_Oblique=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-Oblique.ttf filename.DejaVu_Sans_Mono_Bold_Oblique=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-BoldOblique.ttf filename.DejaVu_Serif=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.ttf filename.DejaVu_Serif_Bold=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-Bold.ttf filename.DejaVu_Serif_Oblique=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-Oblique.ttf filename.DejaVu_Serif_Bold_Oblique=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-BoldOblique.ttf filename.AR_PL_UMing_CN=/usr/share/fonts/truetype/arphic/uming.ttc filename.AR_PL_UMing_HK=/usr/share/fonts/truetype/arphic/uming.ttc filename.AR_PL_UMing_TW=/usr/share/fonts/truetype/arphic/uming.ttc filename.AR_PL_ShanHeiSun_Uni=/usr/share/fonts/truetype/arphic/uming.ttc filename.WenQuanYi_Zen_Hei=/usr/share/fonts/truetype/wqy/wqy-zenhei.ttc filename.Baekmuk_Batang=/usr/share/fonts/truetype/baekmuk/batang.ttf filename.UnBatang=/usr/share/fonts/truetype/unfonts/UnBatang.ttf filename.UnBatang_Bold=/usr/share/fonts/truetype/unfonts/UnBatangBold.ttf filename.Baekmuk_Gulim=/usr/share/fonts/truetype/baekmuk/gulim.ttf filename.UnDotum=/usr/share/fonts/truetype/unfonts/UnDotum.ttf filename.UnDotum_Bold=/usr/share/fonts/truetype/unfonts/UnDotumBold.ttf filename.Kochi_Gothic=/usr/share/fonts/truetype/kochi/kochi-gothic.ttf filename.Sazanami_Gothic=/usr/share/fonts/truetype/sazanami/sazanami-gothic.ttf filename.Kochi_Mincho=/usr/share/fonts/truetype/kochi/kochi-mincho.ttf filename.Sazanami_Mincho=/usr/share/fonts/truetype/sazanami/sazanami-mincho.ttf filename.VL_Gothic=/usr/share/fonts/truetype/vlgothic/VL-Gothic-Regular.ttf filename.VL_PGothic=/usr/share/fonts/truetype/vlgothic/VL-PGothic-Regular.ttf filename.Lohit_Bengali=/usr/share/fonts/truetype/ttf-bengali-fonts/lohit_bn.ttf filename.Lohit_Gujarati=/usr/share/fonts/truetype/ttf-indic-fonts-core/lohit_gu.ttf filename.Lohit_Hindi=/usr/share/fonts/truetype/ttf-indic-fonts-core/lohit_hi.ttf filename.Lohit_Kannda=/usr/share/fonts/truetype/ttf-kannada-fonts/lohit_kn.ttf #filename.Lohit_Malayalam=/usr/share/fonts/lohit-malayalam/lohit_ml.ttf filename.Lohit_Oriya=/usr/share/fonts/truetype/ttf-oriya-fonts/lohit_or.ttf filename.Lohit_Punjabi=/usr/share/fonts/truetype/ttf-indic-fonts-core/lohit_pa.ttf filename.Lohit_Tamil=/usr/share/fonts/truetype/ttf-indic-fonts-core/lohit_ta.ttf filename.Lohit_Telugu=/usr/share/fonts/truetype/ttf-telugu-fonts/lohit_te.ttf filename.LKLUG=/usr/share/fonts/truetype/ttf-sinhala-lklug/lklug.ttf filename.LuxiSans-Regular=/usr/share/fonts/truetype/ttf-xfree86-nonfree/luxisr.ttf filename.LuxiSans-Bold=/usr/share/fonts/truetype/ttf-xfree86-nonfree/luxisb.ttf filename.LuxiSans-Oblique=/usr/share/fonts/truetype/ttf-xfree86-nonfree/luxisri.ttf filename.LuxiSans-BoldOblique=/usr/share/fonts/truetype/ttf-xfree86-nonfree/luxisbi.ttf filename.LuxiMono-Regular=/usr/share/fonts/truetype/ttf-xfree86-nonfree/luximr.ttf filename.LuxiMono-Bold=/usr/share/fonts/truetype/ttf-xfree86-nonfree/luximb.ttf filename.LuxiMono-Oblique=/usr/share/fonts/truetype/ttf-xfree86-nonfree/luximri.ttf filename.LuxiMono-BoldOblique=/usr/share/fonts/truetype/ttf-xfree86-nonfree/luximbi.ttf filename.LuxiSerif-Regular=/usr/share/fonts/truetype/ttf-xfree86-nonfree/luxirr.ttf filename.LuxiSerif-Bold=/usr/share/fonts/truetype/ttf-xfree86-nonfree/luxirb.ttf filename.LuxiSerif-Oblique=/usr/share/fonts/truetype/ttf-xfree86-nonfree/luxirri.ttf filename.LuxiSerif-BoldOblique=/usr/share/fonts/truetype/ttf-xfree86-nonfree/luxirbi.ttf # AWT X11 font paths awtfontpath.latin-1=/usr/share/fonts/X11/Type1 awtfontpath.umingcn=/usr/share/fonts/truetype/arphic awtfontpath.uminghk=/usr/share/fonts/truetype/arphic awtfontpath.umingtw=/usr/share/fonts/truetype/arphic awtfontpath.shanheisun=/usr/share/fonts/truetype/arphic awtfontpath.wqy-zenhei=/usr/share/fonts/truetype/wqy awtfontpath.japanese-kochi=/usr/share/fonts/truetype/kochi awtfontpath.japanese-sazanami=/usr/share/fonts/truetype/sazanami awtfontpath.japanese-vlgothic=/usr/share/fonts/truetype/vlgothic awtfontpath.korean-baekmuk=/usr/share/fonts/truetype/baekmuk awtfontpath.korean-un=/usr/share/fonts/truetype/unfonts
字体抗锯齿
添加 -J-Dawt.useSystemAAFontSettings=on 到 netbeans_default_options 里面去。