Salut tous !
je veux mettre un splashscreen au départ de mon programme. Sur la ligne de commande ou dans un fichier .bat ça marche avec
java -jar -splash:fleur_animee.gif Essai.jar
On peut aussi le mettre dans le jar comme précisé dans la doc :
dans mon fichier MANIFEST.MF j'ai :If your application is packaged in a jar file, you can use the "SplashScreen-Image" option in a manifest file to show a splash screen. Place the image in the jar archive and specify the path in the option. The path should not have a leading slash.
For example, in the manifest.mf file:
Manifest-Version: 1.0
Main-Class: Test
SplashScreen-Image: filename.gif
mais là ça coince, je reçois ce message :Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.0
Created-By: 10.0-b19 (Sun Microsystems Inc.)
Main-Class: packageEssai.JFrameEssai
SplashScreen-Image: fleur_animee.gif
Class-Path: lib/swingx-0.9.2.jar
X-COMMENT: Main-Class will be added automatically by build
Java Virtual Machine Launcher :
Invalid or corrupt jarfile C:/fc/Essai.jar
y'a un truc qui m'échappe ? help![]()
Partager