Freeola Internet Get Dotted Domains Gaming & Extras
Freeola Gameaday
 
Browse Chat Forums:
 Chat Forums Home Latest Message Chat Rules Chat Safety & Tips Top Posters How to Win Gameaday View the Winners List Update Your Profile See Who's Online
  Free Web Site  Free Domain Hosting  Emergency Internet  Broadband Offers
 

Premium Customer Support

count down top left count down top count down top right
0000000000000000
base count down

Visit our Support Pages E-mail a Support Request Contact Us

Get Dotted Domain Portfolio Discounts

nothing
Just lurking around? Why not join in? You could win free games just by chatting. Choose your Nickname in MyFreeola, or Sign Up Here.
 
you are here
chat line Freeola Chat Forums (72)
Chat Rooms & Users Online
Web Sites & Internet
"jnlp help!"
search
 
Login or Create Free Account
Create & Run Your Own Forum
Free Domain Name Transfers! Free Domain Name Transfers! Free Domain Name Transfers!
 
Browsing the Freeola Chat Forums...
 
After the original message, all posts and replies are shown in reverse order, with the most recent post at the top. i.e. your latest post will always appear under the original message, at the top of the first page.
 
To display oldest posts first, click the 'Flip Order - Oldest First' link below.
Close This Tip
 
Back To Threads Post a Reply  
 
 
jnlp help! There are 11 replies
Original Message posted by NotSure on 18/07/2008 at 7:46:33PM
Hi trying to launch a java application via a jnlp file ... I have upload the jar file, jnlp file and a simple call to the jnlp file from my html page. When I click on the link to launch the java application the jnlp just displays its code! Is there something missing I need to do

anyhelp welcome , thanks

the html

<a href="LottoWeb.jnlp" type="application/x-java-jnlp-file">Launch the lottochecker </a>

the jnlp

<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="http://www.gethin.ukcool.com" href="LottoWeb.jnlp">
    <information>
         <title>LottoLaunch</title>
         <vendor>Me</vendor>
         <description kind="short">LotteryChecker</description>
         <description kind="one-line">LotteryChecker</description>
         <description kind="tooltip">LotteryChecker</description>
         <homepage ref="index.html"/>
         <icon href="lotto.gif" kind="default" />
         <offline-allowed/>                           
    </information>
    <resources>
        <j2se version="1.6+" max-heap-size="512m" java-vm-args="-client -Xss128K -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=20"/>
        <jar href="LottoChecker.jar"/>
    </resources>
    <application-desc main-class="LottoChecker"/>

   
</jnlp>
 
 Replies To This Post:
 
NotSure
on 22/07/2008 at 4:32:23PM
Total Posts: 7
yes I was practising my java swing! now I got to understand class path as the application can't access the result file in the java packages. The euro tab and thunderball I will do if there is an enough interest in it.

thanks for your help.
 
Eccles
"Aargh! Broken..."
on 22/07/2008 at 2:31:35PM
Total Posts: 393
Yup, working here!
I'm guessing you're still playing with Swing and getting the Euro and Thunderball tabs working?
 
NotSure
on 22/07/2008 at 11:32:35AM
Total Posts: 7
The application now launches, so thanks for all who contributed with the htaccess file
 
NotSure
on 22/07/2008 at 9:08:06AM
Total Posts: 7
Got a bit further, the main class was incorrect ,,, now the web attempts to launch the application... I now get

The following required field is missing from the launch file: <jnlp>

so will take a look at that. Fingers cross once I resolve this it will launch... as always any tips let me know.
 
NotSure
on 22/07/2008 at 8:27:18AM
Total Posts: 7
Right tried the htaccess file as I made a mistake .. it now has the following

AddType application/x-java-jnlp-file .jnlp
AddType application/x-java-archive .jar
AddType application/x-java-archive-diff .jardiff

Now when I launch the java application the jnlp file just displays rather than launching the application?

I have on index page and it all blank apart from the following

<a href="LottoWeb.jnlp">Launch the lottochecker </a>

www.gethin.ukcool.com
 
Eccles
"Aargh! Broken..."
on 21/07/2008 at 12:00:47PM
Total Posts: 393
Are you getting that for all pages on your site or just the jnlp file? If it's all files then you'll have to remove the .htaccess changes.
Otherwise it's probably just a permissions problem and you'll need to check that the folder containing the jnlp file is set to 755 and the file itself is set to 644.
 
NotSure
on 21/07/2008 at 8:52:15AM
Total Posts: 7
The error I am getting is as followed.

ERROR 500, Problem Running a Script...

A scripting/config error prevents the server from showing this page.
 
Garin
"Devil in disguise"
on 21/07/2008 at 2:26:08AM
Total Posts: 1676
What error are you getting?
 
NotSure
on 20/07/2008 at 8:34:10AM
Total Posts: 7
Thanks for the reponses, Added a .htaccess and amendment to the .jnlp file as suggested. Now get a config/scripting error? Any advice would be most welcome or any suggestion where to read up about the config...
 
Eccles
"Aargh! Broken..."
on 19/07/2008 at 1:07:53PM
Edited: 19/7/08 13:08
Total Posts: 393
Although we won't support it, you can try adding

AddType application/x-java-jnlp-file    .jnlp
AddType application/x-java-archive-diff .jardiff

to a .htaccess file in the directory you are serving the jnlp file from.
 
Garin
"Devil in disguise"
on 18/07/2008 at 8:28:41PM
Total Posts: 1676
I'd guess its because the server doesnt know what a jnlp file is and so serving it up as plain text.
 
NotSure
on 18/07/2008 at 7:46:33PM
Total Posts: 7
Hi trying to launch a java application via a jnlp file ... I have upload the jar file, jnlp file and a simple call to the jnlp file from my html page. When I click on the link to launch the java application the jnlp just displays its code! Is there something missing I need to do

anyhelp welcome , thanks

the html

<a href="LottoWeb.jnlp" type="application/x-java-jnlp-file">Launch the lottochecker </a>

the jnlp

<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="http://www.gethin.ukcool.com" href="LottoWeb.jnlp">
    <information>
         <title>LottoLaunch</title>
         <vendor>Me</vendor>
         <description kind="short">LotteryChecker</description>
         <description kind="one-line">LotteryChecker</description>
         <description kind="tooltip">LotteryChecker</description>
         <homepage ref="index.html"/>
         <icon href="lotto.gif" kind="default" />
         <offline-allowed/>                           
    </information>
    <resources>
        <j2se version="1.6+" max-heap-size="512m" java-vm-args="-client -Xss128K -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=20"/>
        <jar href="LottoChecker.jar"/>
    </resources>
    <application-desc main-class="LottoChecker"/>

   
</jnlp>
 
 
MyFreeola Internet Settings Control Panel
Login or take a free look around.
Free Account Sign-Up
Freeola Gameaday
Today's Winner
Nickname: Hannard
Entry: Review Post
 
Fantastic FREE Unlimited Services for every freeola internet
customer in the UK!
Register Domain Names. Buy from £2.99
e.g. yourcompany.com
or just yourcompany.
OR VISIT GETDOTTED.COM