It depends on the OS. For Windows you could set up the registry so that the "Open" command for a file with the ".jar" extension is "java -jar %1". However, APPLETS don't work that way! They get loaded when the web page that they're embedded in gets loaded (unless you plan to use the appletViewer). This is automatic, with no clicking involved. I don't really recommend making jars execute when double-clicked, though. Not all jars are executable - for example the java library jars.
Customer surveys are for companies who didn't pay proper attention to begin with.
Joined: Jan 12, 2001
hi : <u>Tim Holloway :</u> i know how the applet gets loaded but my question is different . I downloaded an exam stimulator ....... the file i downloaded was a jar file which on clicking opens an applet ( the exam stimulator ). ...... so i thought maybe this is an option to open a dowloaded applet ( which opens by clicking the jar file ).
<u>rekha joshi: </u> the name of my file is "myodbc"...... so am i suppose to write the following code : <b> jar -cvm myodbc.jar myodbc.class </b>. Tell me if this is correct . when i type this commend , i get an error ( file not found , myodbc.jar ). i hope i,am able explain what i want . thanx raghav firstname.lastname@example.org
Joined: Aug 20, 2001
Try using this code jar -cvf myodbc.jar myodbc.class. reply me back.