4
votes
3answers
459 views

Tomcat does not recognize JAVA_HOME

I've installed Ubuntu 14.04 Server, extracted JDK1.8u5 and Tomcat7, and added the following to .profile (I also tried adding it to .bashrc with similar [non-] results): export ...
0
votes
2answers
117 views

Adding JAVA_HOME (JDK) in .bashrc

I just installed Ubuntu and am Java 7u55 (JDK) and am trying to configure JAVA_HOME as an environment variable. In ~/.bashrc I added: # Exports JAVA_HOME=/home/myuser/sandbox/java/7u55/jdk1.7.0_55 ...
0
votes
0answers
36 views

Reload profile with java version

.profile has export JAVA_HOME=$DEV_HOME/tools/jdk1.6.0_45 # export JAVA_HOME=$DEV_HOME/tools/jdk1.7.0_51 # export JAVA_HOME=$DEV_HOME/tools/jdk1.8.0 export PATH=$PATH:$JAVA_HOME/bin I work with ...
2
votes
3answers
409 views

Problem to set JAVA_HOME

In ~/.bash_profile I set the following: export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-i386/bin/java export PATH=$PATH:/usr/lib/jvm/java-7-openjdk-i386/bin After saving and close I ran: sudo su ...
0
votes
1answer
156 views

Setting JAVA_HOME

How do I set JAVA_HOME=/usr/lib/jvm ...E ? The instructions say to use INSTALL4J JAVA_HOME=/usr/lib/jvm/java-6-sun but I get an error that says: INSTALL4J: command not found I have downloaded ...
0
votes
1answer
456 views

export PATH doesn't work correctly

I have a problem with $PATH export. The only place I found where I modify $PATH is /etc/environment: ANDROID_HOME="/opt/ADT/adt-bundle-linux-x86_64-20130522/sdk" ...
0
votes
0answers
98 views

PATH variable to Apache OPENNLP OK but doesn't work

yesterday I installed in my Ubuntu AWS 12.04 (Amazon) micro istance OpenNLP and seemed working. Today when digiting opennlp:command not found Following suggestions found here: I modified my ...
1
vote
2answers
7k views

Error: JAVA_HOME is not defined correctly - after maven installation

I installed Java JDK on Ubuntu 12.04 and added Java home to my path at ~/.bashrc: export PATH=/opt/jdk1.7.0_40/jdk1.7.0_40/bin:$PATH This looks a little bit strange but it's really my path. After ...
0
votes
1answer
245 views

Java not finding libraries in CLASSPATH

I have a JAR file, which has many dependencies (ApacheCommons stuff mostly). When I put all those JAR's in the same directory as my main JAR, everything works fine. But that makes a mess and it also ...
0
votes
1answer
311 views

Setting environment variables for OpenJDK on Ubuntu 11.10

I am new to Ubuntu and have programmed in C in the same but java seems to be a bitof a pain. This is what -java version looks like java version "1.6.0_27" OpenJDK Runtime Environment (IcedTea6 ...
0
votes
1answer
2k views

How do I set CLASSPATH variable for Tomcat in 12.10?

Previously, I have set the JAVA_HOME path using the terminal with the following command: export JAVA_HOME="/usr/lib/jvm/java-7-openjdk-i386" >> ~/.bashrc Now, I want to set the CLASSPATH ...
1
vote
2answers
16k views

How to set JAVA PATH in Ubuntu 12.04?

So java -version give path not found. I have tried the following: Edit: ~/.bashrc ~/.profile /etc/environment bash.bashrc files and add to them the following: ...
1
vote
2answers
344 views

Environment variable is set but not accessible on server

I have a Java program which accesses some property files for it to work through a path which is set as an environment variable. I set the path using export command. The Java jar file which is the ...
2
votes
2answers
486 views

java development on linux [duplicate]

Possible Duplicate: How do I install Oracle Java JDK 7? I need help on how can I install java oracle 7, netbeans and tomcat on ubuntu platform. I 'm new to ubuntu, totally zero knowledge on ...
4
votes
2answers
10k views

How set CLASSPATH variable for a folder in Ubuntu

I know that export CLASSPATH=/usr/local/java/tools.jar:$CLASSPATH will add tools.jar to the CLASSPATH, but i want to set folder to the CLASSPATH like this export ...
1
vote
1answer
12k views

Setting up JAVA_HOME and CLASSPATH correctly on 12.04

I am having some issues with Java (OpenJDK Java 7 Runtime) on Ubuntu 12.04, and just want to make sure I have my CLASSPATH and JAVA_HOME variables set correctly. ...
1
vote
1answer
20k views

JAVA_HOME is not defined correctly [closed]

I installed java jdk hotspot 1.7. When I type java -version I am getting: java version "1.7.0" Java(TM) SE Runtime Environment (build 1.7.0-b147) This is correct. And I tried to install maven, ...
1
vote
2answers
10k views

Setting Java CLASSPATH

I've done java development before but generally on windows (but I'm by no means an expert). I just want to set my CLASSPATH. When I run: echo $CLASSPATH (Is that right)? I get a empty line. So, ...
5
votes
4answers
24k views

How to set environmental variable PATH?

I'm using Ubuntu 10.10 and downloaded jdk7 from java.sun.com. That jdk is a compressed file and on extraction there I got all the files and folders of jdk1.7.0. But now if I tries to compile a java ...
0
votes
2answers
6k views

The annoyed configuration of java-6-openjdk

I want to change the java environment to java-6-openjdk. /etc/environment: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" JAVA_HOME=/usr/lib/jvm/java-6-openjdk/ ...
3
votes
0answers
10k views

How to properly set up Sun's JDK? [duplicate]

Possible Duplicate: How do I install Oracle's JDK 6? I'm trying to manually install the Sun JDK package (I have my reasons, don't bother asking why). I've successfully extracted the ...