slave /usr/bin/unpack200 unpack200 /usr/java/default/bin/unpack200 \ slave /usr/bin/tnameserv tnameserv /usr/java/default/bin/tnameserv \ slave /usr/bin/servertool servertool /usr/java/default/bin/servertool \ slave /usr/bin/rmiregistry rmiregistry /usr/java/default/bin/rmiregistry \ slave /usr/bin/rmid rmid /usr/java/default/bin/rmid \ slave /usr/bin/pack200 pack200 /usr/java/default/bin/pack200 \ slave /usr/bin/orbd orbd /usr/java/default/bin/orbd \ slave /usr/bin/keytool keytool /usr/java/default/bin/keytool \ slave /usr/bin/jar jar /usr/java/default/bin/jar \ slave /usr/bin/javadoc javadoc /usr/java/default/bin/javadoc \ slave /usr/bin/javac javac /usr/java/default/bin/javac \ This does not happen when the version is set to 1.5.įor Oracle Java 6u30, once you've installed their RPMs you can configure alternatives: /usr/sbin/alternatives -install "/usr/bin/java" "java" "/usr/java/default/bin/java" 2 \ The only problem is that when I try to run javac, I get "-bash: javac: command not found". After doing this, I was able to use alternatives to change the version of Java. UPDATE (4/26/10): I followed Bert's suggestion and removed JAVA_HOME from the PATH environment var in /etc/profile. UPDATE: The following is the output of echo $PATH: Selection CommandĮnter to keep the current selection, or type selection number: There are 3 programs which provide 'java'. Java version "1.5.0_10" Java(TM) 2 Runtimeġ.5.0_10-b03) Java HotSpot(TM) Server VM (build 1.5.0_10-b03, mixed sudo /usr/sbin/update-alternatives -config java Selection, or type selection number: java -version I have verified that the paths used in alternatives are pointing to the correct directories. The server I'm working with is running RHEL5, by the way. I can run alternatives -config java and type my selection but when I echo the version number for either java or javac, it spits back out 1.5 every time (despite alternatives showing the current version is 1.6). I'm not quite sure how I got into this mess, but for some reason I'm not able to change the current version of Java using alternatives.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |