Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » images when exporting to a .jar
images when exporting to a .jar [message #661736] Sun, 27 March 2011 00:05 Go to next message
No real name is currently offline No real nameFriend
Messages: 2
Registered: March 2011
Junior Member
Hi
i have made a simple pong like game and i would like to export it. i used .png files for the bat and ball. I put them on my workspace so when i load them into my program the file path is just "bat.png" or "ball.png". This works fine in eclipse.
My problem is when i export my project to a .jar file. the bat and ball are transparent but they seam to still exist. Where should i be placing them when i export them.
the .png files are in the .jar file.
Thanks for any help.
Re: images when exporting to a .jar [message #661739 is a reply to message #661736] Sun, 27 March 2011 00:54 Go to previous message
No real name is currently offline No real nameFriend
Messages: 2
Registered: March 2011
Junior Member
i found a fix here:http://www.velocityreviews.com/forums/t128245-problem-l oading-image-in-jar.html

are there any better ways of doing it as this wont work in eclipse anymore.
Previous Topic:Getting Started
Next Topic:add javanature into my own project
Goto Forum:
  


Current Time: Fri Apr 19 21:57:47 GMT 2024

Powered by FUDForum. Page generated in 0.02554 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top