3

I'm trying to get a working desktop launcher for Webstorm (applicable to any JetBrains product, however.) I've tried using the built-in menu "Add desktop launcher" in both Xubuntu and Lubuntu with no dice.

Running ./webstorm.sh from a terminal in the application's folder works fine.

If I add the option to the .desktop file to run in terminal I get an error message:

ERROR: cannot start WebStorm. No JDK found. Please validate either WEBIDE_JDK, JDK_HOME or JAVA_HOME environment variable >points to valid JDK installation.

Press Enter to continue.

If I open a terminal and do javac -version I get a response, indicating my path is set correctly.

What gives? I am baffled as to what I'm doing wrong.

1
  • 1
    Terminal environment != desktop environment. As a workaround you can define JAVA_HOME directly in webstorm.sh.
    – CrazyCoder
    Commented Apr 21, 2013 at 20:53

1 Answer 1

3

Set JAVA_HOME in your ~/.profile like this:

 export JAVA_HOME=/usr/lib/jvm/java-7-oracle/

Then restart your system (or just X-Windows using sudo /etc/init.d/gdm restart).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.