Splash screen midlet jar

hi all
how add splash screen to a jar (midlet)
thanks advance

Wouldn't it be faster to type "midlet splash screen" into google? ;-)
You'll find plenty of examples.

Similar Messages

  • Splash screen for multiple MIDlets

    Hello to all,
    I am vishnu.
    I have a project containing multiple midlets.
    In that,I have a MIDlet class for splash screen. It is working well seperately.
    When i run my project in the emulator, it display currently available MIDlet classes. when i select the splash screen MIDlet , it displays the screen.But i want to display the splash sceen when i open the project in the emulator.
    Do i have to change any settings to make a class file as splash screen.
    thank you in advance,
    vishnu

    Why do you need multiple midlets?

  • Splash screen with progress bar and multiple jar files to load

    Hello,
    I have been looking to the new features in java 6 for splash screens. I haven't implemented this never before and i was wondering how i could do the following with java 1.5 or 6:
    I would like to see a splash screen with a progress bar that "grows" when every jar file has been read.
    At this time i call my application like this from a shell script:
    exec "$JAVA_BIN" -Djava.library.path=$LIBRARIES_J3D -classpath xxxx.jar yyyy.jar zzzz.jar ...
    where xxx.jar, yyy.jar and zzz.jar are very heavy jars.
    So i would like to see in the progress bar 33% 66% and 100% when they are loaded.
    I do not know if this is the right forum to ask for this. If no, please point me which would be the ideal one.
    Any help will be very useful. Thanks to all!

    Am 10.07.2015 um 07:17 schrieb Lalit Solanki:
    > Hi friend,
    >
    > I am create pure eclipse E4 application and trying to splash screen with progress bar and message.
    >
    >
    >
    >
    > but above image in only support eclipse E3 application so pleas help me how to add progress bar and message in eclipse E4 application
    >
    Hi Lalit,
    there's a Bug entry: https://bugs.eclipse.org/bugs/show_bug.cgi?id=382224
    Meanwhile you can use this solution:
    https://www.eclipse.org/forums/index.php/t/328812/5ceed4bcaa683a94d65efb161bffd217/
    Regards,
    Ralf.

  • Splash Screen Inconsistent between CLI and JAR specification

    Unlike just about any other java API, the SplashScreen API treats jar-launched and command-line-launched invocations of the same code differently
    According to [the Splash Screen Tutorial|http://download.oracle.com/javase/tutorial/uiswing/misc/splashscreen.html]
    a command-line invocation of a Splash Screen application would take the form
    java -splash:images/splash.gif SplashDemo
    whereas a jar-invocation would allow the splash screen to be specified in the jar manifest with the notation
    SplashScreen-Image: images/splash.gif
    This doesn't APPEAR to be inconsistent but the implementation is in fact not consistent.
    In the jar-manifest approach the splash screen image is searched relative to the classpath implied by the JAR whereas the command-line version is searched relative to the current working directory. The documentation fails to explain this leading to lots of headscratching when, for example, a Splash Screen works right in a runnable jar but not from an IDE such as Eclipse. If, instead, the image was loaded relative to the classpath (getResource()) then the jar and the command line would work the same.
    At the very least, there should be an additional command line switch supporting this classpath-based loading functionality from the command line or failing that, better documentation of what is going on. Neither the tutorial nor the javadoc explains the CLI syntax sufficiently. I spent several hours of headscratching trying to understand this and I'm by no means a newbie.
    Edited by: user549053 on Nov 10, 2011 4:39 PM

    user549053 wrote:
    The only thing I can wonder is: why do you want command line invocation at all?Simple. In the field, I only want jar invocation. In development, I want invocation in Eclipse - which, under the covers uses command-line invocation.Good point, but then I wonder why you care that the splash screen works or doesn't work in Eclipse. As long as it works in the field. In fact, I would probably build in a way to disable the splash screen when running from the IDE myself - apparently it isn't even needed to do any work to make that happen ;)
    >
    Complaining about documentation here isn't going to do you much good.There's lots of confusion about this on the internet. Just google it. I didn't find anything that gave me the answer, just references to Oracle's documentation which doesn't answer the confusion. That's now been remedied, though, by me:
    http://stackoverflow.com/questions/6906267/debug-splashscreen-from-eclipse-without-generating-the-jar/8087881#8087881
    I thank you for your contribution. It is exactly this personal effort that keeps the Java community going...
    >
    Oracle really should do something about this.... because Oracle certainly will not. Again: complaining in this forum does nothing. Because like StackOverflow this is a user to user forum, not an Oracle tech support site. It won't be read and it won't end up on a todo list. Sad but true.

  • Display splash screen while downloading applet jar file

    I've tried to search the forums, but most results I get are how to display a splash screen while the classes are loading. Unfortunately, the classes do not begin loading until after the jar file has been downloaded. How does one go about showing as splash screen as the jar file containing the classes is downloaded?
    Thanks for the help!

    "Java 5 provides a capability in this area"- Unfortunately, due to circumstances out of our control we are stuck on java 1.4.x.
    "How you do that is your problem."- I'm so glad I can count on the helpful java community. Thanks.
    Since it appears that "warnerja" is discusted by my question (mabye had a bad day) and is leaving me out in the cold, does anyone have any ideas on how I can implement her/his suggestion. I can break my jar file into multiple seperate jars and as each one loads I can update a progress bar. Unfortunately, I do not know where to begin with this code wise nor do I know if this is the best solution to this problem. I would think this to be a common problem.
    Thanks for your help!

  • Building Splash Screens for my MIDlet ????

    i want to build a Splash Screen, please help. My Code:
    package ewetmidlet;
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.MIDlet;
    public class EwetMidletMain extends MIDlet implements CommandListener {
         public Display display = null;
         private Command cmdAdd;
         private Command cmdBack;
         private Command cmdExit;
         private EwetNews en = null;
         private EwetDates ed = null;
         private EwetForum ef = null;
         private EwetSchedule es = null;
         private EwetPref ep = null;
         private EwetServlet servlet = null;
         public Alert alert = null;
         public List mainMenu;
         private String[] mainMenuChoices = {"News",
                             "Termine",
                             "Stundenplan",
                             "Forum",
                             "Einstellungen"};
         public EwetMidletMain () {
              display = Display.getDisplay (this);
         protected void startApp () {
              genNewsScr ();
              genMainMenu ();
              genDatesMenu ();
              genForumMenu ();
              genScheduleMenu ();
              genPrefScr ();
              display.setCurrent (mainMenu);
         protected void pauseApp () {
         protected void destroyApp (boolean unconditional) {
              ep.savePref ();
         private void genMainMenu () {
              if (mainMenu == null) {
                   cmdAdd = new Command ("OK", Command.OK, 1);
                   cmdBack = new Command ("Zur�ck", Command.BACK, 2);
                   cmdExit = new Command ("Beenden", Command.EXIT, 3);
                   mainMenu = new List ("EWET-Men�", List.IMPLICIT, mainMenuChoices, null);
                   //mainMenu.setTicker (new Ticker ("Achtung heute 1 Termin"));
                   mainMenu.addCommand (cmdAdd);
                   mainMenu.addCommand (cmdExit);
                   mainMenu.setCommandListener (this);
         private void genNewsScr () {
              en = new EwetNews (mainMenu, display);
         private void genDatesMenu () {
              ed = new EwetDates (mainMenu, display);
         private void genScheduleMenu () {
              es = new EwetSchedule (mainMenu, display);
         private void genForumMenu () {
              ef = new EwetForum ();
              ef.getForumMenu ().setCommandListener (this);
         private void genPrefScr () {
              ep = new EwetPref ();
              ep.getPrefScr ().setCommandListener (this);
         public void commandAction (Command c, Displayable d) {
              if (d == mainMenu) {
                   if (c.getCommandType () == Command.EXIT) {
                        ewetMidletExit ();
                   else if ((c == List.SELECT_COMMAND) || (c == cmdAdd)) {
                        switch (mainMenu.getSelectedIndex ()) {
                             case 0:
                                  display.setCurrent (en.getMenu ());
                                  break;
                             case 1:
                                  display.setCurrent (ed.getMenu ());
                                  break;
                             case 2:
                                  display.setCurrent (es.getMenu ());
                                  break;
                             case 3:
                                  display.setCurrent (ef.getForumMenu ());
                                  break;
                             case 4:
                                  display.setCurrent (ep.getPrefScr ());
                                  break;
              else if (d == ef.getForumMenu ()) {
                   if (c == ef.cmdBack) {
                        display.setCurrent (mainMenu);
              else if (d == ep.getPrefScr ()) {
                   if (c == ep.cmdBack) {
                        display.setCurrent (mainMenu);
         private void ewetMidletExit () {
              destroyApp (true);
              notifyDestroyed ();
         /*public void showSplashScreen(Display d, Displayable next ){
              Image logo = null;
              try {
                   logo = Image.createImage("/ewet.png" );
              catch( IOException e ){
              Alert a = new Alert( null,
                        "Copyright 2002 by Frank Putzger",
                             logo, null );
              a.setTimeout( Alert.FOREVER );
              display.setCurrent( a, next);
    }

    uh, you gave us the entire midlet....
    here's a splash screen extending canvas, with the calling method (from the midlet), below it:
    import java.util.*;
    import javax.microedition.lcdui.*;
    public class Splash extends Canvas {
    private Display display;
    private Displayable next;
    private Timer timer=new Timer();
    public Splash (Display display,Displayable next) {
    this.display=display;
         this.next=next;
         display.setCurrent(this);
    protected void showNotify () {
    timer.schedule( new TimerTask () { public void run() {
         displayNext(); }},8000);
    protected void hideNotify() {
    timer.cancel();
    protected void keyPressed (int keycode) {
    displayNext();
    protected void pointerPressed (int x, int y) {
    displayNext();
    private void displayNext() {
    display.setCurrent(next);
    protected void paint (Graphics g) {
    int height=this.getHeight();
    int width=this.getWidth();
    // fill background as white
    g.setColor(0xFFFFFF);
    g.fillRect(0,0,width,height);
    Image logo=null;
    try {
    logo=Image.createImage("/images/logo.png");
              } catch (Exception ignore) {}
    g.drawImage(logo,width/2,height/2,g.HCENTER|g.VCENTER);
    here's the calling method (it passes the Display and current Displayable):
    * This shows the splash
    private void showSplash () {
         new Splash (display,MenuList);

  • Two MidLets..but Common Splash screen

    hey guyz,
    im developing a J2ME application which consists of a MIDlet suite having 2 midlets. my problem is that when i package these 2 midlets and try running them, they appear as separate items on the emulator..something like:
    Select One:
    Midlet 1
    Midlet 2
    This appears as default..probably handled by the JAM.
    But, i want to first display a splash screen and then the choice of which midlet to run.
    How do i do this?? One idea that came to mind was to create a splash midlet, which in turn calls the other 2.
    but the problem was...larger bytecode and reduced efficiency.
    worse still, the IDE i use automatically adds every Midlet to the Midlet suite...so if i try to do as mentioned above, i'm afraid that the output will b something like:
    Select One:
    Splash Midlet
    Midlet1
    Midlet2
    Please suggest a solution.
    =====
    kiran

    Hi.
    Maybe you should use timer here?i dont think....the problem i am having is with the JAM's default handling of midlets.
    even if i do use a timer, it wont prevent the JAM from adding all 3 midlets to the Midlet suite...so it'l still display all 3 in the "Choose One" screen.
    Im looking for a way to override this default behaviour...
    Of course, i had another idea..use only the splash Screen as a Midlet...let the other be something like Starter classes..but not midlets. Anyway, this idea completely deviates from my design.
    ====
    Kiran

  • Splash Screen + Jar + DND + Linux = XServer Freeze?

    I've experienced a strange problem with one of my programs which I believe to be a java bug, I just need help reproducing it in a small example.
    Basically, I have a fairly large project (20,000 loc), which involves a bit of drag and drop of a custom JTree, custom JList, and some other things. Recently, we introduced a splash screen to the project. With that, I started getting reports of the program freezing people's linux computers. I looked into it and was able to reproduce the problem. Here are my findings:
    1) Disabling the splash screen stops the freezing. This is an undesirable workaround, since the program takes a long time to load, but aside from disabling Drag and Drop, this has been the only workaround I've found so far.
    2) The freezing only occurs if the project is packed into a jar. Running from Eclipse or running the class files does not produce the problem.
    3) The freeze occurs briefly after the user completes a Drag and Drop. There are other methods to complete these actions which do not involve drag and drop, but these methods do not cause the freeze, thus the problem is with the DND.
    4) I was unable to reproduce this problem with Windows
    Upon freezing, I am still able to move the mouse cursor, but it get stuck on a certain pointer (which, since this is briefly after the DND completion, could be anything. I've obtained states such as invisible, I-beam, and pointer). Music also continues to play. Open windows, however, stop responding to attempts to bring them to front, minimize them, interact with them, etc - they are essentially frozen. Ctrl+C does not kill the offending process, even if it was run from the terminal.
    There are 2 ways to recover from the freeze: Hard Reboot, or ssh in and kill the java process that way.
    This has led me to conclude that it is the XServer freezing.
    Now the weird thing is, I'm unable to reproduce this with a small test program which involves all 4 of the mentioned components.
    Anybody know anything about this problem? Anybody else experienced this or able to reproduce this?
    My project is open source and I'd be more than happy to share a jar of it if it helps you any, or it can be accessed from an SVN. Like I said, though, it's 20,000 loc or so, so I doubt you'd want to look through it to find the problem. I've also created a small test program using the main freeze-worthy components (Splash screen, jar, DND), but it does not cause the freeze. I can provide that program if anybody's interested.
    Please help, this is very irritating, and I'm starting to get some unhappy clients.

    OK, so I managed to replicate it on relatively small code, here comes the code:
    DomTree.java
    import javax.swing.JFrame;
    import javax.swing.JTree;
    import javax.swing.tree.DefaultMutableTreeNode;
    import javax.swing.tree.DefaultTreeModel;
    import java.math.BigDecimal;
    public class DomTree extends JTree
        public DomTree()
         DefaultMutableTreeNode root = new DefaultMutableTreeNode("Root");
         root.add(new DefaultMutableTreeNode(new BigDecimal(Math.PI)));
         root.add(new DefaultMutableTreeNode(new BigDecimal(Math.E)));
         root.add(new DefaultMutableTreeNode(new BigDecimal(Math.PI*Math.E)));
         setModel(new DefaultTreeModel(root));
         new DomTreeDnD(this);
        public static void main(String args[]) {
         JFrame frame = new JFrame();
         frame.setSize(640, 480);
         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         frame.add(new DomTree());
         frame.setVisible(true);
    }DomTreeDnD.java
    import java.awt.Component;
    import java.util.ArrayList;
    import java.io.IOException;
    import java.awt.datatransfer.DataFlavor;
    import java.awt.datatransfer.Transferable;
    import java.awt.datatransfer.UnsupportedFlavorException;
    import java.math.BigDecimal;
    import javax.swing.DropMode;
    import javax.swing.JComponent;
    import javax.swing.JTree;
    import javax.swing.TransferHandler;
    import javax.swing.tree.TreePath;
    import javax.swing.tree.DefaultMutableTreeNode;
    import javax.swing.tree.DefaultTreeModel;
    public class DomTreeDnD extends TransferHandler
        /** A list of supported data flavors for import */
        public DataFlavor importFlavors[] = null;
        /** A list of supported data flavors for export */
        public DataFlavor exportFlavors[] = null;
        // BigDecimal transfer within the same JVM instance:
        DataFlavor localBigDecimal;
        public DomTreeDnD(DomTree domTree)
         try {
             // BigDecimal transfer within the same JVM instance:
             localBigDecimal = new DataFlavor(BigDecimal.class, "Big Number");
             importFlavors = new DataFlavor[]{
              localBigDecimal, // JVM-local import
             ArrayList<DataFlavor> exportFlavors = new ArrayList<DataFlavor>();
             exportFlavors.add(localBigDecimal);
             this.exportFlavors = exportFlavors.
              toArray(new DataFlavor[exportFlavors.size()]);
             domTree.setTransferHandler(this);
             domTree.setDragEnabled(true);
             domTree.setDropMode(DropMode.INSERT);        
         } catch (IllegalArgumentException iae) {
             System.err.println("D&D is disabled due to: "+iae);
        /* In order to restrict drop location, remember what is being dragged: */
        /** Source component (of class DomTree) noted upon drag. */
        Component source = null;
        /** The DomTree in which internal MOVE action has been performed.*/
        DomTree selectTree = null;
        /** The position in DomTree where internal MOVE action has been performed.*/
        TreePath selectPos = null;
        /** Export (start drag or copy): declare supported actions */
        public int getSourceActions(JComponent c)
         // support only DomTree (for now)
         if (c instanceof DomTree) {
             System.out.println("getSourceActions: OK");
             return COPY_OR_MOVE;
         return NONE;
        /** Export (start drag or copy): wrap the data */   
        protected Transferable createTransferable(JComponent source)
         if (source instanceof DomTree) {
             DomTree domTree = (DomTree) source;
             TreePath path = domTree.getSelectionPath();
             if (path == null) return null;
             Object o = path.getLastPathComponent();
             if (o == null) return null;
             if (!(o instanceof DefaultMutableTreeNode)) return null;
             o = ((DefaultMutableTreeNode)o).getUserObject();
             if (o instanceof BigDecimal) {
              System.out.println("createTransferable");
              BigDecimal t = (BigDecimal)o;
              return new TransferableBigDecimal(t);
             } else {
              System.out.println("Dragging "+o.getClass().getName());
         return null; // otherwise drag is not supported
        /** Export (drag or copy): finish export after import is done */
        protected void exportDone(JComponent source,
                         Transferable data, int action)
         if (selectTree != null && selectPos != null) {
             System.out.println("exportDone: change selection");
             selectTree.setSelectionPath(selectPos);
             selectTree = null;
             selectPos = null;
             System.out.println("exportDone: change selection done");
        /** Import (drop or paste): find acceptable flavor. */
        DataFlavor findFlavor(Transferable transferable)
            for (DataFlavor idf: importFlavors)// prefer our priorities first
             if (transferable.isDataFlavorSupported(idf)) {
              return idf;
            System.out.println("No supported data flavor found, suggested:");
            for (DataFlavor df: flavors)
                System.out.println(df);
            return null;     
        /** Import (drop or paste): can we accept the flavor? */
        public boolean canImport(JComponent c, DataFlavor[] flavors)
         System.out.println("canImport DataFlavor");
         for (DataFlavor idf: importFlavors)// prefer our priorities first
             for (DataFlavor edf: flavors)
              if (idf.equals(edf)) return true;
         return false;
        /** Import (drop or paste): can we accept the stuff? asked continuousely.*/
        public boolean canImport(TransferHandler.TransferSupport sup)
         if (!sup.isDrop()) // allow only drop
             return false;
         // allow only copy and move:
         if (sup.getUserDropAction() != COPY_OR_MOVE &&
             sup.getUserDropAction() != COPY &&
             sup.getUserDropAction() != MOVE)
             return false;
         Component target = sup.getComponent();
         if (!(target instanceof DomTree)) // support only DomTree
             return false;
         DomTree domTree = (DomTree)target;
         // check for compatible flavor:
         if (findFlavor(sup.getTransferable()) == null) return false;
         JTree.DropLocation loc = (JTree.DropLocation)sup.getDropLocation();
         TreePath destPath = loc.getPath();  // parent of drop position
         int destIndex = loc.getChildIndex();// position of insertion
         if (destPath == null) return false;
         Object parent = destPath.getLastPathComponent();
         parent = ((DefaultMutableTreeNode)parent).getUserObject();
         if (!(parent instanceof String)) // drop only within document
             return false;
         if (target == source) { // transfer within the same tree
             sup.setDropAction(sup.getUserDropAction());
         return true; // allow transfer
        /** Import (drop or paste): perform import and return result. */
        public boolean importData(TransferHandler.TransferSupport sup)
         Component target = sup.getComponent();
         if (!(target instanceof DomTree)) return false;
         DomTree domTree = (DomTree)target;
         Transferable trans = sup.getTransferable();
         DataFlavor flavor = findFlavor(trans);
         if (flavor==null) return false;
         System.out.println("importData");
         BigDecimal t = null;
         // extract the data being dropped:
         try {     
             Object data = trans.getTransferData(flavor);
             if (data == null) return false;
             if (flavor.equals(localBigDecimal)) {
              if (data instanceof BigDecimal) t = (BigDecimal)data;
              else return false;
         } catch (UnsupportedFlavorException ufe) {
             ufe.printStackTrace(System.err);
         } catch (IOException ioe) {
             ioe.printStackTrace(System.err);
         if (t == null) return false; // data extraction failed
         System.out.println("Search for location");
         // search for position in terms of a preceeding template:
         JTree.DropLocation loc = (JTree.DropLocation)sup.getDropLocation();
         TreePath destPath = loc.getPath();
         int destIndex = loc.getChildIndex();
         DefaultMutableTreeNode pos;
         DefaultTreeModel model = (DefaultTreeModel)domTree.getModel();
         DefaultMutableTreeNode parent =
             (DefaultMutableTreeNode)model.getRoot();
         System.out.println("Insert a copy");
         BigDecimal copy = new BigDecimal(t.doubleValue());
         pos = new DefaultMutableTreeNode(copy);
         parent.insert(pos, destIndex);
         TreePath path = destPath.pathByAddingChild(pos);
         model.nodesWereInserted(parent, new int[]{destIndex});
         System.out.println("Highlight selection");
         // highlight the selection in the DomTree:
         if (pos != null) {
             domTree.setSelectionPath(path);
         return true;
        class TransferableBigDecimal implements Transferable
         protected final BigDecimal template; // hidden behind interface
         public TransferableBigDecimal(BigDecimal t) {
             System.out.println("TransferableBigDecimal");
             template = t;
         public boolean isDataFlavorSupported(DataFlavor df) {
             if (!localBigDecimal.equals(df))
              System.out.println("Tried requesting: " + df);
             for (DataFlavor myflavor: exportFlavors)
              if (myflavor.equals(df))
                  return true;
             return false;
         public Object getTransferData(DataFlavor df)
             throws UnsupportedFlavorException, IOException
             if (df.equals(localBigDecimal)) {
              System.out.println("Local export");
              return template;
             } else {
              System.out.println("Unsuported flavor");
              throw new UnsupportedFlavorException(df);
         public DataFlavor[] getTransferDataFlavors() {
             System.out.println("Asked for all supported flavors");
             for (DataFlavor df: exportFlavors)
              System.out.println(df);
             return exportFlavors;
    }manifest
    Manifest-Version: 1.0
    Main-Class: DomTree
    SplashScreen-Image: splash.pngsplash.png
    // use gimp to draw 400x300 picturecompile:
    javac DomTree.javacreate jar:
    jar -cvfm dndtest.jar manifest splash.png DomTree*.class DomTreeDnD*.classrun:
    java -jar dndtest.jarthen select any number and try to drag -- the screen freezes.
    interestingly, if you tried running this DomTree not in a jar, then it does not freeze anymore, you will need to logout/login to replicate the freeze.

  • Custom splash screen for app under JWS 1.2 from 1.4.1 beta?

    Has anyone gotten a custom app's splash screen to come up instead of the damn Sun Java Web Start splash screen to come up when the app starts from a desktop icon or if you launch it from JWS?
    I added it to my jnlp file as specified in the docs, but it just doesn't come up :-(
    <description kind="tooltip">TransMedia 2</description>
    <icon kind="default" href="transmedia.gif" />
    <icon kind="selected" href="transmedia.gif" />
    <icon kind="disabled" href="transmedia.gif" />
    <icon kind="rollover" href="transmedia.gif" />
    <icon kind="splash" href="transmediasplash.gif" />
    </information>

    Hello,
    I read your postings here and I did what you proposed.
    Nevertheless the splash screen doesn't show up.
    I'm using Java 1.4.1, Web Start 1.2; the jnlp file
    looks like that:
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp codebase="http://venus/example-client/" href="example.jnlp">
    <information>
    <title>Example</title>
    <vendor>My Company/vendor>
    <description>JBoss Client</description>
    <icon href="splashscreen.jpg" kind="splash" />
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.4+"/>
    <jar href="example-client.jar" main="true"/>
    <jar href="jbosssx-client.jar"/>
    <jar href="concurrent.jar"/>
    <jar href="jboss-client.jar"/>
    <jar href="jboss-common-client.jar"/>
    <jar href="jboss-j2ee.jar"/>
    <jar href="jnp-client.jar"/>
    <jar href="log4j.jar"/>
    <jar href="datepicker.jar"/>
    <jar href="jcommon-0.7.1.jar"/>
    <jar href="jfreechart-0.9.4.jar"/>
    <jar href="xercesImpl.jar"/>
    <jar href="xml-apis.jar"/>
    <jar href="xalan.jar"/>
    <property name="java.security.auth.login.config" value="http://venus/example-client/auth.conf"/>
    </resources>
    <application-desc main-class="com.mycompany.ui.Example"/>
    </jnlp>
    any idea why webstart doesn't use the custom "splashscreen.jpg"?
    a properly splashXXXXX.jpg has been created in .javaws/cache/splashes, as well as an entry in splash.xml.
    thanx for help,
    michael

  • Custom splash screen only shows up when command line is used...

    Hi,
    Everything in my Java web start application works perfectly but, the custom splash screen only shows up when command line is used ("C:\Program Files (x86)\Java\jre7\bin>javaws -verbose http://www.xxx.eu/AcSentVivresCrus/AcSentJnlp/AcSent.jnlp"), if I use the shortcut on the desktop or in the start menu, the Java 7 splash screen shows up (tested under Windows Vista and Seven). Does someone have any clues?
    Thanks...
    My jnlp file :
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="6.0+" href="AcSent.jnlp">
      <information>
        <title>AcSent : Commande de repas</title>
        <description>AcSent - Commande de repas</description>
        <vendor>AcSent</vendor>
        <homepage href="http://www.xxx.eu" />
        <icon href="acSentIconBiseau.png" />
        <icon href="splashAcSentRC.png" kind="splash" />
        <shortcut online="true">
          <desktop />
          <menu submenu="AcSent" />
        </shortcut>
      </information>
      <security>
        <all-permissions />
      </security>
      <resources>
        <j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se" max-heap-size="128m" />
        <jar href="AcSentJnlpProgressIndicator.jar" download="progress" />
        <jar href="AcSentJnlp.jar" main="true" version="1.0" />
        <property name="jnlp.packEnabled" value="true" />
        <property name="jnlp.versionEnabled" value="true" />
      </resources>
      <application-desc name="AcSent" main-class="eu.acsent.jnlp.AcSentApplication"
           progress-class="eu.acsent.jnlp.progressindicator.CustomProgress"> 
      </application-desc>
    </jnlp>

    Hi again,
    I made some researches :
    - The link in the generated shorcuts ("C:\Windows\SysWOW64\javaws.exe -localfile -J-Djnlp.application.href=http://www.xxx.eu/AcSentVivresCrus/AcSentJnlp/AcSent.jnlp "C:\Users\Arnaud\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\46\69c1e9ee-1f252d1a") is not the same as the one I use in the command line ("C:\Program Files (x86)\Java\jre7\bin>javaws -verbose http://www.xxx.eu/AcSentVivresCrus/AcSentJnlp/AcSent.jnlp"). Is there a way in the the JNLP file to tell how to generate shortcuts (not the icon, etc., but command line options)?
    - This sample (https://blogs.oracle.com/thejavatutorials/entry/changing_the_java_web_start) displays the splash screen when I click on the the generated shortcuts (I use Windows 7). I have copied the ButtonDemo jar file and the JNLP file on my IIS web server (Windows 2008 Server), this time the splash screen does not show up when I click the generated shortcuts but always shows up when I use the command line. Can someone tell me if it is a trouble with IIS ?
    Thanks again...

  • Custom splash screen not appearing in the Dynamic created jnlp()

    Hi,
    I am not able to show my custom splash screen while starting the webstart application, instead getting the "sun webstart logo". I am dynamically generating the jnlp file using jsp (struts application). Application is working perfectly except custom splash screen. Below is my jsp which will generate the jnlp on fly. The test.gif file is in place.
    <% response.setContentType("application/x-java-jnlp-file");
      response.setHeader( "Pragma", "no-cache");
      response.setDateHeader( "Expires", 0 );%>
    <%@ page import="java.io.*" %> 
    <%String baseURL = WebUtil.webUrlParser(request.getRequestURL().toString(),request.getContextPath(),request.getServerPort());%>
    <jnlp      spec="1.0+" codebase="<%=baseURL%>/cs_jnlp">
    <information>
        <title>Launching JNLP</title>
        <vendor>Satyasai</vendor>
        <icon href="/images/test1.jpg"/>
        <homepage href="docs/help.html"/>
       <description>test</description>
            <icon kind="splash" href="images/test.gif" />
       </information>
          <security>
            <all-permissions/>
         </security>
         <resources>
       <j2se version="1.6+"/>
       <jar href="<%=baseURL%>/cs_jnlp/AppLaunch.jar"/>
      </resources>
           <application-desc main-class="Launch" >
           <%
           int roleId = (Integer)session.getAttribute(Constant.USER_TYPE);
           String sessionID=(String)request.getAttribute("SELECTION_SESSION_ID");
           String action=(String)request.getAttribute("action");
           String userID = (String)session.getAttribute(Constant.LOGIN_ID);       
           String sessionType=(String)request.getAttribute("sessionType");        
           %>
           <argument><%=sessionID%></argument>
           <argument><%=action%></argument>
           <argument><%=userID%></argument>
           <argument><%=sessionType%></argument> 
    </application-desc>
    </jnlp>If I use normal servlet - jsp using RequestDispatcher to forward request to a jsp which on fly creates jnlp, it shows the my custom splash screen. I am not very sure where is the difference. If I look at both generated jnlps they are almost one and the same. Can any one throw some insight on this.
    Thanks & Regards,
    Satyasai

    Hi Andrew,
    Thanks for your response.
    1. I have launched it number of times but no luck.
    2. I have written a jsp (using servlet + jsp no struts frame work) which will create jnlp on fly, which is showing my custom splash screen. If you refer in the initial post, it is not working with struts kind of framework. See the below jsp which shows custom splash screen. It worked without href.
    3. All jnlps are well formed and perfectly working in my development environment. For security purposes I have not shown some of the texts and logos.
    <% response.setContentType("application/x-java-jnlp-file");
      response.setHeader( "Pragma", "no-cache");
      response.setDateHeader( "Expires", 0 );%>
    <%@page import="java.util.ArrayList" %>
    <%
    String client = (String)request.getAttribute("clientLocation");
    String fileNames = (String)request.getAttribute("filenames");
    String url= (String)request.getAttribute("serverFilesLocation");
    String baseURL = "http://"+request.getLocalAddr()+":"+request.getServerPort()+request.getContextPath();
    %>
    <jnlp spec="1.0+" codebase="<%=baseURL%>/sw_jnlp"> 
      <information>
        <title>Softwares Download</title>
        <vendor>test</vendor>
        <icon href="/images/test1.jpg"/>
        <homepage href="docs/help.html"/>
       <description>Software Downloads </description>
            <icon kind="splash" href="images/logo_small.gif" />
       </information>
       <update check="timeout" policy="always"/>
          <security>
          <all-permissions/>
      </security>
      <resources>
        <j2se version="1.6+"/>        
        <jar href="mod.jar"/>  
      </resources> 
      <application-desc main-class="InstallSW">
      <argument><%=client%></argument>
      <argument><%=fileNames%></argument>
      <argument><%=url%></argument>
      </application-desc>
    </jnlp>Thanks & Regards,
    Satyasai

  • Custom Splash Screen for HTML Export?

    We're finding our customers are getting confused with the HTML screen that initally displays a single button to play our Captivate lessons. Is there any way inside Captivate to add some context to that screen?
    TIA
    Retiarius

    Hello,
    I read your postings here and I did what you proposed.
    Nevertheless the splash screen doesn't show up.
    I'm using Java 1.4.1, Web Start 1.2; the jnlp file
    looks like that:
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp codebase="http://venus/example-client/" href="example.jnlp">
    <information>
    <title>Example</title>
    <vendor>My Company/vendor>
    <description>JBoss Client</description>
    <icon href="splashscreen.jpg" kind="splash" />
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.4+"/>
    <jar href="example-client.jar" main="true"/>
    <jar href="jbosssx-client.jar"/>
    <jar href="concurrent.jar"/>
    <jar href="jboss-client.jar"/>
    <jar href="jboss-common-client.jar"/>
    <jar href="jboss-j2ee.jar"/>
    <jar href="jnp-client.jar"/>
    <jar href="log4j.jar"/>
    <jar href="datepicker.jar"/>
    <jar href="jcommon-0.7.1.jar"/>
    <jar href="jfreechart-0.9.4.jar"/>
    <jar href="xercesImpl.jar"/>
    <jar href="xml-apis.jar"/>
    <jar href="xalan.jar"/>
    <property name="java.security.auth.login.config" value="http://venus/example-client/auth.conf"/>
    </resources>
    <application-desc main-class="com.mycompany.ui.Example"/>
    </jnlp>
    any idea why webstart doesn't use the custom "splashscreen.jpg"?
    a properly splashXXXXX.jpg has been created in .javaws/cache/splashes, as well as an entry in splash.xml.
    thanx for help,
    michael

  • Urgent :::Icon in the Splash Screen of WebStart !!

    Hi !
    Java Web Start Version : 1.2
    I want to load an image in the Java Web Start's Splash Screen . I used the icon tag in the .jnlp file to do that .... but it's not getting loaded . here is the copy of my .jnlp file ....
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+" codebase="file:///D:/jdk06/bin/" href="image.jnlp">
    <information>
    <title>Test</title>
    <vendor>Self</vendor>
    <homepage href="http://www.sonic.net/~star" />
    <description>Demonstration of JNLP</description>
    <icon href="images/cuty10.jpg"/><!-- -----------------------------------------This image is getting loaded-->
    <icon kind="splash" href="icon.jpg"/><!-- ------------------------------------This image is not getting loaded-->
    <offline-allowed/>
    </information>
    <resources>
    <j2se version="1.3+" />
    <jar href="Baby.jar"/>
    </resources>
    <application-desc main-class="MyPictures" />
    </jnlp>
    only the image in the Splash screen is not getting loaded but the respective (Splash.xml) is created and also the image splashxyz.jpg is also created in the ..javaws\cache\splashes .
    Any Help Pls !!

    Thanks !
    Is there any restrictions that Splash Icons can be applied only to those JNLPs accesed via webservers ?
    ie .. if i have a JNLP and when i open it by double clicking , (ie the codebase in the JNLP file is reffered as file:///<system path> )the Splash Icon is not getting displayed . But when i try to open the same JNLP through weserver(tomcat)-http://localhost:8080/examples/jsp/demo/filename.jnlp ,(ie the codebase in the JNLP file is reffered as http://........) The Splash icon is appearing ...
    Is there any restrictions ????

  • Java6 splash screen in java webstart

    I can't get the java 6 splash screen working when running as a webstart application .
    I don't mean the splash you get while downloading but the one that's been introduced in java 6 that's showing while your app is starting.
    So far I tried adding it in the manifest file of the main jar, adding the classpath switch in the jnlp file , adding the classpath switch in the JAVAWS_VM_ARGS but none worked.
    Is there any documentation on this ? Or how should it work ?
    Bart

    Here's a very simple version:
    public class SplashScreen extends JWindow {
        public SplashScreen () {
          JLabel image = new JLabel(new ImageIcon(SplashScreen.class.getResource("icons/splash.gif")));
          this.getContentPane().add(image, null);
          this.pack();
          Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
          Dimension imageSize = image.getPreferredSize();
          this.setLocation(screenSize.width/2 - (imageSize.width/2),     screenSize.height/2 - (imageSize.height/2));
          this.setVisible(true);
    }This assumes a sub-folder in the same folder as your SplashScreen class named icons, containing a file splash.gif.
    You will need to dispose() of the SplashScreen object when you have finished with it.

  • Web start won't display splash screen

    Hi, I am using the following .jnlp file.. The problem I am having is that web start will not display the splash screen specified below. It displays the icon fine, but not the splash screen. I cannot find an answer, can anyone help?
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp spec="1.0+"
    codebase="https://mywebserver/program"
    href="https://mywebserver/progem/start.jnlp">
    <information>
    <title>My Title</title>
    <vendor>My company</vendor>
    <description></description>
    <offline-disallowed/>
    <icon href="ban1.jpg" kind="splash" />
    <icon href="icon.jpg"/>
    </information>
    <resources>
    <j2se version="1.1+"/>
    <jar href="start.jar"/>
    </resources>
    <applet-desc
    main-class="myclass"
    documentbase="start..html"
    name="Program Name"
    width="180"
    height="100">
    </applet-desc>
    </jnlp>

    I can see no reason why this wouldn't work. Can you try looking at the splash.xml file in the "splash" directory in the cache ?
    the file should contain an entry for your program, pointing to your splash file.
    /Andy

Maybe you are looking for

  • Pf-status

    hi friends,          i am using pf-status in an alv report.i want  to display kunnr name1 land1 in the first list and when i click in the sod icon set using pf-status it displays 2nd list and when i press on the vbeln it should take me to 3rd list.bu

  • When bookmark with Firefox I get an error message that Google has a problem saving the bookmark. Whay are FF bookmarks being saved to Google?

    I used to be able to save bookmarks in Firefox. Now when I save a bookmark there is an error message that Google is having a problem saving the bookmark. Does this mean saving to Google or Firefox? When I look roe the saved bookmark it is Google. Als

  • Import/Export presets list is empty

    I am using the most recent version of photoshop CC, 14.2 64-bit under Windows 7, I was optimizing the menus/shortcuts/workspaces/tools for my needs, and wanted to make a backup of my settings/presets on a flash drive to take on the go. When I go to E

  • Exit IWO10005(Profit center ) didn't work for service order change mode

    Dear Guru, I have built exit IWO10005 to substitute profit center, but it only work for the first initial profit center determination, it didn't work for the below scenario: 1) Change mode on service order 2) before service order save, change some fi

  • Iphoto automator workflow

    Hi, I'm trying to write a workflow that captures photos taken from a certain date on and and making a PDF contact sheet and finally print it. I managed to do all this, but what I would like and cant make happend, is to have also the description (or n