Reading files from the application JAR

  3 posts   Feedicon  
Replies: 2 - Last Post: August 18, 2009 09:18
by: donv
showing 1 - 3 of 3
 
Posted: August 16, 2009 22:18 by donv
Hi all!

I am trying out rawr, and I am getting a feel for it. I have jumped a few hurdles to get my application (non-rails) running, and I feel I am close to having a complete executable JAR.

Currently I am trying to display an image loaded from a file included in the JAR. The actual loading is performed by a Java class org.eclipse.swt.graphics.ImageLoader and it fails with

java.io.FileNotFoundException fileHmmmhome/uwe/myapp/package/jar/myapp.jar!/icons/logo.png (No such file or directory)

The file "icons/logo.png" is present in the "myapp.jar" file.

Anybody got an idea how to proceed?
 
Posted: August 17, 2009 16:11 by Logan Barnett

Donv,
A while back I made a blog post about how to do this http://www.logustus.com/2009/01/how-to-use-images-and-other-content-in.html

I'd really like it if Rawr and Monkeybars' documentation was contained within the project, instead of on my blog. In my defense, I was trying to keep up with a large blog post per day at the time (:

Could you put the relevant bits into a new wiki page on Rawr or Monkeybars? If you want to just cut and paste a lot of stuff that's okay too.

Thanks!

 
Posted: August 18, 2009 09:18 by donv
Thanks! That was helpful.

I have added a WWIKI page of the blog.
Replies: 2 - Last Post: August 18, 2009 09:18
by: donv
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120127.ac94057)
 
 
Close
loading
Please Confirm
Close