method <init>(FFFF)V not found

Hello:

My latest applet written very much as some 400 other applets of mine fails in IE 5.5 (Win98) with the following message in the Java Console:

java.lang.NoSuchMethodError: java/awt/Color: method <init>(FFFF)V not found

at VennCanvas.<init>

at Venn.init

at com/ms/applet/AppletPanel.securedCall0

at com/ms/applet/AppletPanel.securedCall

at com/ms/applet/AppletPanel.processSentEvent

at com/ms/applet/AppletPanel.processSentEvent

at com/ms/applet/AppletPanel.run

at java/lang/Thread.run

It does run in Netscape 7.1 (Win98) and IE 6.0 (Windows XP).

One difference between this applet and the others I wrote is that now, for the first time, I used Graphics2D and explicitly the alpha parameter when defining colors.

Thank you,

Alexander Bogomolny

[851 byte] By [abogom] at [2007-9-30 20:25:27]
# 1
"<init>(FFFF)V" is a strange way of expressing "public Color(float r, float g, float b, float a)".Such constructor is not available in java.awt.Color of the MS JVM (JDK 1.1).
edsonw at 2007-7-7 1:10:02 > top of Java-index,Java Essentials,Java Programming...
# 2

the browser in question is running the ms jvm which is quite old and the source of many security problems. It is also obviously lacking the specific constructor for four floats...

You solutions:

1) scrap support for this jvm. Let the user know they should upgrade

2) test for presence of crappy vm and provide workarounds as needed

3) do nothing

IanSchneider at 2007-7-7 1:10:02 > top of Java-index,Java Essentials,Java Programming...
# 3
Thank you.> 2) test for presence of crappy vm and provide> workarounds as neededI'll do that.
abogom at 2007-7-7 1:10:02 > top of Java-index,Java Essentials,Java Programming...