Topic: jb6运行也可以像vc一样快

  Print this page

1.jb6运行也可以像vc一样快 Copy to clipboard
Posted by: fjchenq
Posted on: 2003-03-19 15:32

[这个贴子最后由automan在 2002/04/11 01:37pm 编辑]

环境:
256m内存/赛扬533
将jb6 or jb7启动环境换成jdk1.4,这样你就可以获得想vc一样的响应速度.同时jdk1.4支持鼠标滚轮咯.刷屏也好多了.
具体做法:
将jb6/bin下面的jdk.conf,jbuild.conf
[jdk.conf]
# +-----------------------------------------------------+
# | |
# | This is the shared configuration file for the |
# | Win32 JDK |
# | |
# | Do NOT make modifications without maintaining a |
# | backup copy. See config_readme.html for a |
# | description of the recognized directives. |
# | |
# +-----------------------------------------------------+
# Use the embedded JDK provided with JBuilder and
# override the default heap growth / shrinkage rates
#请指到你的jdk1.4的目录,这是我jdk1.4的相对目录
javapath ../../jdk/jre/bin/client/jvm.dll
vmparam -Xminf0.2
vmparam -Xmaxf0.2

# Add the "tools" JAR to the path since the JDK doesn't
# do so automatically
#请指到你的jdk1.4的目录,这是我jdk1.4的相对目录
addpath ../../jdk/lib/tools.jar

# Force standard VM settings for all applications
vmparam -Xverify:none

# +-----------------------------------------------------+
# | |
# | Uncomment the following line if you are seeing |
# | screen glitches while running JBuilder. This |
# | problem is especially common under Windows 95/98. |
# | |
# +-----------------------------------------------------+
#vmparam -Dsun.java2d.noddraw

# +-----------------------------------------------------+
# | |
# | Uncomment the following line if you are having |
# | problems with your default file encoding. This |
# | problem is evident in some locales. |
# | |
# +-----------------------------------------------------+
#vmparam -Dfile.encoding=ISO8859_1

[jbuild.conf]
# +-----------------------------------------------------+
# | |
# | This is the configuration file for the JBuilder IDE |
# | |
# | Do NOT make modifications without maintaining a |
# | backup copy. See config_readme.html for a |
# | description of the recognized directives. |
# | |
# +-----------------------------------------------------+

# Read the shared JDK definition
include jdk.config

# Tune this VM to provide enough headroom to work on large
# applications
vmparam -Xms8m
vmparam -Xmx128m
#此参数一定要加上,表示以客户端运行java程序.
vmparam -client

# Put the Lightweight AWT wrapper on the boot path
#轻量级的awt组件
addbootpath ../lib/lawt.jar
#jdk1.4的awt组件,不知道有什么改善.感觉很慢.请大家试试看
#addbootpath ../../jdk/jre/lib/jawt.jar

# Add all JAR files located in the patch, lib and lib/ext directory
addjars ../patch
addjars ../lib
addjars ../lib/ext

# Activate the shell integration
socket 8888

# Add all the configuration files located in the lib/ext directory
includedir ../lib/ext

# JBuilder needs to have access to the environment
exportenv

# Start JBuilder using the its main class
mainclass com.borland.jbuilder.JBuilder

当然java程序启动比较慢的,但是vc也不快阿.不过键盘响应快多了.新开窗口也快了很多.

2.Re:jb6运行也可以像vc一样快 [Re: fjchenq] Copy to clipboard
Posted by: rilong
Posted on: 2003-03-19 21:43

试一试再说

3.Re:jb6运行也可以像vc一样快 [Re: fjchenq] Copy to clipboard
Posted by: 烂泥
Posted on: 2003-03-20 10:39

vmparam -Xms8m
vmparam -Xmx128m

是不是改动了这里。不过这些改动其实对JB不会有太大的提高。
512M的内存是Borland 的推荐配置。

4.Re:jb6运行也可以像vc一样快 [Re: fjchenq] Copy to clipboard
Posted by: fjchenq
Posted on: 2003-03-20 13:47

利用jdk1.4中的虚拟机。jdk1.4对中文支持相对好一点。

5.Re:jb6运行也可以像vc一样快 [Re: fjchenq] Copy to clipboard
Posted by: scottding
Posted on: 2003-03-20 13:49

jb8已经使用1.4了


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923