Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (769)
Games in Android Showcase (230)
games submitted by our members
Games in WIP (855)
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 3093 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 "" 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
Offline Riven

« JGO Overlord »

Medals: 1356
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: 123
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!

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).

Pages: [1]
  ignore  |  Print  

EgonOlsen (1572 views)
2018-06-10 19:43:48

EgonOlsen (1632 views)
2018-06-10 19:43:44

EgonOlsen (1143 views)
2018-06-10 19:43:20

DesertCoockie (1569 views)
2018-05-13 18:23:11

nelsongames (1173 views)
2018-04-24 18:15:36

nelsongames (1638 views)
2018-04-24 18:14:32

ivj94 (2395 views)
2018-03-24 14:47:39

ivj94 (1604 views)
2018-03-24 14:46:31

ivj94 (2691 views)
2018-03-24 14:43:53

Solater (882 views)
2018-03-17 05:04:08
Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20

Deployment and Packaging
by philfrei
2018-08-19 23:54:46 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‑
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!