Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 243470 - dev-java/sun-jdk-1.6.0.10 applet viewer has font problems
Summary: dev-java/sun-jdk-1.6.0.10 applet viewer has font problems
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-23 19:58 UTC by Albert Zeyer
Modified: 2008-10-25 10:32 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
screenshot of applet viewer (applet viewer.png,3.97 KB, image/png)
2008-10-23 19:58 UTC, Albert Zeyer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Albert Zeyer 2008-10-23 19:58:12 UTC
When I run an applet out of Eclipse, I am getting this error:

Warning: Cannot convert string "-b&h-lucida-medium-r-normal-sans-*-140-*-*-p-*-iso8859-1" to type FontStruct
java.lang.UnsupportedClassVersionError: applets/M03_01_04/Applet (Unsupported major.minor version 49.0)
	at java.lang.ClassLoader.defineClass0(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
	at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:123)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
	at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:595)
	at sun.applet.AppletPanel.createApplet(AppletPanel.java:621)
	at sun.applet.AppletPanel.runLoader(AppletPanel.java:550)
	at sun.applet.AppletPanel.run(AppletPanel.java:301)
	at java.lang.Thread.run(Thread.java:534)

The applet itself looks very weird, the font it used seems very wrong.
Comment 1 Albert Zeyer 2008-10-23 19:58:35 UTC
Created attachment 169628 [details]
screenshot of applet viewer
Comment 2 Albert Zeyer 2008-10-23 19:59:19 UTC
I didn't had the problem with sun-jdk-1.6.0.07.
Comment 3 Albert Zeyer 2008-10-23 20:05:52 UTC
Ok, the problem was probably that I forget to update the path to JDK 1.6 (because I had set it to 1.6.0.07 before) and it probably has used the old JDK 1.4.

Though, I am getting now again the strange error "Selection does not contain a Java applet", see bug #243466. But this is another bug and not related here.

I am not sure if this should be considered as a bug (if Eclipse should update such path automatically) or as invalid.
Comment 4 Mike Auty (RETIRED) gentoo-dev 2008-10-25 10:32:11 UTC
Either way, that would probably be an eclipse upstream problem, and if you wish to report it, have a look through their existing bugs at [1] first, and then file it there.  Bear in mind, this may also have been fixed in eclipse 3.4 or 3.3 (since in bug 243466 you mention you're still using 3.2.1).

[1] https://bugs.eclipse.org/bugs/