by beginner001 · 14y ago · 0 comments
sudo update-java-alternatives
there is an error: no alternatives for -javaplugin.so
I don't want to lose my java applet for firefox,(ubuntu 11.04 64 bits,four-cores).
I would also like to see some comparison, for example like in the computer benchmark game between jruby and other ruby implementations.
What about clojure and scala? will they get a speed up with the new java 7 update? , Will it be three-fold like jruby (in certain cases?). Thanks for the great work on jruby. Being more dynamic is great!
I imagine the computer benchmarks game will update when we have a release of JRuby 1.7 out, sometime early 2012. If someone else wants to do some benchmark runs, I have no objection.
As for Clojure and Scala...they may see modest improvements from Java 7, but neither of them use invokedynamic at all. The biggest boost for JRuby comes from invokedynamic.
$ man update-java-alternatives
--jre
Limit the actions to alternatives belong to a runtime environment, not a development kit.
--jre-headless
Limit the actions to alternatives belong to the headless part of a runtime environment.
--plugin
Limit the actions to alternatives providing browser plugins. $ file .mozilla/plugins/libnpjp2.so
.mozilla/plugins/libnpjp2.so: symbolic link to
`/usr/local/lib/jvm/jre1.6.0_29/lib/amd64/libnpjp2.so'
There's one from OpenJDK as well. $ apt-cache show icedtea-plugin
Package: icedtea-plugin
Source: icedtea-web
Version: 1.1.4-1
Installed-Size: 276
Maintainer: OpenJDK Team <openjdk@lists.launchpad.net>
Architecture: amd64 $ update-java-alternatives --jre-headless
or $ update-java-alternatives --jre
this will not update the plugin-alternative which is not available (yet), see headius' comment => https://gist.github.com/1501186
(UPD: sorry, the following only applies to the standard OpenJDK7 on Ubuntu, not the u2 release )also on i386 and armel see https://bugs.launchpad.net/ubuntu/+source/openjdk-7/+bug/850...
workaround (change armel/arm to i386 if that's your arch):
$ cd /usr/lib/jvm/java-7-openjdk-armel/jre/lib/arm/
$ sudo ln -s jamvm/libjvm.so .https://bugs.launchpad.net/ubuntu/+source/openjdk-7/+bug/850...