|I see what you mean. I hate the Nokia application installer. I |
had experienced exactly the same problem when I used to
have a Nokia phone.
<rant>The problem is developers who make invalid
assumptions. In this case, Nokia arrogantly assumed that the
only possible use you would make of a jarfile is to install
games on your phone. You couldn't possibly be a Java
developer or someone who runs Java applications by clicking
on their jarfiles. No, there aren't people like that. Jarfiles are
phone games. Well, Nokia, open your eyes, there are many
Java developers out there who use jarfiles for much more
serious purposes than your insignificant little games.</rant>
Ok sorry about that, but saying it has made me feel better.
Now back to helping you...
Open a command prompt window using "Run as
administrator", and then type:
ftype jarfile="C:\path\to\your\javaw.exe" -jar "%1" %*
Your javaw.exe file should be somewhere under the Program
Files\Java tree, if you have installed the Java Development Kit.
Otherwise, you can probably find it in Windows\System32.
Use java.exe if you want your application to run in a console
window, or javaw.exe if it has its own window.