Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Simple to solve

 
Naren Chivukula
Ranch Hand
Posts: 577
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
igwe kalu kalu ogba
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 577
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 577
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic