Activer JDK 1.6 sous OS X 10.5.8, Un mystère... |
Bienvenue invité ( Connexion | Inscription )
Activer JDK 1.6 sous OS X 10.5.8, Un mystère... |
18 Sep 2011, 17:47
Message
#1
|
|
Macbidouilleur de bronze ! Groupe : Membres Messages : 273 Inscrit : 23 Aug 2003 Membre no 9 180 |
Comment activer ce JDK, qui est bien installé sous OS X 10.5.8 ?
C'est très SIOUX comme ils disent dans les tribus APACHES : cd /System/Library/Frameworks/JavaVM.framework/Versions ls -Flas total 72 0 drwxr-xr-x 15 root wheel 510 29 jui 15:45 ./ 0 drwxr-xr-x 12 root wheel 408 29 jui 15:45 ../ 8 lrwxr-xr-x 1 root wheel 5 29 jui 15:44 1.3@ -> 1.3.1 0 drwxr-xr-x 3 root wheel 102 29 sep 2007 1.3.1/ 8 lrwxr-xr-x 1 root wheel 5 3 sep 2009 1.4@ -> 1.4.2 8 lrwxr-xr-x 1 root wheel 3 28 jui 2008 1.4.1@ -> 1.4 0 drwxr-xr-x 8 root wheel 272 15 nov 2007 1.4.2/ 8 lrwxr-xr-x 1 root wheel 5 29 jui 15:44 1.5@ -> 1.5.0 0 drwxr-xr-x 8 root wheel 272 15 nov 2007 1.5.0/ 8 lrwxr-xr-x 1 root wheel 5 29 jui 15:44 1.6@ -> 1.6.0 8 lrwxr-xr-x 1 root wheel 59 29 jui 15:44 1.6.0@ -> /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents 0 drwxr-xr-x 10 root wheel 340 29 jui 15:45 A/ 8 lrwxr-xr-x 1 root wheel 1 29 jui 15:45 Current@ -> A 8 lrwxr-xr-x 1 root wheel 3 29 jui 15:44 CurrentJDK@ -> 1.5 8 lrwxr-xr-x 1 root wheel 3 29 jul 2010 CurrentJDK - copie@ -> 1.5 Il parait qu'il ne faut JAMAIS modifier le lien "Current". Puis-je tout simplement modifier "CurrentJDK" (que j'ai sauvegardé sous "CurrentJDK - copie") pour le faire pointer vers "1.6", qui est lui même un lien vers le répertoire "1.6.0 ? Vous remarquerez dans la copie d'écran en pièce jointe, la subtile différence entre les deux versions du JDK : Image1.jpg ( 173.46 Ko ) Nombre de téléchargements : 9 Et ne me parlez de l'application Préférences Java : ça ne fait rien de mettre tout en haut Java SE 1.6 ! Merci beaucoup de votre aide. PS : j'ai trouvé ce lien : http://web.synametrics.com/JDK6OnLeopard.htm Mac OS X version 10.6 (Snow Leopard) comes with JDK6. 10.5 (Leopard) comes with JDK5 with an option to download an update that will install JDK6 on your machine. However, even after installing the update, JDK6 does not run as default. Use the following tip to update the version of Java on a Mac OS X machine. Download and install Mac OS X update 4 from here. This will install JDK 6 on your machine. Open a Terminal Window Change directory to /System/Library/Frameworks/JavaVM.framework/Versions by typing the following command cd /System/Library/Frameworks/JavaVM.framework/Versions Type the following command to switch the default version sudo ln -fhsv 1.6 CurrentJDK That should be it. Type the following command to confirm the version has been updated java -version Now you should be able to run you JDK6 compatible application IMPORTANT: JDK6 from Apple is only available on 64-bit platform. It is not available for 32-bit machines. Refer to http://support.apple.com/kb/HT3581 for details. You can get a 32-bit version of JDK6 from SoyLatte - Port of BSD Java. Un rappel sur les options de la commande ln : -f If the target file already exists, then unlink it so that the link may occur. -h If the target_file or target_dir is a symbolic link, do not follow it. This is most useful with the -f option, to replace a symlink which may point to a directory. -s Create a symbolic link. -v Cause ln to be verbose, showing files as they are processed. Ce message a été modifié par ungars - 18 Sep 2011, 19:37. |
|
|
Nous sommes le : 19th April 2024 - 20:33 |