Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Executing JARs

 
Peter Sorotokin
Ranch Hand
Posts: 36
1
Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have a Java jar file that when i click on it in Win XP , it run without any problem . Recently i installed winrar program and it associated .jar extension with itself . I know how to change this association in WinXP but i don't know what executable file of JRE should obtain this association . There are some executables in JRE and JDK and i don't know which of them should obtain this association for executing JARs . Please tell me .
Thanks
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Associate with java.exe to get a console when you run the jar.
Associate with javaw.exe for no console (This is the default)
 
Darryl Burke
Bartender
Posts: 5125
11
Java Netbeans IDE Opera
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The default file association for "Open" isAdjust the directory path for your bin directory.
 
Peter Sorotokin
Ranch Hand
Posts: 36
1
Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks
Is there another way to produce executable files in Java that could be run by one click in Windows XP ?
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One click: No*
Double click - Yes

*Even your native applications are launched via double click. Having something which launches via single click will be odd
 
Darryl Burke
Bartender
Posts: 5125
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maneesh Godbole wrote:One click: No*
Double click - Yes

*Even your native applications are launched via double click. Having something which launches via single click will be odd

There's a Windows setting for that.
 
Randall Twede
Ranch Hand
Posts: 4363
2
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am amazed you remembered that Darryl! when i first learned windows i read that and didn't like the idea.
this might help
 
Darryl Burke
Bartender
Posts: 5125
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've never liked the point-to-select myself, but I had a close colleague who maintained that setting, and sometimes I had worked at his computer. It was a pain.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic