How to handle java web start (jnlp) downloading progress in a preloader?

前端 未结 2 711
鱼传尺愫
鱼传尺愫 2021-02-05 03:20

Issue

I have a preloader for my application that handles the Application-specific initialization. Now I\'m trying to extend this so that the preloader also shows the p

2条回答
  •  广开言路
    2021-02-05 03:38

    I have been fighting with this too, recently. I switched back to the (ugly) default preloader (as that one shows up nicely) until I find some more time to investigate this.

    If you enable Java Webstart full tracing

    "\bin\javaws.exe" -userConfig deployment.trace true
    "\bin\javaws.exe" -userConfig deployment.trace.level all
    

    you should see preloader messages which should give you some information about what is going on. In my case I could see a lot of messages like these

    preloader: Added pending event 2: DownloadEvent[type=load,loaded=0, total=62791, percent=0]
    

    indicating that the custom preloader hasn't been verified/started yet but download events were already coming in.

    What happens if you switch to ?

    EDIT

    This is my test JNLP. Seems like you're missing to specify the JavaFX runtime resource?

    
    
      
        HelloWorldFX
        Unknown
        HelloWorldFX
        
      
      
            
        
      
        
        
        
      
      
      
    
    

提交回复
热议问题