Just jar the your.wrl file and load it via jar: protocol like this:
jar:http:\\yourdomain\yourjar.jar!\your.wrl. For further information
see API doc for JarURLConnection class.
vladimir
-=V=-
>-------<=============>-------<
Join in Java community now!
http://JavaCafe.VirtualAve.net/
>-------<=============>-------<
In your previous letter u wrote:
--------------------------------
JN> Hello David (and hello to all),
JN> sorry, I have no solution for your problem, but this is very interesting for me,
too.
JN> (In the near future, I would need the same functionality.)
JN> But could you describe, how to put a vrml into a jar and load it via an applet,
please
JN> ?
JN> Or give me a hint to a link on the web ?
JN> Thanx
JN> -Juergen.
JN> David Grace schrieb:
>> Hi,
>>
>> Sorry in asvance if this is the wrong place to ask this question.
>>
>> I'm trying to load into an applet a wrml file that has been put in a jar
>> file. This works fine for a vrml file without any associated textures but if
>> the vrml has a texture it throws a strange exception.
>>
>> Exception: java.lang.IllegalArgumentException: invalid port range: :21
>> Last token was "}" at line 23
>> java.lang.IllegalArgumentException: invalid port range: :21
>> at java.net.SocketPermission.init(Unknown Source)
>> at java.net.SocketPermission.<init>(Unknown Source)
>> at sun.net.www.protocol.ftp.FtpURLConnection.getPermission(Unknown Source)
>> at sun.net.www.protocol.jar.JarURLConnection.getPermission(Unknown Source)
>> at sun.awt.SunToolkit.getImageFromHash(Unknown Source)
>> at sun.awt.SunToolkit.getImage(Unknown Source)
>> ................
>>
>> I have no problem loading the vrml files with textures if they are not
>> contained inside a jar file.
>>
>> If anyone could tell me whether this is a bug or there is a workaround it
>> would be much appreciated.
>>
>> Thanks,
>>
>> Dave.
>>
>> ===========================================================================
>> 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".
JN> ===========================================================================
JN> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
JN> of the message "signoff JAVA3D-INTEREST". For general help, send email to
JN> [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".