Strona 1 z 1

java, kiedy nie moŻna wczytać apletu pojawia się błąd

: 08 stycznia 2010, 10:40
autor: nieobecny
Witam.
Zainstalowałem poprawnie javę:

Kod: Zaznacz cały

aptitude install sun-java6-jre sun-java6-plugin flashplugin-nonfree 
Jednak mam problemy z nią, gdy chcę wejść np. gdzieś nie może wczytać apletu pojawia się błąd:

Kod: Zaznacz cały

Java Plug-in 1.6.0_16
Using JRE version 1.6.0_16-b01 Java HotSpot(TM) 64-Bit Server VM
User home directory = /home/scip
----------------------------------------------------
c:   clear console window
f:   finalize objects on finalization queue
g:   garbage collect
h:   display this help message
l:   dump classloader list
m:   print memory usage
o:   trigger logging
q:   hide console
r:   reload policy configuration
s:   dump system and deployment properties
t:   dump thread list
v:   dump thread stack
x:   clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------


load: class games.multi.card.thousand.Thousand not found.
java.lang.ClassNotFoundException: games.multi.card.thousand.Thousand
	at sun.plugin2.applet.Applet2ClassLoader.findClass(Applet2ClassLoader.java:152)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
	at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Plugin2ClassLoader.java:445)
	at sun.plugin2.applet.Plugin2Manager.createApplet(Plugin2Manager.java:2880)
	at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Plugin2Manager.java:1397)
	at java.lang.Thread.run(Thread.java:619)
Caused by: java.net.ConnectException: Network is unreachable
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:525)
	at sun.net.NetworkClient.doConnect(NetworkClient.java:161)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
	at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
	at sun.net.www.http.HttpClient.New(HttpClient.java:306)
	at sun.net.www.http.HttpClient.New(HttpClient.java:323)
	at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:860)
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:801)
	at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:726)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1049)
	at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:373)
	at sun.plugin2.applet.Applet2ClassLoader.getBytes(Applet2ClassLoader.java:458)
	at sun.plugin2.applet.Applet2ClassLoader.access$000(Applet2ClassLoader.java:46)
	at sun.plugin2.applet.Applet2ClassLoader$1.run(Applet2ClassLoader.java:126)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.plugin2.applet.Applet2ClassLoader.findClass(Applet2ClassLoader.java:123)
	... 6 more
Exception: java.lang.ClassNotFoundException: games.multi.card.thousand.Thousand
2010-01-08 11:24:34 sun.awt.X11.XToolkit processException
WARNING: Exception on Toolkit thread
java.lang.StackOverflowError
	at sun.awt.X11.XlibWrapper.CallErrorHandler(Native Method)
	at sun.awt.X11.XToolkit.SAVED_ERROR_HANDLER(XToolkit.java:125)
	at sun.awt.X11.XToolkit.GlobalErrorHandler(XToolkit.java:136)
	at sun.awt.X11.XlibWrapper.CallErrorHandler(Native Method)
	at sun.awt.X11.XToolkit.SAVED_ERROR_HANDLER(XToolkit.java:125)
	at sun.awt.X11.XToolkit.GlobalErrorHandler(XToolkit.java:136)
	at sun.awt.X11.XlibWrapper.CallErrorHandler(Native Method)
	
	at sun.awt.X11.XToolkit.SAVED_ERROR_HANDLER(XToolkit.java:125)
	at sun.awt.X11.XToolkit.GlobalErrorHandler(XToolkit.java:136)
	at sun.awt.X11.XlibWrappJava Plug-in 1.6.0_16
Zrobiłem tak jak tu:
http://groups.google.com/group/pl.comp. ... fe32cea0d4
Czyli dodałem do:

Kod: Zaznacz cały

 ~/.java/deployment/deployment.properties
wpis:

Kod: Zaznacz cały

deployment.javaws.jre.0.args=-Djava.net.preferIPv4Stack\=true
I nadal java nie działa poprawnie, tak to u mnie wygląda:

Kod: Zaznacz cały

#deployment.properties
#Fri Jan 08 11:24:29 CET 2010
deployment.version=6.0
deployment.capture.mime.types=true
deployment.browser.path=/usr/bin/mozilla
#Java Deployment jre's
#Fri Jan 08 11:24:29 CET 2010
deployment.javaws.jre.0.registered=true
deployment.javaws.jre.0.platform=1.6
deployment.javaws.jre.0.osname=Linux
deployment.javaws.jre.0.path=/usr/lib/jvm/java-6-sun-1.6.0.16/jre/bin/java
deployment.javaws.jre.0.product=1.6.0_16
deployment.javaws.jre.0.osarch=amd64
deployment.javaws.jre.0.location=http\://java.sun.com/products/autodl/j2se
deployment.javaws.jre.0.enabled=true
deployment.javaws.jre.0.args=- Djava.net.p  referIPv4Stack\=true referIPv4Stack  \= true 
Jak sobie z tym poradzić?

: 08 stycznia 2010, 13:46
autor: tom2xpl

Kod: Zaznacz cały

echo 0 > /proc/sys/net/ipv6/bindv6only
Sprawdź ten wpis.

: 08 stycznia 2010, 14:59
autor: nieobecny
Poradziłem sobie może nie do konca ale działa. Wpisałem to w konsoli roota

Kod: Zaznacz cały

sed -i 's/net.ipv6.bindv6only\ =\ 1/net.ipv6.bindv6only\ =\ 0/' \
/etc/sysctl.d/bindv6only.conf && invoke-rc.d procps restart