Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (120)
games submitted by our members
Games in WIP (577)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  No progress bar showing when using JAVA web start (JNLP)  (Read 1526 times)
0 Members and 1 Guest are viewing this topic.
Offline sloesp

Senior Newbie





« Posted 2009-10-24 16:55:00 »

Hi all,

I have the problem that when I execute my JNLP file, there is no progress bar showing. The only thing I see is an indication of the amount of time remaining, and that thing doesn't know what it's saying. The game itself runs fine BTW.

I have about 15 JAR files that are loaded before the game is run, and have a total size of 20MB. The main JAR file is 0.2MB in size. This is annoying because users might think the application has locked up, and stop to bother.

For instance when running "http://www.cokeandcode.com/spaceinvaders104/si104.jnlp" from Kevin Glass, there is a progress bar, where also more than 1 JAR is used. My JNLP is very basic and does contain exotic stuff.

On another forum someone has said that this has been happening since JAVA 1.6, and the progress bar now only shows for the main JAR file. I don't like to put all libraries and other music/sfx files in to one JAR, are there any other solutions? Can this be related to the server on which the files are located?

Many thanks,
Regards Chris
Online Riven
« League of Dukes »

JGO Overlord


Medals: 817
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #1 - Posted 2009-10-24 17:09:27 »

Have you actually made a very big JAR (even if it's filly with random stuff) and see whether a progressbar is visible?

Maybe there is something wrong with the HTTP server (maybe you wrote it yourself?) and the HTTP header 'Content-Length' is not set.

If this is truely a regression in Java 1.6... well, just as you thought things couldn't get much worse, they proved us wrong!

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 78
Projects: 15


★★★★★


« Reply #2 - Posted 2009-10-24 17:13:10 »

I've had similar issues in the past, its mostly been due to the server where the files are stored.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline sloesp

Senior Newbie





« Reply #3 - Posted 2009-10-24 18:27:09 »

Thanks for the quick feedback!

What I will first try to do, is to put the stuff on another server.

I am just using a server from a company, so there is not much I can change on that side. But I have another location where I could place the files, but that one doesn't support setting MIME types. But it might work better with the progress bar. I will let you know if that works!

Chris
Offline sloesp

Senior Newbie





« Reply #4 - Posted 2009-10-24 18:35:32 »

It works! Thanks a lot! Cheesy

So now I am loading the JNLP from the server that supports MIME types and loading all JAR files from the other server (which suddenly makes the progress bar work perfectly).

Regards,
Chris
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Longarmx (52 views)
2014-10-17 03:59:02

Norakomi (44 views)
2014-10-16 15:22:06

Norakomi (34 views)
2014-10-16 15:20:20

lcass (38 views)
2014-10-15 16:18:58

TehJavaDev (68 views)
2014-10-14 00:39:48

TehJavaDev (68 views)
2014-10-14 00:35:47

TehJavaDev (60 views)
2014-10-14 00:32:37

BurntPizza (73 views)
2014-10-11 23:24:42

BurntPizza (45 views)
2014-10-11 23:10:45

BurntPizza (87 views)
2014-10-11 22:30:10
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!