Il 31/12/2015 20:06, Stanislav Baiduzhyi ha scritto:
On Thu, Dec 31, 2015 at 6:50 PM, Daniele
wrote: Well, I'm not a big fun of java and for my needs OpenJdk is working fine. But: some software rants if the sun jdk is not used, installing Netbeans is another half pain, the sun implementation is still the most used, at least on windows. So testing in that VM, even for just to be sure, is not bad at all.
I don't *want* aternatives but we have them and should be configured when you install an alternative $something system wide.
Well in that case I would suggest you to do following: 1. uninstall all other java and openjdk packages. 2. unpack Oracle JDK somewhere under /opt 3. symlink it to /opt/jdk (so unpacking updates you'll change only symlink) 4. go to netbeans.conf and change the jdk location to /opt/jdk 5. echo '#!/bin/sh' >/usr/local/bin/java && echo 'export JAVA_HOME=/opt/jdk' >>/usr/local/bin/java && echo '/opt/jdk/bin/java "$@"' >>/usr/local/bin/java && chmod a+x /usr/local/bin/java
I used that method since NetBeans 4.1, no issues so far, as long as there is no other java installed in the system.
Not so easy. Step 1 should be avoided, libreoffice requires some java stuff, not jdk but there are some dependecies issues.. So, alternatives should be usefull... For netbeans, is enough to select the java dir during installation (for sun jdk). With openjdk, installation is ok but if you try to enable some additional modules, missing this, missing that... Thanks, Daniele. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org