Hello everyone,
I am a person completely new to programming and to Linux, so please bear with me. I am trying to install the new Java 1.5 compiler under Mandriva Linux 1.5. I went to this website at Sun and followed the directions to the letter, using the rpm installation:
http://java.sun.com/j2se/1.5.0/insta...ml#install-pkg
I logged in as "root" so all users of my computer would be able to use the Java compiler. Now, when I'm in my home directory, and I use the vi editor to create a simple "Hello, Sean!" program and then try to compile it, I get this at the command prompt:
[swilliams@localhost ~]$ javac Hello.java
bash: javac: command not found
[swilliams@localhost ~]$ ./javac Hello.java
bash: ./javac: No such file or directory
Ok. So then I did some hunting in my file system, thinking that my "Java software" might be elsewhere then my home directory. So then I found the location of the JRE and JDK to be here:
[swilliams@localhost ~]$ cd /usr/java
[swilliams@localhost java]$ ls
jdk1.5.0_03/ jre1.5.0_03/
[swilliams@localhost java]$
So then, I copied the Hello.java program to the jdk1.5.0_03/ directory, and still no luck. So then I logged in as root, and compiled it and it compiled OK. Now, I DO NOT WANT to have to log in as root and change into that directory every time I write a java program obviously. Could someone please help me out here? Thank you in advance.
Sean W.