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.
Instructions
- 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:
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.
- 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
- Add the following lines to the start of the file:
-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:
-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:
- Start Zend Studio for Eclipse.
- Go to menu Help | About Zend Studio for Eclipse | Configuration Details.
- Check that the selected JRE version is shown in the java.version parameter. For example:
Excerpt: Zend Studio for Eclipse is supplied with the bundled JRE. This article explains how to replace it with a different JRE.
Original Post Date: 2009-04-13 19:16:16
Alternative Description:
Zend Studio for Eclipse is supplied with the bundled JRE. This article explains how to replace it with a different JRE.
Comments