JNLP

eliteel5

Member
Messages
36
Reaction score
1
Points
8
Hi all , trust all are well and in good health

I have a quick question with regards JNLP

This is a pure server enquiry so possibly for administrators only

Can this implemented on X10 web servers currently


Example code for this as follows

I did a quick search on this and found mention to this topic way back some years ago 2007 but no additional mentions made

HTML:
<!-- JNLP File for InternalFrameDemo -->
<jnlp
  spec="1.0+"
  codebase="https://docs.oracle.com/javase/tutorialJWS/samples/uiswing/InternalFrameDemoProject"
  href="InternalFrameDemo.jnlp">
  <information>
    <title>InternalFrameDemo</title>
    <vendor>The Java(tm) Tutorial</vendor>
    <homepage href="https://docs.oracle.com/javase/tutorial/uiswing/examples/components/index.html#InternalFrameDemo"/>
    <description>InternalFrameDemo</description>
    <description kind="short">A demo of using internal frames.</description>
    <offline-allowed/>
  </information>
  <resources>
    <j2se version="1.7+"/>
    <jar href="InternalFrameDemo.jar"/>
  </resources>
  <application-desc main-class="components.InternalFrameDemo"/>
</jnlp>

Thanking all for anyone who might be able to throw light on this topic
 

garrettroyce

Community Support
Community Support
Messages
5,611
Reaction score
249
Points
63
I don't see why it couldn't be implemented. I'm trying to understand it, but it looks like it works like this:

client clicks link, which is to your JNLP file (just a regular file you upload to x10)
client computer understands the link requires Java
client computer opens Java and gives it the information
client computer sees that it should download the JAR (just a regular file you upload to x10)

However, I did see that starting in 2018 Oracle has deprecated the feature, so it may not work on many client's computers:

https://en.wikipedia.org/wiki/Java_Web_Start#Deprecation
 

eliteel5

Member
Messages
36
Reaction score
1
Points
8
I don't see why it couldn't be implemented. I'm trying to understand it, but it looks like it works like this:

client clicks link, which is to your JNLP file (just a regular file you upload to x10)
client computer understands the link requires Java
client computer opens Java and gives it the information
client computer sees that it should download the JAR (just a regular file you upload to x10)

However, I did see that starting in 2018 Oracle has deprecated the feature, so it may not work on many client's computers:

https://en.wikipedia.org/wiki/Java_Web_Start#Deprecation


Hi

Thanks for getting back to me on this

I think these links below explain how this is done

I could try this on my own server back home which runs Apache and then let you know

Add the following entries to the apache httpd.conf


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

Apache will then send the correct mime-type to the browser and therefore Java will be started when the jnlp file is clicked on.

Web link for you below

1: A how to set up jnlp on apache webserver
2: Another how to with reference to setting up Java web-start on Apache
 

eliteel5

Member
Messages
36
Reaction score
1
Points
8
I don't see why it couldn't be implemented. I'm trying to understand it, but it looks like it works like this:

client clicks link, which is to your JNLP file (just a regular file you upload to x10)
client computer understands the link requires Java
client computer opens Java and gives it the information
client computer sees that it should download the JAR (just a regular file you upload to x10)

However, I did see that starting in 2018 Oracle has deprecated the feature, so it may not work on many client's computers:

https://en.wikipedia.org/wiki/Java_Web_Start#Deprecation


Hi Garrett

Ive just gone through this process this morning but unfortunately there doesn't seem to be much point in trying to do this now as they have removed Java support from Firefox and other browsers

This was really a good idea however its no longer supported and caused quite a few issues for other companies who adopted this technology with JNLP

Apparently this was connected to security issues

Sad I think

Ive been questioning to see if there was anyway round this today with other professionals in the industry but appears as though not the case unless someone can show me a work around this but as yet its looking bleak

Oracles entire Java tutorial website which is full of tutorials no longer functions with web-start


I bet they are really annoyed about this and I know I am greatly disappointed in this , how ever not much you can do is there when this happens , typical

I would think this must be connected to all the other issues currently with the internet and international issues regarding many other very dark sides of abuse of internet , communications and platform sharing which I know is a real issue and true Its also become a major political issue for which I often think is only ever largely due to wanton control , but sigh , you cant argue with these people even though we know this to be correct , completely unwarranted

Thank you anyway for your reply and continuous efforts that you have always made with help and assistance

This will have to go on hold until there is hopefully change or others re think strategy over this , which I sincerely hope some will

Have a good day
 
Last edited:
Top