Topic awaiting preservation: Compiling Java programs on RedHat |
|
---|---|
Author | Thread |
Obsessive-Compulsive (I) Inmate From: |
posted 01-23-2003 20:00
On windows machines, you have to set the path in order to compile java programs directly using the javac compiler. Otherwise you have to specify the directory then use the compiler (e.g., C:\j2sdk.x.x_x\bin javac myprogram.java). How can I set the "path" on Red Hat linux so I don't have to specify the directory each time I want to compile something?? |
Maniac (V) Mad Scientist From: Rochester, New York, USA |
posted 01-23-2003 20:09
You have to set the Path enviornment variable to your java directory. |
Paranoid (IV) Inmate From: A graveyard of dreams |
posted 01-23-2003 20:14
On *nix you have a special enviroment variable called PATH. When you type a command the computer searches every path in the PATH variable for the executable file. To see what your current PATH variable is type this in the promt(all commands assume that you are using bash): |
Maniac (V) Mad Scientist From: Rochester, New York, USA |
posted 01-24-2003 00:08 |
Paranoid (IV) Inmate From: A graveyard of dreams |
posted 01-24-2003 00:18
Nope, it is 10 kinds of people. |
Maniac (V) Mad Scientist From: Rochester, New York, USA |
posted 01-24-2003 04:20 |
Obsessive-Compulsive (I) Inmate From: |
posted 02-01-2003 01:01
Sorry it took me a while to get back here, but thanks for all your help!! |