Language
Navigation
Google Search
 
 
What is jnlp
JNLP(Java Network Launch Protocol) is an XML-based technology for launching Java executables over the Web. In 100town.com When you had created one scene, we will help you to create one file which has a suffix of ".jnlp". You can put this file in your own web portal just as we had done. (http://100town.com/base/cyber.jnlp)
When visitor visits this file, he or she will see the scene you just created.
 

For advanced users here is some knowledge you may be interested in.

One major advantage of the way “JNLP” over the way of Applet is that by using JNLP configuration file, developers have more options in setting JVM parameters. For example, for an applet, the memory limitation is about 70M or so (Not sure about the exact number); the version of JVM is not optional, but in recent years sun seems to acquiesce in multiple JDK versions installation in end users’ computer to keep the promise of “backwards compatibility”; the dynamically link library is one big obstacle when some developers try to apply some advanced techniques in an applet.

 

JNLP didn’t have these limitations as long as developers comply with sun’s standard to write, compile and pack the code. In fact it is just running like a normal java application.

In one standard jnlp file the following line might be seen:

<j2se href="http://java.sun.com/products/autodl/j2se" version="1.5+"  initial-heap-size="64M" max-heap-size="384M"/>

Here the developer can specify the JVM version and the memory setting.

JNLP has other advantages which can both benefit developers and end-users. If you are interested about this topic, you can get more information from java.sun.com.

 

 

In 100town’s jnlp file, the code is as following:

 


<?xml version="1.0" encoding="utf-8"?>
<jnlp codebase="http://100town.com/base/">
 <information>
  <title>100town.com</title>
  <vendor>100town.com</vendor>
  <homepage href="http://100town.com/"/>
  <description>100town.com</description>
  <description kind="short">Cyberland build on java platform.</description>
  <offline-allowed/>
 </information>
  <resources>
   <j2se href="http://java.sun.com/products/autodl/j2se" version="1.5+" initial-heap-size="128M" max-heap-size="384M" />
   <property name="sun.java2d.noddraw" value="true"/>
   <jar href="cyber.jar" main="true"/>
   <jar href="colladadom1.4.1.jar" main="false" download="lazy"/>
   <jar href="colladaParser.jar" main="false" download="lazy"/>
   <jar href="colladart.jar" main="false" download="lazy"/>
   <jar href="clo3d.jar" main="false" download="lazy"/>
   <extension name="jogl" href="http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jnlp" />
  </resources>
<security>
 <all-permissions/>
</security>
 <application-desc main-class="cl.CL">
  <argument>-p</argument>
  <argument>cl.sh</argument>
 
  <argument>-w</argument>
  <argument>600</argument>
  <argument>-h</argument>
  <argument>550</argument>
 </application-desc>
</jnlp>

 

In the code,

  <argument>-p</argument>

   <argument>cl.sh</argument>

Determines which scene shall the application enter.

 We provide facilities helping you to embed our application into your web pages. You can visit our Embed DIY page to have a try.

 

Useful Links

 

Java Web Start Technology at java.sun.com

 

Documentation of Java Web  Start

 

 

 

BackPreviousNext

Average (0 Votes)