The Artima Developer Community
Sponsored Link

Java Answers Forum
Executable jar file not recognized by 64 bit JRE

1 reply on 1 page. Most recent reply: May 7, 2008 4:35 AM by Matthias Neumair

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Aparna Nigdikar

Posts: 4
Nickname: aparnan
Registered: Feb, 2008

Executable jar file not recognized by 64 bit JRE Posted: Apr 2, 2008 7:25 AM
Reply to this message Reply
Advertisement
Hi... I have created a executable jar file. If I double click on this jar file it works fine with 32 bit JRE. But If I use 64 bit JRE, it is recognized as a jar file. If I double click on it, a window is shown to select a program for running the jar file. But it doesn't even work if I browse th java.exe or javaw.exe for running the jar file. Please tell me why 64 bit JRE does not recognizes it as a executable jar file, while it works fine with 32 bit JRE. One more thing, my JAR file always work from command prompt(java -jar jar_file) wheather I use JRE 32 or JRE 64 bit.
Thanks


Matthias Neumair

Posts: 660
Nickname: neumi
Registered: Sep, 2003

Re: Executable jar file not recognized by 64 bit JRE Posted: May 7, 2008 4:35 AM
Reply to this message Reply
Well, you more or less allready name the answer.

Problem is the Java Runtime is not integrated correctly into the windows system.

javaw of course does not work, it must be "javaw -jar" (as you allready noticed when using the command prompt)

Sadly I can't tell where exaclty where in the registry you cann assign the programs for a certain extension.

A workaround would be to create a textfile called javajar.cmd with the following content:
@start javaw.exe -jar "%1"

Place this file into your Java runtime dir and assign it to the .jar extension.

Flat View: This topic has 1 reply on 1 page
Topic: Modbus Master in Java Previous Topic   Next Topic Topic: Problem extracting text using JPedal

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use