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
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
There could be any number of reasons for that! ;-)
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 ?
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?
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)
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.
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
...
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks !!!!!!! :-)