This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JNLP and Web Start and the fly likes Simple to solve Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Simple to solve " Watch "Simple to solve " New topic
Author

Simple to solve

Naren Chivukula
Ranch Hand

Joined: Feb 03, 2004
Posts: 576

Hi,

Here is the simple problem but I don't have solution to it.

I have a small application which should be run using Java Web Start. I'm using Tomcat4. I copied .jnlp, .jar(application jar file) in tomcat's webapps/ROOT folder. When I invoke .jnlp file, I'm getting the following message in General tab of 'Java Web Start - Download Error' window.

-----------------------
An error occurred while launching/running the application.

Title: JavaWebStart JTable Application
Vendor: Narendranath
Category: Download Error

The application has requested a version of the Java 2 platform (JRE) that is currently not locally installed. Java Web Start was unable to automatically download and install the requested version. The JRE version must be installed manually.

Error Code 11 (11 Could not locate requested version) returned from server when accessing resource: (http://java.sun.com/products/autodl/j2se, 1.4.2)
--------------------------

But I have J2SE1.4.2 installed on my machine and I could run other downloaded java web start applications at the same time. How can this problem be solved? Please suggest me any solution.

Thanks in advance,
Narendranath


Cheers,
Naren
(OCEEJBD6, SCWCD5, SCDJWS, SCJP1.4 and Oracle SQL 1Z0-051)
igwe kalu kalu ogba
Ranch Hand

Joined: Feb 03, 2005
Posts: 133
I'm not sure if this will work, but check in your jnlp file, look at tag
<j2se version=, the value of the version attribute could be 1.5+ or something similar which may be higher than your current jre version.So you may change it to 1.3+ or 1.4+ depending on your jre version. Also, check the jnlp tag

<jnlp
spec=

You can change the value of spec attribute to "1.0+"

hope it helps but maybe it won't
Naren Chivukula
Ranch Hand

Joined: Feb 03, 2004
Posts: 576

Hi,

Thanks for giving me a partial solution. I could overcome with that exception. Here is the newer one coming.


---------------
An error occurred while launching/running the application.

Title: JavaWebStart JTable Application
Vendor: Narendranath
Category: Download Error

More than one certificate used to sign resource: http://localhost:8080/javawebstartapplication1.jar
----------------

Actually I signed the javawebstartapplication.jar two times (as I don't know) with two different keystore names. Now I changed the jar file's to javawebstartapplication1.jar and again signed it as if a newer one (at the same time changed the jar file in .JNLP file). Now, I'm getting the problem though I signed the newer one for only one time. Can you tell me how to unsign all the jar files? or any other solution?

Thanks in advance,
Narendranath.
Naren Chivukula
Ranch Hand

Joined: Feb 03, 2004
Posts: 576

Hi,

I could able to resolve the above problem by myself.

My jar file is self-signed and verified. But I could not able to open the self-signed application in java web start. How can I open my application? Is it required to make other certifications for this? Really I'm disgusted in my trial to run java web start application.


Regards,
Narendranath
igwe kalu kalu ogba
Ranch Hand

Joined: Feb 03, 2005
Posts: 133
mmm, what kind of error does it come up with? Sometimes in java web start, the java web start application can hang at starting application. So you might try clicking on the jnlp link again and then see what happens.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Simple to solve
 
Similar Threads
Java Web Start
problem in running jnlp application in mac
Help to open jnlp application in Mac OS X
JNLP and Java Web Start
Could not find main class - JNLP