Note that there are some explanatory texts on larger screens.

plurals
  1. POJAVA_HOME error in Titanium Studio on Linux Mint
    primarykey
    data
    text
    <p>I will try and keep this as concise as possible since I need to get this figured out quickly. Back when I setup Titanium Studio 2.1.1.201207271312 on Linux Mint 13 64-bit system, I had all kinds of problems installing a version of Java Titanium liked. In the end I <em>Think</em> I used the instructions <a href="https://github.com/rraptorr/sun-java6" rel="nofollow">here</a> to get it working.</p> <p>Now all these months later when I try to compile an app for Google Play I get this dreaded error:</p> <p><code>[ERROR] Program launch failed. Unable to locate Java VM. Please set JAVA_HOMenvironment variable. [ERROR] Unabled to prepare JavaScript for packaging. Error code 4.</code></p> <p>Checking the java alteranatives on my system I get this:</p> <pre><code>'update-alternatives --query java Link: java Status: auto Best: /usr/lib/jvm/java-6-sun/jre/bin/java Value: /usr/lib/jvm/java-6-sun/jre/bin/java Alternative: /usr/lib/jvm/java-6-sun/jre/bin/java Priority: 63 Slaves: java.1.gz /usr/lib/jvm/java-6-sun/jre/man/man1/java.1.gz Alternative: /usr/lib/jvm/java-7-oracle/bin/java Priority: 1 Slaves: java.1.gz /usr/lib/jvm/java-7-oracle/man/man1/java.1.gz </code></pre> <p>I have the following set in my .profile</p> <pre><code>export JAVA_HOME=/usr/lib/jvm/java-6-sun/jre/bin/java export PATH=$PATH:/usr/lib/jvm/java-6-sun/jre/bin/java </code></pre> <p>But still I get the error in Titanium. I have tried numerous different variations of my .profile file, but with no luck.</p> <p>I really need to work this out quickly. Does anyone have any ideas?</p> <p><strong>EDIT: Solved</strong></p> <p>I seem to have worked the proper paths, here is how my .profile now reads:</p> <pre><code>JAVA_HOME=/usr/lib/jvm/java-6-sun/jre export JAVA_HOME PATH=$PATH:/usr/lib/jvm/java-6-sun export PATH </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload