Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-11-2007, 08:18 PM
Senior Member
 
Join Date: Jul 2007
Posts: 130
cruxblack will become famous soon enough
Double clicking executables jar files?
My windows xp got a little damaged a little while ago, the registered file types are a bit damaged as well, one of the damge was done to the the jar files

Im trying to find out what program used to run the jar files from the registered file types menu in XP folder options, it must have use either java or javaw just like how i usually opened it from cmd

The problem is, i tried entering java.exe as the opener, tried javaw.exe too, both from the JDK's bin, not the JRE's, but when i double click the jar file, it wont open the jar application, the manifest are okay since i tried running it in another computer and the application works, its just the opener path that are troubled

This is my JDK's bin path, the one that i type as the opener
C:\Program Files\Java\jdk1.6.0\bin

I know i must've missed something, anyone can help me?
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-13-2007, 08:11 PM
Member
 
Join Date: Aug 2007
Posts: 30
dmacvittie is on a distinguished road
Try this:
"C:\Program Files\Java\jdk1.6.0\bin\javaw.exe" -jar "%1" %*

Don.
__________________
Don MacVittie F5 Networks -
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 08-14-2007, 04:32 AM
Senior Member
 
Join Date: Jul 2007
Posts: 130
cruxblack will become famous soon enough
It worked
Thanks a lot Don
Btw, care to explain the parameter there?
I understand bout the -jar, but what does this part means?
Quote:
Originally Posted by dmacvittie
..."%1" %*
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 08-14-2007, 05:46 AM
Member
 
Join Date: Aug 2007
Posts: 30
dmacvittie is on a distinguished road
Sure thing. The %1 is used to say "the first parameter" in this case that would be the file you double-clicked on.

Don.
__________________
Don MacVittie F5 Networks -
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 08-15-2007, 05:34 AM
Senior Member
 
Join Date: Jul 2007
Posts: 130
cruxblack will become famous soon enough
"%1" are the first parameter passed?
Hmm...okay, what about the %* afterwards?
Some kinda pointer?
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to create Popup Menu with Sub Menu while right-clicking the JTree Node?? Kabiraa AWT / Swing 7 05-09-2008 09:54 AM
Calculating sin of a double value Java Tip Java Tips 0 01-13-2008 10:13 PM
Java3D: Clicking and getting coordinates? seabhcan Advanced Java 0 01-11-2008 04:46 PM
Getting smallest possible Double value Java Tip Java Tips 0 12-06-2007 04:15 PM
How to round a double? Valeriano New To Java 1 05-31-2007 05:50 PM


All times are GMT +3. The time now is 10:23 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org