Nathan, Unfortunately, applets can't access files from the local file system. The only way around it is to sign the applet. You do this with the jar-signer.
 
Here's some sites to show you what I mean.
 
 
Good luck. :)
 
 
----- Original Message -----
Sent: Friday, July 06, 2001 1:22 PM
Subject: [JAVA3D] appletizing

Hello guys, and gals,

An appletizing problem (yum) for you here.

Ive been turning my java3d standalone program into an applet for erm about a week now. Ive had a few tricky problems and this one I think somone else would have experienced before.

In accessing a file (.jpg texture) I am using FILE and a string which consists of 
String filename = String.valueOf(tile.toExternalForm ());  // + more path & filename info.
This results in trying to access a file from a location such as http://www.bhaldebla.com/images/1.jpg
 
However - it dosent work.
 
Q1. Has anyone else had a similar problem to this?
Q2. What (generally) would be the method of accessing required data files from applets - retaining the ability to run as stand alone!
 
 
Thanking you,
 
Nathan
 
 
PS. ARgggg!
 
 

Reply via email to