Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IcedTea - how to show the applet console..?

since recently I think we are forced to use IcedTea to run applets in Ubuntu 11.10. At least I don't see how to install Sun Java from the Software Center.

I would like to debug an applet which gives problems in IcedTea. However, I don't know how to show the applet console. So no chance to see any Exceptions.

Cheers, Ruth

like image 213
Ruth Morales Avatar asked Nov 16 '11 19:11

Ruth Morales


People also ask

What is Java console?

What is Java Console? Java Console is a simple debugging aid that redirects any System. out and System. err to the console window. It is available for applets running with Java Plug-in and applications running with Java Web Start.

What is IcedTea Ubuntu?

The IcedTea project provides a harness to build the source code from http://openjdk.java.net using Free Software build tools and provides replacements for the binary plugs with code from the GNU Classpath project.


1 Answers

You can easily see near realtime the output of the IcedTea Java plugin by first running in two separate terminal windows the following commands then invoking the applet in your web browser.

$ watch -n 1 'cat $HOME/.icedteaplugin/java.stdout'

or

$ watch -n 1 'cat $HOME/.icedteaplugin/java.stderr'

java.stdout contains standard output of the running applet whereas java.stderr will capture standard error output (capture exceptions trace here).

Note : the "-n" option flag lets you specify the refresh rate in seconds.

like image 127
Tellurant Avatar answered Sep 27 '22 19:09

Tellurant