java.lang.ClassNotFoundException: scrollsinus.class
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 more
java.lang.ClassNotFoundException: scrollsinus.class
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 more
Thank you for testing,
I have downloaded at www.java.com the latest JDK,
then I get the same error messages as tswain,
I've solved this error now,
The scroller applet will load now correctly,
if some one has still can't see this applet please respond,
What I've changed is the following:
to execute the applet I used the line:
applet code="scrollsinus.class" archive="scollsinus\scrollsinus.jar" width="989" height="100" align="absmiddle">
but now I've placed the .jar file in the root of my site and I use the line :
applet code="scrollsinus.class" archive="scrollsinus.jar" width="989" height="100" align="absmiddle">
so my conclusion is that newer JDK version can't use relative path's,
my old JDK version had no problems,
I will try solve the black screen in the slideshow applet, this has also something todo with incompatibility with newer JDK versions.
I hope the scrollsinus applet will work fine now,
if still any problems in scollsinus applet please respond.
Dimmen
Thanks for testing I discovered the same problems after downloading the latest java version at www.java.com
this problem had todo with with the function: GetDocumentBase()
it returns in the new JDK version the URL inclusive the .html filename
but in older version it only returns the URL
and also a problem was using \ backslash and / forward slash,
yours JDK only supports / slashes
I hope slideshow II will work now correctly, I will update slideshow I soon.
now I have added following code for detecting URL of images:
URL ImageURL = null;
if (ImageURL == null)
{
try
{
String DocumentBase = getDocumentBase().toString();
if ( (DocumentBase.indexOf(".html")>0) || (DocumentBase.indexOf(".htm")>0) )
{
DocumentBase = RemoveHtml(DocumentBase);
DocumentBase = DocumentBase + InImageName;
ImageURL = new URL(DocumentBase);
}
else
{
ImageURL = new URL(DocumentBase);
} // else
}
catch (Exception e)
{
}
}