DIGIT-ARC read-only archive · snapshot: July 23, 2026

jar files opening in nokia pc suit

8 posts · originally from https://geek.digit.in/community/threads/jar-files-opening-in-nokia-pc-suit.39370/

S
sariq Original post #1
Oct 23, 2006 at 12:09 PM
earlier i was using jav5 which is a java application with .jar extension. it was opening with double clicking it. then i installed Nokia PC suit its icon changed to nokia application icon (4 squares), now when i doubleclick it it opens with Nokia Application installer and goes to PC suit.

i can still run it from command prompt by browsing to jave5 directory and using command
Code:
java -jar jave5.jar
is there any way to open it by doubleclicking, without uninstalling nokia PC suit?
Shikher_neo
Oct 23, 2006 at 9:43 PM
Well Sariq it is simple!
Right click on the file , select Properties and then in the Open With Segment,Select the program that you want your file to open with(most probably Win Zip or RAR)and click on apply.Done!
Please reply me at shikhergupta@yahoo.co.in telling whether your problem was solved.
hemant_mathur
Oct 23, 2006 at 10:32 PM
^^ Why do u want to be replied on ur e-mail ?? Hope not for spam reasons. I say dont reply on his mail address instead reply here only so that others can know if the solution worked properly or not.
JGuru
JGuru #4
Oct 25, 2006 at 12:47 AM
@Sariq, Follow this procedure to execute JAR file, just by double-clicking:

From the Explorer menu 'View'->'Folder Options'

In the Folder Options dialog click on tab 'File Types'

Here scroll down & select the JAR file, Click on the 'Edit' button.

This presents a dialog box, Here under 'Actions', select "Open with Nokia PC suite"
Now click on 'Edit' button. This presents a dialog box.

Here under "Application used to perform Action"

Type the 'Javaw path' like this : "C:\Progra~1\Java\jdk1.5.0\bin\javaw.exe" -jar %1

Click on 'OK' button. This makes changes to the Registry. Also solves your problem!!
S
sariq #5
Oct 26, 2006 at 1:46 PM
@JGuru : thanks, earlier i thought you are the Guru of Only Linux :)

can anybody explain why -jar is required in applivcation name. i was earlier trying C:\Progra~1\Java\jdk1.5.0\bin\javaw.exe and it was giving error like "function main not found"
aadipa
aadipa #6
Oct 28, 2006 at 12:39 PM
without -jar option, it will look for a class file.
with -jar option, it will look in menifest for startup class file inside given jar file.
JGuru
JGuru #7
Oct 28, 2006 at 4:38 PM
@Sariq, The -jar option is necessary for executing the JAR files. Without it it will look
for .class file!! With the -jar option, it will open up the JAR file, look into the manifest
for startup class file & load the class file to execute the JAR file. JAR files use the
same algorithm like ZIP file. So a JAR file can be compressed also.
@Aadipa, is also correct.
Vishal Gupta
Oct 28, 2006 at 4:41 PM
sariq said:
@JGuru : thanks, earlier i thought you are the Guru of Only Linux :)
JGuru => Java Guru :D