Search code examples
aptana3

Aptana Studio 3 Launch Error - Java problems


When first launching Aptana I got error:

A Java Runtime Environment (JRE) or Java Development Kit (JDK)
must be available in order to run AptanaStudio3. No Java virtual machine
was found after searching the following locations:
%appdata%\Appcelerator\Aptana Studio\jre\bin\javaw.exe
javaw.exe in your current PATH

So I added Java to my PATH. Then I got:

Failed to load the JNI shared library "c:\Program Files\Java\jdk\bin\server\jvm.dll".

How to get Aptana running?


Note: I am aware of Aptana Studio 3 Launch Error - Failed to load the JNI shared library "YOUR SYSTEM PATH OF JAVA...bin\server\jvm.dll" but does not contain a question, whatismore, it is protected.


Solution

  • To solve the problem you need to install a 32-bit version of Java JDK.

    Then either add it to you system path, or add it to %appdata%\Appcelerator\Aptana Studio\AptanaStudio3.ini (assuming default install directory), using the format by Nguyen (regard line breaks!):

    -vm
    C:\Program Files (x86)\Java\jdk\bin\javaw.exe
    -vmargs