Do u use JarURLConnection class? Or u reference the .jar file via
archieve tag of .html file? If u use the former way, then there
shouldn't be any problem. Try to put the texture in the same .jar file as
your .wrl model if u haven't done so yet. Possibly this would help.

vladimir
             -=V=-
>-------<=============>-------<
Join in Java community now!
http://JavaCafe.VirtualAve.net/
>-------<=============>-------<

In your previous letter u wrote:
--------------------------------
AH> I'm having trouble fetching an image from a jar file using the web3d vrml loaders. 
 I'm using Windows 95, Jdk1.2.2 and the non beta
AH> J3D.

AH> I'm able to fetch a .wrl file without trouble, but if the .wrl file references a 
texture then I get an error message:

AH> java.lang.IllegalArgumentException: invalid port range: :21
AH>    at java.net.SocketPermission.init(SocketPermission.java:341)
AH>    at java.net.SocketPermission.<init>(SocketPermission.java:206)
AH>    at 
sun.net.www.protocol.ftp.FtpURLConnection.getPermission(FtpURLConnection.java:175)
AH>    at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:80)
AH>    at 
sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:112)
AH>    at sun.awt.image.URLImageSource.getDecoder(URLImageSource.java:116)
AH>    at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:242)
AH>    at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:221)
AH>    at sun.awt.image.ImageFetcher.run(ImageFetcher.java:189)

AH> Any ideas?  It seems to be wanting to ftp to my windows based laptop, which I 
don't think accepts ftp connections...  nevertheless
AH> the .wrl itself does fetch so somehow images are treated differently.

AH>  - Andy

AH> ===========================================================================
AH> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
AH> of the message "signoff JAVA3D-INTEREST".  For general help, send email to
AH> [EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to