In case anyone else needs to do this here is how i did it.

First, my setup.
I have a jar file with the resources (in my case, Freemarker
templates) and my classes that load the templates. I use spring to
wire and instantiate my classes. Spring also gives my class a handle
on the class loader.

I use the ClassLoader to get a URI of the resource. At first i was
Creating a File object given the URI but although this works in my dev
environment (which wasn't using the Appengine dev engine but running
directly in Jetty), it crashes in the appengine. To retrieve the
resource in the cloud you have to get the file as a stream.


On Sep 15, 10:45 pm, Sarhan <[email protected]> wrote:
> How do you access a file inside of ajarfile in the appengine?
>
> I was able to successfully do it on my local box, but i get a
> FileNotFoundException while in the cloud.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to