Yep.  You should be able to get your files by resource access.  Look at:

URL Class.getResource(String name)
InputStream Class.getResourceAsStream(String name)

The "name" parameter is the path to the file.  If your jar contents look
like:

com/myco/project/MyApplet.class
com/myco/project/OtherCode.class
com/myco/project/model/myvrml.vrml

Then you should be able to find your file with "model/myvrml.vrml" as
the name IF you are making the call within a class of package
"com/myco/project".  I do this a lot, so feel free to ask questions...
:)

Is there a need for a tutorial in the FAQ about this??  It's not really
Java3D, but it is good info for DEPLOYING Java3D apps.

-Lee

> -----Original Message-----
> From: Jonathan Albert C Vallar [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 26, 2001 11:04 PM
> To: [EMAIL PROTECTED]
> Subject: [JAVA3D] Jar archives...
>
>
> Hi!
>
> I also forgot to thank all of you guys for helping me in my
> previous example. It was about the access control exception.
>
> I have a question about java archives..... I have an applet
> contained in a jar file that is referenced by an HTML
> document. Am I right to say that the client computer
> downloads the jar archive so all the files I need in my
> applet are also there in the client computer? In this case, I
> will be able to load my VRML models that are inside the jar file?
>
> Thanks in advance!
>
>
> BAMBAM
>
>
> __________________________________
> www.edsamail.com
>
> ==============================================================
> =============
> 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".
>

===========================================================================
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