为Zend Studio配置JRE

From: http://kb.zend.com/index.php?View=entry&EntryID=339

Note: Current Zend Studio runs only on 32bit JRE.

How to Change the JRE Used by Zend Studio for Eclipse

Article ID: 339
Last updated: 13 Apr, 2009
Views: 6591

This article applies to:

[ Zend Studio for Eclipse 6.x ]
[ Windows, Linux ]


Overview

Zend Studio for Eclipse is supplied with the bundled Java Run-time Environment (JRE) version 1.5.0_11-b03. In some cases you may want to replace it with the newer JRE that is installed in your operating system. This article explains how to accomplish this task.

Note:
These instructions are not applicable to Mac OS X. Zend Studio uses the system's JRE by default in this operating system.

Instructions

  1. Make sure that you have a JRE installed on your system. To check whether you have a JRE installed in your system, open your CLI and issue the command java -version. If a JRE is installed, you will see its version information:
C:\> java -version
java version "1.6.0_12"
Java(TM) SE Runtime Environment (build 1.6.0_12-b04)
Java HotSpot(TM) Client VM (build 11.2-b01, mixed mode)

If there is no JRE in your system, you will see a message about an invalid command. In this case, you can download the latest JRE from http://www.java.com.

  1. Open the ZendStudio.ini file in your Zend Studio for Eclipse installation directory. By default, this file is located at:

Linux - /usr/local/Zend/ZendStudioforEclipse-6.X.X/ZendStudio.ini

Windows - C:\Program Files\Zend Studio for Eclipse - 6.X.X\ZendStudio.ini

  1. Add the following lines to the start of the file:
; Run Zend Studio with system's JRE
-vm
<PathToJRE>
; ----------------------------------------

Replace <PathToJRE> with the location of the corresponding JRE .dll or .so file. For example:

Windows - C:\Program Files\Java\jre6\bin\client\jvm.dll

Linux - /usr/lib/jvm/java-1.6.0-sun-1.6.0/jre/lib/i386/client/libjvm.so

Full ZendStudio.ini contents example:

; Run Zend Studio with system's JRE
-vm
/usr/lib/jvm/java-1.6.0-sun-1.6.0/jre/lib/i386/client/libjvm.so
; ----------------------------------------

--launcher.XXMaxPermSize
256m
-startup
plugins/org.zend.php.startup_1.0.0.jar
-showlocation
-vmargs
-Dorg.eclipse.swt.browser.XULRunnerPath=/usr/local/Zend/ZendStudioForEclipse-6.1.0/plugins/org.mozilla.xulrunner.gtk.linux.x86_1.8.1.3-20070404/xulrunner
-Xms128M
-Xmx512M

Result

To verify that your installation of Zend Studio is using the JRE specified in ZendStudio.ini, perform the following steps:

  1. Start Zend Studio for Eclipse.
  2. Go to menu Help | About Zend Studio for Eclipse | Configuration Details.
  3. Check that the selected JRE version is shown in the java.version parameter. For example:
java.version=1.6.0_12

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值