I use Suse. First was installed jdk7, so JAVA_HOME remains like:
/usr/java/jdk1.7.0_05/
After I have deinstalled and installed jdk6, but cannot figure out how to change JAVA_HOME. .bashrc and .profile don't contain anything about JAVA_HOME.
Does exist another file?
Thanks.
I'm pretty new to Apache Tomcat and somewhat new to Linux altogether. I am trying to install the JDK, which is a prereq for Apache Tomcat. I downloaded and untarred the JDK to /usr/java and now I'm trying to set the environment path.
I am using linux-mint-cinamon 14 and I have set the $JAVA_HOME and $PATH environment variables in ~/.profile as follows:
export JAVA_HOME=/home/aqeel/development/jdk/jdk1.6.0_35
export PATH=/home/aqeel/development/jdk/jdk1.6.0_35/bin:$PATH
(EDIT:)After that I did source ~/.profile, so that changes take effect without rebooting.
Yet when I execute java -version command to check the active java
I am using xrdp as an alternative to the ummm "limited" desktop sharing included in Ubuntu 12.04. I noticed it was properly setting up my environment so I added a . /etc/environment to /etc/xrdp/startwm.sh file. It sets the path correctly but none of the other environmental stuff (like JAVA_HOME) get set. After I am logged in I can issue .
I have added this line at the end of ~/.bashrc file.
export JAVA_HOME=/usr/java/jdk1.5.0_07/bin/java
But when I do echo $JAVA_HOME I don't get anything as output, I expected "/usr/java/jdk1.5.0_07/bin/java".
Any idea?
Ubuntu 11.10.
JAvi
I'm trying to run IntelliJ from Gnome3's Applications menu, but it complains the JAVA_HOME variable is not set.
I have the Java installation under my home folder.
I managed to export the variable in my ~/.bashrc and I successfully ran IntelliJ from the command line.
I guess it's normal that configuration seem to be ignored by Gnome3.
I tried to put the same line
export JAVA_HOME=~/jdk1.6.0_32
I am trying to setup up my enviroment variable in my Ubuntu machine.
I have installed ServiceMix on my machine, and am trying to start it. The startup script is called start.sh. When I did ./start.sh, it gave me a Permission Denied message. So I used sudo ./start.sh, which starts the server fine.
However, it seems to be using Java 7, when I would like to use Java 6 (for various reasons).
I installed java jdk hotspot 1.7.