Link to home
Start Free TrialLog in
Avatar of KouKi
KouKi

asked on

making a jar file

Hello again !

I finally finished my application using GUI and
I made a .jar file !
when I launch it Everything is OK but the pictures dont appear !
(I included them though !!)

Does anyone of you know how make those appear in my appli ?
Thanks
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

There could be any number of reasons for that! ;-)
Avatar of KouKi
KouKi

ASKER

when i run my program in Eclipse, I have the pictures,
but when i export it into a jar file i can't see those anymore,
is it possible i need to use a MediaTracker in my program ?
how r u giving the path to the pictures in your code?
Avatar of KouKi

ASKER

Im using Eclipse
I need to check what I need
I checked "default package" (all the classes are checked)
and "images" (and all the images are checked)

Yes, but how are the pictures referenced to in your code? (Not when you create the jar).

AviadBd.
Avatar of KouKi

ASKER

new ImageIcon("images/down.gif");
...
I have a directory images that containts all the pictures ..
I tried also to put ->
new ImageIcon("down.gif");
like this and have all the pictures in the project directory
but when i run the jar i still don't see any
ASKER CERTIFIED SOLUTION
Avatar of kiranhk
kiranhk

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of KouKi

ASKER

Thanks !!!!!!! :-)