7/11/2023 0 Comments Java 7 and java 8 mac![]() When running setsdkenv_unix, if you manually specify JDK 7 home, it will not accept it. The LO SDK also finds the apple home directory, as if hardcoded. This only happens when using Calc and attempting to run a custom function, so may be related to the UNO bridge. I have java_home and $JAVA_HOME set to java 7, as well as all soft links relating to java pointing to 7, and yet, when running LO, it still manages to find java 6 since the installer pops up, meaning this path is hardcoded somewhere. Structure of the home directory is different also, oracle uses the unix bin directory and apple uses Commands directory. Library/Java/JavaVirtualMachines/jdk1.7.0_17.jdk/Contents System/Library/Java/JavaVirtualMachines/1.6.0.jdk The stubs actually link to the apple java installer, so, by running javac the first time, you get a GUI popup prompting you to install.Īpple adds special sauce to their java, breaking write-once run everywhere.Īlso, apple’s java is in a different directory tree: Starting with 10.8, the java 6 SE and stubs are the only things included (assuming a fresh installation, not upgrade). So if an upgrade was done from 10.7 to 10.8, then the machine would automatically have java from the previous version. Java 6 SE was automatically included up to 10.8. Set JAVAHOME as the Variable name and the path to the JDK installation as the Variable value and click OK Click OK and click Apply to apply the changes Open Command Prompt and check the value of the JAVAHOME variable: echo JAVAHOME The result should be the path to the JDK installation: C:Program FilesJavajdk 3.
0 Comments
Leave a Reply. |