Bitcoin donations are welcome:14snQXeLcnJtWUduKZ6rC2MHdPYrYar1Tw
Showing posts with label java. Show all posts
Showing posts with label java. Show all posts

Saturday, July 3, 2010

Java in Debian Squeeze not appearing

Had lots of problems with Java not "appearing" or seems to not be loading (though it does) in Debian. Using the sun java6 plugin.

Here's my howto for Debian Squeeze + Java + (Swiftfox/iceweasel/google chrome)

1.) Install sun-java6-plugin (apt-get install sun-java6-plugin)
2.) Make sure your browser has loaded the java6 plugin. In the browser of your choice, type: about:config and check that java6 is loaded. If it's not, google :P Shouldn't be hard to find. If not, I can write a howto on it.
3.) Go here and test your java. If you get an error, click the box, and read the first lines. Otherwise, you're done.
4.) If the error looks like this:
java.net.ConnectException: Network is unreachable
then edit the following file: /etc/sysctl.d/bindv6only.conf, and make sure net.ipv6.bindv6only is set to "0". Save and quit.
5.) Restart procps like this (as root): invoke-rc.d procps restart
6.) You're done, and it should be working.

Wednesday, December 30, 2009

Java error after Debian Update (December 09)

Typical error messages:
Caused by: java.net.ConnectException: Network is unreachable
INFO: I/O exception (java.net.ConnectException) caught when processing request: Network is unreachable

Fix:
nano ~/.java/deployment/deployment.properties

Fix the following line like this:
deployment.javaws.jre.0.args=-Djava.net.preferIPv4Stack\=true