Problems with VNC java console on Ubuntu Natty 11.04

  • Thread starter Thread starter Ninjix
  • Start date Start date
N

Ninjix

Guest
I'm having problems connecting to guests using the Java VNC console on my Ubuntu 11.04 workstation. The VNC client window opens but the CPU goes to 100% for one of my cores and the VNC windows becomes unresponsive. This is happening on Firefox 4 and Google Chrome leading me to suspect something is up with 11.04's java-6-openjdk or the icedtea-plugin.

Anyone experiencing this problem on Ubuntu 11.04 x64?

I'm able to connect without any problems using a standalone VNC client and the "nc -l -p 5900 -c qm vncproxy" method on the same workstation.
 
did you try the recommended sun-java6-plugin?
 
works here, at least in my vmware 11.04 installation (without unity).
 
Hi Ninjix,

I had the same problem as you.

For me the issue was IcedTea v6b22-1.10.1-0ubuntu1 refused to receive the keyboard's input to the VNC console all the time, except for the first time trying after a restart to Firefox.

I decided to try out the recommended Sun's Java plugin (named sun-java6-plugin in Ubuntu Natty).
After installation of the package, I entered the Firefox Add-ons window and Sun's Java plugin wasn't on the list of installed plugins, but IcedTea was.

In order to represent Java plugin for Firefox, the symbolic link /usr/lib/mozilla/plugins/libjavaplugin.so links to /etc/alternatives/mozilla-javaplugin.so that links to /usr/lib/jvm/java-6-openjdk/jre/lib/i386/IcedTeaPlugin.so .
Wanting to change Firefox Java plugin representation to use Sun's version, I deleted the /usr/lib/mozilla/plugins/libjavaplugin.so file and recreated it linking to /usr/lib/mozilla/plugins/libjavaplugin.so .
That solved the problem for me.

Good luck,
Yoni.
 
Hi Yoni,

Thanks for your post. However I believe the last entry to which you linked is a typo (circular link). Could you provide me with the correct link? If you happen to know the correct link in an amd64 configuration I'd be double pleased, but otherwise I will find it out myself.

Regards, Tom.
 
A typo indeed :)

/usr/lib/mozilla/plugins/libjavaplugin.so -> /usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/i386/libnpjp2.so
I believe the i386 part may differ in your installation.

Yoni.
 
Hi Yoni,

Thanks! Meanwhile I've tried completely removing IcedTea (and the not-working Sun-java) and re-installing Sun-java. This worked for me also!

Tom.
 
One of the latest Ubuntu updates caused the previous configuration of Firefox using IcedTea plugin to reappear.

In order not to be influenced by apt updates, I replaced this link:
/usr/lib/mozilla/plugins/libjavaplugin.so -> /usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/i386/libnpjp2.so
with these series of links:
/usr/lib/mozilla/plugins/libjavaplugin.so -> /etc/alternatives/mozilla-javaplugin.so -> /usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/i386/libnpjp2.so

I believe this action will solve the problem permanently.
Yoni.