jdk not in correct path
I downloaded the jdk slack package from slackware-current and installed it successfully. Firefox seems to have picked it up, but if I type java or javac at the prompt, it can't find it. Doing a whereis java command reveals that it is located in /usr/lib/java. Is there a way to set it so that I can use it at the terminal & so Netbeans can find it?
|
Code:
ln -s /usr/lib/java/javac /usr/bin Edit: I've just checked, /usr/lib/java is added in the PATH variable by the file /etc/profile.d/jdk.sh (or jdk.csh, depends on your shell) which should be executed when you login. Maybe you're using runlevel 4 and you're not using a X terminal with the login option. |
I am using runlevel 5 (running XFCE). However, now the jdk & jre versions don't match up (1.5.0.9 & 1.6), so I'm going to try to use gcj instead.
I've created a simple Hello.java file: Code:
class Hello{ Code:
gcj -c -g -O Hello.java Code:
java Hello |
Quote:
|
Quote:
So what's the difference between runlevels 4 & 5? |
|
Quote:
* 0 - Halt * 1 - Single * 2 - Full multi-user NO display manager * 3 - Full multi-user NO display manager * 4 - Full multi-user with display manager (GUI) * 5 - Not used/User definable * 6 - Reboot I copied the information from this article: Runlevels |
All times are GMT -5. The time now is 09:38 AM. |