java install under redhat 9
I installed j2sdk 1.4.2 under redhat 9.0 and have some problems.
I use RPM to install it. After intall, I can compile program(it generating .class file), but can not run it. I checked the install, and found the path of /usr/java/j2sdk1.4.2. But when I run java -version, it displays "1.3.1". I tried to uninstall the package and it said 1.4.2 is not installed; I tried to reinstall it and it said it is already installed. Can anyone help me and explain what is going on there? Thanks |
Hi xiangshan!!!!
Welcome to LinuxQuestions.org. Apparently, your install and compiler works fine. Could you tell us the commands that you are trying to use to compile and run your program? |
Thank you for your reply.
I use javac to compile my program, and use java to run my program. Now what I do not understand is why when I issue the java -version, it gives me the version of "1.3.1", not 1.4.2. |
All times are GMT -5. The time now is 04:22 AM. |