Please test my Java Slideshow, + zoom functions

Please check this slideshow,http://members.home.nl/dimmengestel/if there are still some problems with viewing this applet, please comments.
[167 byte] By [DimmenGestela] at [2007-9-29 14:17:58]
# 1
neither slideshow applets are loading any images
Malohkana at 2007-7-15 4:57:16 > top of Java-index,Other Topics,Java Game Development...
# 2

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

tswaina at 2007-7-15 4:57:16 > top of Java-index,Other Topics,Java Game Development...
# 3
The applet is all black, and when I hover in the lower right corner some navigation buttons appear. Clicking them doesn't display any images though...
d-fisha at 2007-7-15 4:57:16 > top of Java-index,Other Topics,Java Game Development...
# 4
thanks for responding,I will try to solve the problems,What JDK versions are you using?Dimmen
DimmenGestela at 2007-7-15 4:57:16 > top of Java-index,Other Topics,Java Game Development...
# 5
i get the same as d-fish (think I'm using 1.4.2_01) get black screen, options appearing (says "Pausing" alot) and background music!asjf
asjfa at 2007-7-15 4:57:16 > top of Java-index,Other Topics,Java Game Development...
# 6
VM version 1.4.2_01, IE on XPPro
d-fisha at 2007-7-15 4:57:16 > top of Java-index,Other Topics,Java Game Development...
# 7

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

DimmenGestela at 2007-7-15 4:57:16 > top of Java-index,Other Topics,Java Game Development...
# 8

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)

{

}

}

DimmenGestela at 2007-7-15 4:57:16 > top of Java-index,Other Topics,Java Game Development...
# 9
yup it works for me now, good stuff :)
Malohkana at 2007-7-15 4:57:16 > top of Java-index,Other Topics,Java Game Development...