Getting IDEA running on Ubuntu 8.10
I've unpacked IDEA to a directory and defined IDEA_JDK in .bashrc. Now I can launch IDEA using bin/idea.sh from command line. But I want to launch it from a desktop icon (and want to avoid modiying any file in the IDEA directory structure).
Where I have to define IDEA_JDK to launch IDEA from a desktop icon?
Thanks,
Tom
Please sign in to leave a comment.
Try /etc/profile if you want IDEA_JDK to be defined for all users, or /home/<username>/.bashrc to define it only for a certain user (assuming he's using bash, of course).
I usually put my JAVA_HOME in /etc/profile and IDEA_JDK in bin/idea.sh.
The definition from the .bashrc seems not to be picked up for desktop icons.
Does nobody, even the legendary Jetbrains service, has an idea what I should configure (assuming there would be no root access)?
Hi Thomas,
.bashrc only applies to the shell you are using. It does not apply to the windowing system.
For Ubuntu put your environment variables you want to apply to the windowing system in /etc/environment
For Mac OS the same thing applies but the variables go in ~/.MacOSX/environment.plist
http://www.jetbrains.net/devnet/message/5230978#5230978
Thanks, Michael. After trying without success, I want to add following information:
This does NOT work:
JAVA_HOME=/usr/lib/jvm/java-6-sun
IDEA_JDK=$JAVA_HOME
but this does:
IDEA_JDK=/usr/lib/jvm/java-6-sun
Cheers,
Tom
/etc/environment is not a shell script so there is no shell available to perform variable substitution. It is a simple list of key/value pairs that is read at some point during startup (what reads it and when I am unsure).