开发者

How to set SplashScreen in Eclipse?

My App would load a splashScreen before launching the开发者_Go百科 main window. How do you set the splashScreen running in Eclipse? There was a place to put the "splash:splashScreen.png" in NetBeans so that the App would start with the SplashScreen. Anything like that in Eclipse>


This link explains best how to add your splashscreen with netbeans -

http://wiki.netbeans.org/Splash_Screen_Beginner_Tutorial.

For Eclipse just add the -splash:path/to/image to VM arguments in the Debug/Run configurations panel.


Yes, the splash screen image has to be named splash.bmp as described here: http://www.eclipse.org/articles/Article-Branding/branding-your-application.html. The splash screen is expected to be in the same plug-in as the product. If this is not true for you, you might want to make an explicit choice in the configuration.


Add the

-splash:path/to/image

to VM arguments in the Debug/Run configurations under Arguments tab.


Credits: http://www.mkyong.com/java/how-to-change-eclipse-splash-welcome-screen-image

Short version: replace eclipse-jee-neon-R-win32\plugins\org.eclipse.platform_4.6.3.v20170301-0400\splash.bmp (your path will be very similar, navigate to it manually).

Long version:

1) Find “config.ini” file

Find the Eclipse configuration file “config.ini” in the following location:

{eclipse.dir}\configuration\config.ini

2) Find “osgi.splashPath”

Open the “config.ini” file, find the “osgi.splashPath” to find out where Eclipse IDE's splash image is stored, e.g.:

osgi.splashPath=platform\:/base/plugins/org.eclipse.platform

The default splash image is stored in:

{eclipse.dir}/plugins/org.eclipse.platform folder

3) Find the “splash.bmp” image

Find the “splash.bmp” image in the following location:

{eclipse.dir}/plugins/org.eclipse.platform_3.3.200.v200906111540/splash.bmp

(3.3.200.v200906111540 is the Eclipse version in this case, it may be different than yours)

4) Replace it

Replace the default “splash.bmp” image with yours (you may want to keep a backup copy of the original).

5) Done

Restart your Eclipse IDE to see the result!

And now, for the real reason I wanted to post this answer:

How to set SplashScreen in Eclipse?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜