Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (406)
games submitted by our members
Games in WIP (289)
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 + libgdx + Windows 7  (Read 1082 times)
0 Members and 1 Guest are viewing this topic.
Offline Noobtastic

Senior Newbie





« Posted 2011-06-06 21:48:35 »

Hey everyone,
I've been googling and searching forums, but have not found the solution to a problem I'm seeing.  Basically, I've got a simple little test-game I wrote with libgdx, and set it up to run with webstart.  This works with windows xp, linux, and even Mac OS.  It does not run on Windows 7.  In the latter case, it appears like it is going to launch (shows the java 6 popup) but then just disappears after a moment.  Very strange.  I tried running the browser on Windows 7 as admin, and fiddled with security option, no luck.

Here is the jnlp file:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+" codebase="http://empireforge.com/mazedog/" href="mazedog.jnlp">
        <information>
                <title>Jnlp Testing</title>
                <vendor>Jeff Sullins</vendor>
                <homepage href="http:empireforge.com/" />
                <description>Mazedog simple game</description>
        </information>
        <security>
                <all-permissions/>
        </security>
        <resources>
                <j2se version="1.6+" />
                <extension name="lwjgl" href="http://lwjgl.org/jnlp/extension.php" />
                <jar href="mazedog.jar"/>
                <jar href="assets.jar"/>
                <jar href="libs/gdx-backend-lwjgl-natives.jar"/>
                <jar href="libs/gdx-backend-lwjgl.jar"/>
                <jar href="libs/gdx-natives.jar"/>
                <jar href="libs/gdx.jar"/>
        </resources>
        <application-desc main-class="aStarMaze.main.DesktopLauncher" />
</jnlp>


Here are the contents of the .htaccess file on the web server:
1  
AddType application/x-java-jnlp-file .jnlp


Offline ra4king

JGO Kernel


Medals: 264
Projects: 2


I'm the King!


« Reply #1 - Posted 2011-06-06 22:05:27 »

This isn't a problem with your browser, it's a problem with your computer.

The only thing wrong I see in that JNLP file is your homepage href: you forgot to include double forward slashes after the "http:" so it would be "<homepage href="http://........" />"

EDIT: I copied the JNLP code, errors and all, and ran it on my Windows 7 machine and it works fine. So this is a problem with your machine.
Fun game btw Cheesy

Offline Noobtastic

Senior Newbie





« Reply #2 - Posted 2011-06-06 22:16:00 »

Ah, typo.  Fixed that, but no change Sad

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

Senior Newbie





« Reply #3 - Posted 2011-06-06 22:44:32 »

Just saw your edit -- great to hear that it works.  Quite puzzling as well.  I've seen the "failure" on two Win 7 machines.

Maybe it's some security thing.

Also, glad to hear you like the game.  It was really just a little mini-project to teach myself libgdx, never thought I'd show it around much Wink

Offline cylab

JGO Knight


Medals: 30



« Reply #4 - Posted 2011-06-06 22:54:17 »

Hmm, did work for me as well on 64bit Win7 with 32bit JRE 1.6.0_24. Maybe it's a personal firewall issue!?

Mathias - I Know What [you] Did Last Summer!
Offline Noobtastic

Senior Newbie





« Reply #5 - Posted 2011-06-06 22:56:00 »

Well, if it works for you guys, then I'm gonna call it good and not worry about it.  I am at work, so maybe it is some firewall thing. 

Thanks for checking it out for me!  At the very least, I got the homepage URL fix out of the exercise :p

Update:
Just had someone point out that the cert that comes from:
"http://lwjgl.org/jnlp/extension.php"
Is expired.  I wonder if that could be a factor...

Ok, but really, though, I'm going to stop worrying about. 
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars and Titan!

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

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (60 views)
2013-05-17 21:29:12

alaslipknot (69 views)
2013-05-16 21:24:48

gouessej (99 views)
2013-05-16 00:53:38

gouessej (98 views)
2013-05-16 00:17:58

theagentd (107 views)
2013-05-15 15:01:13

theagentd (98 views)
2013-05-15 15:00:54

StreetDoggy (144 views)
2013-05-14 15:56:26

kutucuk (167 views)
2013-05-12 17:10:36

kutucuk (166 views)
2013-05-12 15:36:09

UnluckyDevil (175 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.147 seconds with 20 queries.