Linux操作系统(Ubuntu的)的Java插件和控制台 [英] Linux (Ubuntu) Java plugin and console

查看:140
本文介绍了Linux操作系统(Ubuntu的)的Java插件和控制台的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在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:


  1. 默认情况下使用了的IcedTea插件,我不放心。我安装了太阳的Java6-插件,但不知道哪一个是使用火狐(和其他浏览器)了。我如何确保? 通过删除修正了这个IcedTea项目。

  2. 我没有控制台。它通常是通过Windows任务栏图标访问,而不是在这里(也许这将自动被#1固定尽管 不,这不是)。有这个插件,但它不工作了。
    更新:我已经通过转到Java的控制面板和高级选项卡选中显示控制台,但现在的总控制台弹出是不是很完美但那种固定的这个

  1. By default the IcedTea plugin was used, which I don't trust. I installed sun-java6-plugin but have no idea which one is used by Firefox (and other browsers) now. How can I make sure? Fixed this by simply removing icedtea.
  2. 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 though No 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的小程序。你可以看到它在这里 ,如果​​它帮助。我有太阳的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.

(很抱歉,如果这个问题属于的超级用户或其他网站,但我想,以#2尤其是这是一个编程相关问题)

(Sorry if this question belongs on SuperUser or another site, but I figured that with #2 especially this is a programming related question)

推荐答案

通过

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

您可以看到版本

通过了解:插件你可以看到Firefox是使用的JRE

With about:plugins you can see which jre firefox is using

这篇关于Linux操作系统(Ubuntu的)的Java插件和控制台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆