java - After upgrading to Java8, javac still shows 1.7 -
I have problems upgrading from JDK 1.7 - & gt; 1.8 Upgrade to OSX has been completed, but Java still returns version 1.7 as version.
I downloaded from Oracle's homepage, and ran the installer.
I have taken the following steps, Post-install:
& gt; Export JAVA_HOME = `/ usr / libexec / java_home -v 1.8` (executed in my .bashrc file) & gt; Revert $ JAVA_HOME / Library / Java / Java Virtual Matchbox / JDK 1.8.0_05.jdk / Contents / Home & gt; javac -version javac 1.7.0_21 & gt; $ JAVA_HOME / bin / javac -version javac 1.7.0_21 & gt; Java Javascript (TM) 64-bit server VM (25.5-B02, composite mode creation) Java Java / Bin / Java-version Java version "1.8.0_05" Java (TM) SE Runtime Environment (1.8.0_05-B13 ) / Code> I have gone and removed Java 1.7 (and all other JDK versions), and then run the installer again:
& gt; LS / Library / Java / Java Virtual Mics jdk1.8.0_05.jdk Still no use, javac reports as version 1.7.0_21
& gt; Which javac / usr / bin / javac & gt; ls -ltra / usr / bin / javac [snipped] / usr / bin / javac - & gt; Within that path, there is a symlink for current a a / code>. A / Commands is a series of content files (not symux) & gt; CD A / Order & gt; ./javac -version javac 1.7.0_21 & gt; . Java / version Java version "1.8.0_05" Java (TM) SE Runtime Environment (build 1.8.0_05-B13) Java HotSpot (TM) 64-bit server VM (25.5-Bb, composite mode creation) edit
For further original post, I have suggested, have some digging together.
& gt; Genuine Add / Library / Java / Java Virtual Matchbox / JDK 1.8.0_05.jdk / Contents / Home & gt; Genve Global Oracle 64-1.8.0.05 & gt; JNV version oracle64-1.8.0.05 (/ user / martipet / .jnv / version set) & gt; Genw info will be java jane will: / users / martipet /. JNU / version / oracle64-1.8.0.05 / bin / java & gt; The following information will be available: / Users / Martipet /. JNU / version / oracle64-1.8.0.05 / bin / javac & gt; It spreads on my thoughts that it was a random jawak hidden in my path, which was being brought in any way. To do this, I have completely suppressed my Java, and tried it again:
& gt; CD / Library / Java / Java Virtual Matching & gt; ls jdk1.7.0_55.jdk jdk1.8.0_05.jdk & gt; Pseudo rm-rf * & gt; ls & lt; & Lt; Empty & gt; & Gt; & Gt; Java-version Java version "1.6.0_65" & gt; javac -version javac 1.6.0_65 & gt; Which javac / usr / bin / javac I downloaded it again and ran it.
& gt; Java-version Java version "1.8.0_05" & gt; Javac -version javac 1.7.0_21 update
I tried to remove all JDK, XCode and all the developer tools, and after refreshing the same results .
However, I am still in loss - where do I go from here? How do I install Javascript 1.8?
if / usr / libexec / java_home - v 1.8.0_05 - xac javac -version < / code> returns the correct version, then your problem is as follows: / system / library / framework / JavaWama Framework version / current JDK with the execution of a privileged user:
CD / System / Library / Framework / JavaWama Framework / Version / RM Current ZKK LN-S / Library / Java / JavaVirtualMachines / jdk1.8.0_05.jdk / Content / Current JDK Found in the Solution < / p>
Check dynamically super user
Update: I think I've found a criminal! Try this:
rm-rf ~ / library / java / extension pd rm -rf / library / java / extension found in the solution:
Comments
Post a Comment