Linux (Ubuntu) Java 插件和控制台 [英] Linux (Ubuntu) Java plugin and console
问题描述
我正在尝试在 Ubuntu 10.10 中的 Firefox 中测试 Java 小程序.不幸的是,它不能开箱即用.我有两个问题:
I'm trying to test a Java applet in Firefox in Ubuntu 10.10. Unfortunately it doesn't work out of the box. I have two issues:
默认使用 IcedTea 插件,我不信任它.我安装了只需移除冰茶即可解决此问题.sun-java6-plugin
但不知道 Firefox(和其他浏览器)现在使用哪个.我如何确定?- 我没有控制台.它通常可以通过 Windows 中的托盘图标访问,但不是在这里(
也许这会被 #1 自动修复不,它不是).有这个插件,但它不再起作用了.更新:我已经通过转到 Java 控制面板并在高级选项卡中选中显示控制台"解决了这个问题,但现在控制台总是弹出,这还不是很完美.
By default the IcedTea plugin was used, which I don't trust. I installedFixed this by simply removing icedtea.sun-java6-plugin
but have no idea which one is used by Firefox (and other browsers) now. How can I make sure?- I have no console. It's usually accessible via a tray icon in Windows, but not here (
maybe this will automatically be fixed by #1 thoughNo it wasn't). There's this addon but it doesn't work anymore. Update: I've sort of fixed this by going to the Java control panel and checking "Show Console" in the advanced tab, but now the console always pops up which isn't quite perfect yet.
我正在通过 JNLP 部署小程序.如果有帮助,您可以在此处查看.我将 sun-java6-jdk
作为默认 Java.
I'm deploying the applet via JNLP. You can see it here, if it helps. I have sun-java6-jdk
as the default Java.
(对不起,如果这个问题属于 SuperUser 或其他网站,但我认为 #2 特别是这是一个与编程相关的问题)
(Sorry if this question belongs on SuperUser or another site, but I figured that with #2 especially this is a programming related question)
推荐答案
With :
sudo update-alternatives --install "/usr/bin/java" "java" "/opt/java/64/jre1.6.0_20/bin/java" 1
sudo update-alternatives --set java /opt/java/64/jre1.6.0_20/bin/java
您可以设置默认的 jre(在本例中为 64 位)
You can set the default jre (in this case a 64 bits one)
与:
java -version
可以看到版本
通过about:plugins,您可以查看正在使用哪个jre Firefox
With about:plugins you can see which jre firefox is using
这篇关于Linux (Ubuntu) Java 插件和控制台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!