It was done with no errors.
And yes, I have the same version of Java as you have mentioned above. I deleted the /opt/java file, with the rm option at command line and recreated the symlink as specified........With no errors. But, still the above mentioned line: bash: export: `MANPATH-:/opt/java/man': not a valid identifier comes again and again....... |
And did you try commenting out export MANPATH="$MANPATH:/opt/java/man" from the java.sh script or deleting it. If that fails delete the java.sh file and create an entry similar to the one below in your .bash_profile
Code:
export PATH=$PATH:/usr/java/jre1.5.0_01/bin |
Quote:
Sorry that you couldn't find this in my previous Post. I should have put the number instead of the sentence. Quote:
Should i compile that code you have mentioned above again? If yes, then I will shell out those lines....I need just a yes or no. |
You need to delete the /etc/profile.d/java.sh and then try the instructions in my last post.
|
I will do that.....
BUt I still don't get the java version and the code told above.....after compiling. java -version in root as well as in user modes. Is it appropriate to do that even though I don't get it? |
reddazz, having made the script "java.sh" in /etc/profile.d I presume it needs to be run to set the paths correctly?
or reboot to run it that way? As root: cd /etc/profile.d ./java.sh |
./java.sh: line 3: export: `MANPATH-:/opt/java/man': not a valid identifier
I got this error for that cd /etc/profile.d ./java.sh I believe I have to re compile everything that reddazz has mentioned before, excluding the exporting Man path stuff. |
Code:
MANPATH-:/opt/java/man Code:
MANPATH=/opt/java/man |
If you log out and in again, the scripts in /etc/profile.d are automatically run, so there is no need to run them as "./java.sh". You can also do "source .bash_profile" if you don't want to log out. I have said to uncomment the manpath line, but I am not sure thats been done because bash shouldn't complain about this if its not set. Mine is like below and it works fine using the jdk,
Code:
#!/bin/sh Code:
#!/bin/sh |
Quote:
|
I have a folder named jre1.5.0_01in the /usr/java folder.
SHould i run the script again? Moreover, If i should start from scratch, How should i do it? there is nothing like java in /opt anymore. If i hav done anything too wrong, How can i just delete everything, and follow the reddazz script to a successful install? Moreover, I see that i have Jre....and not JDK..... I don't know any development things, so JRE would be OK for me. Still, i can download JDK if you prefer. Plz provide the LInk. |
Try the one below,
Code:
#!/bin/sh |
Where should I try it?
Emacs or Konsole? |
Thats a script that has to go into /etc/profile.d following the procedure in my first post.
|
Now there has been a problem .
I don't get the root prompt at the command line.....instead i get this. When i type su- and root password , this is what i get. -bash: !/bin/sh: No such file or directory -bash-2.05b# now, when i test whether java is installed by running java -version, i get the proper results......As mentioned by.......PRJ earlier. How do i fix this? |
All times are GMT -5. The time now is 06:52 PM. |