jar files opening in nokia pc suit

Status
Not open for further replies.
S

sariq

Guest
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

Broken In
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

-- No Easter Eggs here --
^^ 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

Wise Old Owl
@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!!
 
OP
S

sariq

Guest
@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

Padawan
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

Wise Old Owl
@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.
 
Status
Not open for further replies.
Top Bottom