Results 1 to 1 of 1
- 01-14-2011, 05:07 AM #1
Member
- Join Date
- Jan 2011
- Posts
- 3
- Rep Power
- 0
Resources load in Eclipse but not in standalone .jar
SOLVED: Heh, solved my own problem. Turns out Eclipse is a lot more lax with filenames than the java interpreter, my mis-capitalized PNG/png was tripping it up.
When I export my project to a .jar, it suddenly has difficulty loading resources.
This is what my file tree looks like:

The code that loads the image, inside of Cube.java:

The program runs fine inside of eclipse, but when I export it and try to run it standalone, it can't find that png. I unzipped the jar and looked inside and cube.png was sitting there in the root right where I thought it should be. Can anyone help me with getting it shifted to wherever it needs to be?Last edited by leonsbuddydave; 01-14-2011 at 05:11 AM.
Similar Threads
-
Load Images, XML Contents with Eclipse IDE & BEA Weblogic Support
By sherazam in forum Java SoftwareReplies: 0Last Post: 08-13-2010, 10:52 AM -
Standalone applications
By sachin2 in forum New To JavaReplies: 0Last Post: 07-21-2009, 08:08 PM -
External runtime resources access in Eclipse
By batkins61 in forum EclipseReplies: 0Last Post: 01-07-2009, 05:42 PM -
Eclipse load issue with Fedora Core 9
By digilogik in forum EclipseReplies: 2Last Post: 11-01-2008, 05:22 AM -
Can not load image in SWT/Eclipse
By janice in forum SWT / JFaceReplies: 4Last Post: 10-03-2008, 04:53 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks