I have java installed correctly for sure.
aaa@ubuntu:~$ whereis java
java: /usr/bin/java /usr/bin/X11/java /usr/local/java /usr/share/java
aaa@ubuntu:~$ whereis javac
javac: /usr/bin/javac /usr/bin/X11/javac
But when I'm trying to add the location of /usr/bin/java in IntellyJ Idea12 as a java project sdk, I can't do that because it requires the folder and /usr/bin/java is a file.
Compiling is easy but when using java to run the programs, it gives Exception found. I am using Ubuntu 12.04 without internet connections. Also, installed Oracle JDK7 and JRE7. Also did the update-alternatives command on java, javac and javaws. Changed the machine java in /etc/profiles. PATH is pointing to oracle java folder.
javac and javaws work from the command line but java for running a .class won't work.
I have updated my PATH, set JAVA_HOME, and checked links.
When I type java myclass I get "java" found in default-jre and a few others. When I run java -version the same thing, "java" found in default-jre.
I'm trying to use Sun Java jdk1.7.0 and the command line.
when I load the application, I get
Code:
/usr/lib/jvm/java-7-ibm/jre/bin/java/bin/java not found
????
How come it is not working?
I followed the instructions here
http://www.wikihow.com/Install-IBM-Java-on-Ubuntu-Linux
however I only loaded sdk since it has jre.
hello friends,
i am new to ubuntu.
I tried to compile a Hello world example in java and got a gcc error. As far as I understand it, gcc is trying to compile my java class (and for some reason failing to find the main method, but that's beside the point).
I have openSUSE 12.1 64 bit and JDK 1.7 (installed from Oracle's rpm). I have /usr/java/jdk1.7.0_04/bin/:/usr/java/jdk1.7.0_04/ in my $PATH.
I just installed Geany on Ubuntu 11.10 and I'm having trouble setting it up to run a small GUI applet.
hey everyone
i've installed java using this guide.
I want to have two JDKs. The first one was installed a long time ago to /usr/lib/jvm/java-7-oracle/.