This page describes how to change the Virtual Machine (VM) used with running Aptana.
Introduction
Some Aptana users (primarily Linux users) may need to change the VM that they use with running Aptana. This Help topic will teach you how to switch between GCJ and Sun's JVM.
Instructions
To switch your VM:
- Open a command prompt and type
java -version
to see which VM you are currently running.If you are running GCJ, the command output will look like the following example:
java version "1.4.2" gij (GNU libgcy) version 4.1.0 20060304 (Red Hat 4.1.0-3)
If you are running Sun's JVM, the output will look like the example below:
java version "1.4.2_12" Java(TM) 2 Runtime Enrivonment, Standard Edition (build 1.4.2_12-b03)
- At the command prompt, type the path for which VM that you want Aptana to use. An example of this for GCJ is shown below:
cd <path-to-aptana-root-directory> ./aptana -vm /etc/alternatives/java
To make sure that the correct VM is running, replace the path with the path to Sun's "java" executable, or update your "java" soft link to point to Sun's java.