Win a copy of Functional Reactive Programming this week in the Other Languages 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: 5856
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