Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Allucinating Problem with gifs and jars

807569Jul 29 2006 — edited Jul 29 2006
Hello, i have an allucinating problem i cannot snap out of.

I made a small program which uses gifs, and the directory structure is as follows:

-Project folder
---classes
------mypackage
---------variousclasses.class
---------main.class
---gifs folder
------variousgifs.gif

the gif folder is at the same level of the classes folder.
I use Jdeveloper, and in the main class and in other classes i specify gif paths like this: "gif folder/variousgifs.gif"
It works perfectly when i use jdev.

Now, i have made a JAR, following instructions properly and including the gifs folder in the project. When i open the Jar in Winrar to verify the directory structure, its like this:

mypackage (folder)
meta-inf (folder)
gifs folder (folder)

so i assume it is how it should be (the main class, again, is in mypackage/main.class).

But when i run the program with java -jar or doubleclick, it just doesn't show any image!
Can anybody help me? T-T
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 26 2006
Added on Jul 29 2006
4 comments
83 views