File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JNLP and Web Start and the fly likes My jnlp didn't work with multipl jars in the ressource section Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "My jnlp didn Watch "My jnlp didn New topic
Author

My jnlp didn't work with multipl jars in the ressource section

olfa mechi
Greenhorn

Joined: May 20, 2011
Posts: 6
please help!

I want to integrate a game editor in my website so i used the web start .This editor is written in java and it is free . when i execute the jnlp file i get the follwing exception :

///////////////////////////////
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doGetRequestEX(Unknown Source)
at com.sun.deploy.net.DownloadEngine.isUpdateAvailable(Unknown Source)
at com.sun.deploy.net.DownloadEngine.isUpdateAvailable(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
at com.sun.javaws.LaunchDownload$DownloadTask.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
//////////////////////////////////////


and this is my jnlp:



////////////////////////////////////////
<?xml version="1.0" encoding="utf-8"?>
<!-- JNLP File for e-Adventure Editor -->
<jnlp
spec="6.0+"
codebase="http://localhost/jnlp/" href="jnlptest.jnlp">
<information>
<title>e-Adventure</title>
<vendor>e-UCM</vendor>
<homepage href=http:”/e-adventure.e-ucm.es/”>
<description>e-Adventure Demo Application</description>
<description kind="short"> The e-Adventure platform is a research project aiming to facilitate the integration of educational games and game-like simulations in educational processes in general and Virtual Learning Environments (VLE) in particular.</description>

<icon kind="shortcut" href="icon.png"/>
<icon kind="splash" href="icon.png"/>
<icon href="icon.png"/>
<offline-allowed/>

</information>

<security>
<all-permissions/>
</security>

<resources>
<j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
<jar href="eadventure-editor.jar" download="eager" main="true"/>
<jar href="jars/eadventure-common.jar"/>
<jar href="jars/activation.jar"/>
<jar href="jars/cmu_time_awb.jar"/>
<jar href="jars/cmu_us_kal.jar"/>
<jar href="jars/cmudict04.jar"/>
<jar href="jars/cmulex.jar"/>
<jar href="jars/cmutimelex.jar"/>
<jar href="jars/eadventure-comm.jar"/>
<jar href="jars/en_us.jar"/>
<jar href="jars/freetts.jar"/>
<jar href="jars/gnu-regexp-1.1.4.jar"/>
<jar href="jars/jffmpeg-1.1.0.jar"/>
<jar href="jars/jl1.0.jar"/>
<jar href="jars/jmf.jar"/>
<jar href="jars/kafenio-config.jar"/>
<jar href="jars/kafenio-icons.jar"/>
<jar href="jars/kafenio.jar"/>
<jar href="jars/mailapi.jar"/>
<jar href="jars/mp3spi1.9.4.jar"/>
<jar href="jars/plugin.jar"/>
<jar href="jars/smtp.jar"/>
<jar href="jars/tritonus_share.jar"/>
<jar href="jars/truezip-6.jar"/>

</resources>

<application-desc main-class="es.eucm.eadventure.editor.AdventureEditor"/>
</jnlp>
///////////////////////////////

The jar of editor to be executed needs other jars, files and folders .


please hwo can tell me how to integrate all those files in the jnlp and how shall me procede ?

(I signed all the jars with the same certificat)


samrat dhamale
Greenhorn

Joined: Apr 15, 2011
Posts: 11
it should work...

sign the jar on which your jar is dependent and prefix j before the new name of jar..

refer to all the dependency jars with j prefix in jnlp...
Joe Areeda
Ranch Hand

Joined: Apr 15, 2011
Posts: 294
    
    2

I'm not so sure this has anything to do with the jnlp.

the error:

java.net.ConnectException: Connection refused: connect

Suggests to me that either the server is not running, at least not on the port specified, or a firewall (including Windows software firewall) is interfering with the connection.

Joe


It's not what your program can do, it's what your users do with the program.
olfa mechi
Greenhorn

Joined: May 20, 2011
Posts: 6
that is true the server was not running
this problem is solved

thank you for you all
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: My jnlp didn't work with multipl jars in the ressource section
 
Similar Threads
JNLPException ConnectException
javax.jnlp
JNLP : Launch File Error - Could not find main-class
Run JAR file in Applet
Reference a jar