This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eclipse 3.4, locate Splash image file ?

 
Edward Chen
Ranch Hand
Posts: 798
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a Swing application in Eclipse 3.4. Source sturctures like


this log.png is the Splash image, so I go to Run/Debug setting --> Lanunch Configuration, set VM arugment as "-splash:log.png". But it doesn't work, still can't find this splash image.

The result I want is, "java -splash:log.png com.myapp.Main"

 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you try -splash:src/images/log.png? I think that the project's base directory is the current working directory for the Java app, so you must give the relative location of the PNG file.
 
Edward Chen
Ranch Hand
Posts: 798
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Peter Johnson wrote:Did you try -splash:src/images/log.png? .

This solution is right. Thanks a lot.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic