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 accessing my linus box from putty.I have a Java Progaram packed in a Jar File.
I want to run my Tomcat with Java 7 but all I found about configuring it doesn't work. The management interface of Tomcat shows 1.6.0_24-b24 as Java version.
I've got the following in /.bashrc
export JAVA_HOME=/usr/bin/jdk1.7.0_03/
export PATH=$PATH:/usr/bin/jdk1.7.0_03/bin
This is fine, if I do $JAVA_HOME I get the directory above.
The problem is if I do java -version I get...
OpenJDK Runtime Environment (IcedTea6 1.11.1) (6b24-1.11.1-4ubuntu3)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
How do I make the official jdk version the
I've got the following in /.bashrc
export JAVA_HOME=/usr/bin/jdk1.7.0_03/
export PATH=$PATH:/usr/bin/jdk1.7.0_03/bin
This is fine, if I do $JAVA_HOME I get the directory above.
The problem is if I do java -version I get...
OpenJDK Runtime Environment (IcedTea6 1.11.1) (6b24-1.11.1-4ubuntu3)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
How do I make the official jdk version the
I just got a fresh VM(Proxmox 1.9) instance of Ubuntu 12.04LTS.
Hi,
When I try to connect a FTP with Remote Systems in Eclipse, it cannot list FTP files. It gives me "Empty List" on list tree. Why?
I have jdk1.6.0_35
I writed,
Code:
export JAVA_HOME=/usr/java/jdk1.6.0_35
export PATH=$PATH:$JAVA_HOME/bin
in my /etc/profile.d/jdk.sh
I selected Sun Java from alternatives.
Any ideas?
you can create a script that wrapps maven with 32 bit javaCall it sth like mvn32 , put this to your $HOME/bin direcotry and insert following:#!/bin/sh
export JAVACMD=/path/to/java-32/bin/java
#or
#export JAVA_HOME=/path/to/java-32/
mvn $*Then you call mvn with mvn32 clean install for example.When name this scipt mvn and ensure that $HOME/bin is the first entry in your $PATH variable this sc