Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (499)
Games in Android Showcase (118)
games submitted by our members
Games in WIP (567)
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  
  Webstart Configuration  (Read 1770 times)
0 Members and 1 Guest are viewing this topic.
Offline firebane

Senior Newbie




My Kung Fu is better than his Kung Fu


« Posted 2005-07-14 02:25:19 »

Hi,

Im currently working on a project which we wish to distribute using Java WebStart. Unfortunately, we are discovering that a large number of users do not have Java Webstart properly configure (both on Windows and Linux). Does anybody know of a good webpage I can point my users to they can fix their webstart configuration. Most of my users are pretty computer savy, but I don't want to write a WebStart guide if one already exists.

Thanks,

Alex
Offline zero

Junior Member





« Reply #1 - Posted 2005-07-14 02:35:40 »

I'm just curious, about what kind of configurations you are talking about?
The only thing I have changed from the defaults is that webstart calls firefox instead of mozilla, which of course isn't really needed  Roll Eyes
Offline firebane

Senior Newbie




My Kung Fu is better than his Kung Fu


« Reply #2 - Posted 2005-07-15 14:56:59 »

Me bad, didn't explain myself properly.

It's not Webstart that's not properly configured, it's their browser. So the proper question I should have asked is : Does anybody know of a good resource that will allow people to configure their browser to Webstart starts properly. In my experience, MacOs X is the only OS i've seen where every browser is configured correctly to use Webstart by default. Under Windows, Explorer is usually ok, but I've had to configure Firefox in the pass. With Linux, the browser always needs to be reconfigured.

Alex
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline zero

Junior Member





« Reply #3 - Posted 2005-07-17 16:43:57 »

The problem probably is mime-type based.


First, aussure your webserver sends the right mime-type for jnlp files:

Using apache add the follwing to the httpd.conf file:
AddType application/x-java-jnlp-file .JNLP

If you have no access to server-configuration files, but can use PHP or JSP, one of the follwong hacks should help:

1. PHP-based: Rename the .jnlp file to .php and add the following at the top:
<?php header("Content-type: application/x-java-jnlp-file");
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";?>


2. JSP-Baed: Rename the .jnlp file to .jsp and add the following at the top:
<%@ page contentType="application/x-java-jnlp-file" %>


Configure the MIME-Type on the client machine:

This is done for IE automaticly (and also probably for MacOS X - I don't know  Roll Eyes)
In other browsers like Mozilla or KDE's Konqueror you can set them manually in the preferences. Simply add x-java-jnlp-file to the application group using the .JNLP file asociation with the JavaWebstart executable (javaws[.exe]) in the $JRE_HOME/bin directory.
Firefox doens't offer this setup, but just select open with (instead of save as)  and search for javaws[.exe] with the 'Do this automatically for files like this from now on' option checked.


Hope that helps
- Michael

Offline c_lilian

Senior Member


Projects: 1


Java games will probably rock someday...


« Reply #4 - Posted 2005-07-18 08:00:31 »

Be aware of the safari browser (mac os) that doesn't recognizes a .php file as of the jnlp type even with correct mime type (better stick to .jnlp and associate it with php engine on your .htaccess file)

Lilian

Offline Daire Quinlan

Junior Member





« Reply #5 - Posted 2005-08-07 11:33:28 »

Be aware of the safari browser (mac os) that doesn't recognizes a .php file as of the jnlp type even with correct mime type (better stick to .jnlp and associate it with php engine on your .htaccess file)
Lilian

Really ? And thats the default Mac browser ? thats pretty annoying. I'm doing a similar thing with my JNLP file. For ASP, the syntax is almost the same as the above, if anyone is interested :
<%Response.ContentType="application/x-java-jnlp-file"%>

I -have- to do this, I contacted my (paid !) hosting service when I discovered that JNLP wasn't set up as a MIME type on the server, and they actually just refused to do it ! Well actually first I had to explain to them what a JNLP file actually IS. Apparently it was -ahem- too much hassle -ahem- I suppose you gets what you pays for in that respect, cheapest local hosting service that allows scripting etc. in Dublin. Wouldn't recommend it to anyone else though.

D.
Offline swpalmer

JGO Coder


Exp: 12 years


Where's the Kaboom?


« Reply #6 - Posted 2005-08-08 04:21:32 »

Be aware of the safari browser (mac os) that doesn't recognizes a .php file as of the jnlp type even with correct mime type (better stick to .jnlp and associate it with php engine on your .htaccess file)
Lilian

Really ?
Yes.
Quote
And thats the default Mac browser ?
Yes.
Quote
thats pretty annoying.
Yes.  Please file a bug with Apple.  http://bugreporter.apple.com/
(free) registration required.

Offline c_lilian

Senior Member


Projects: 1


Java games will probably rock someday...


« Reply #7 - Posted 2005-08-09 14:55:15 »

Good news, I've tried again the .php extension with safari and now it recognizes the JNLP mime type Grin (in fact it changes the file extension from .php to .jnlp as it can be seen from the download dialog...).

Don't know since when it works, but it must have been packed with a recent os update.

This is on OS X 10.3, haven't tried tiger yet.

Lilian

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.

Pippogeek (37 views)
2014-09-24 16:13:29

Pippogeek (29 views)
2014-09-24 16:12:22

Pippogeek (18 views)
2014-09-24 16:12:06

Grunnt (42 views)
2014-09-23 14:38:19

radar3301 (24 views)
2014-09-21 23:33:17

BurntPizza (61 views)
2014-09-21 02:42:18

BurntPizza (30 views)
2014-09-21 01:30:30

moogie (36 views)
2014-09-21 00:26:15

UprightPath (49 views)
2014-09-20 20:14:06

BurntPizza (52 views)
2014-09-19 03:14:18
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

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!