I installed j2ee
with j2sdk
on my Ubuntu 12.04 computer. It is installed at /mallika/glassfish3/jdk7/
.
I am able to run any of my Java programs in Netbeans using this JDK.
Since Netbeans 7 does not support RMI programs, I tried to compile these from command prompt, but then I get the following error on giving the following command:
..~$ javac rmiclient/LoginGUI.java
The program 'javac' can be found in the following packages:
* default-jdk
* ecj
* gcj-4.6-jdk
* openjdk-6-jdk
* gcj-4.5-jdk
* openjdk-7-jdk
Try: sudo apt-get install <selected package>
My system now has both OpenJDK (I do not know where) and JDK 7 as I mentioned above. How do I set path or something so that I can compile Java sources from command prompt.