Author Topic: Vernier Caliper and Micrometer with zero error options  (Read 117698 times)

babylioness

  • Newbie
  • *
  • Posts: 2
Re: How to solve download problem and associate jar file to java program
« Reply #45 on: November 30, 2009, 11:28:33 pm »
I open the folder users_ntnu_fkh_ but there is not a caliper.jar file in this destination. There is a folder called caliper_pkg. This folder contains 5 CLASS files (caliper, caliperApplet, caliperSimulation, caliperview$1, and caliperview). A file called caliper that is a XML document and a file called caliper_intro 1 which is a HTML document. I do not see the .jar file.

The download is a EJS jar file ejs_users_ntnu_fkh_caliper.jar (1305.7kB).
U need to associate the file type to jar ?
Do not use any zip program to unzip unless that is what u want, like to extract the xml source which i do sometimes.

watch this video may help http://www.youtube.com/watch?v=b4jOQcXu_v8

around 2:48 :)

<object width="560" height="340"><param name="movie" value="http://www.youtube.com/v/b4jOQcXu_v8&hl=en&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/b4jOQcXu_v8&hl=en&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed></object>

Hi...

  I also faced similar problem. It seems that the downloaded file is a zip folder with many files inside. I cannot seem to associate it with jar file. How do I do that? I do not know which file(s) inside the folder to open?

Thanks in advance!

Fu-Kwun Hwang

  • Administrator
  • Hero Member
  • *****
  • Posts: 3062
    • Enjoy the fun of physics with simulations
How to view downloaded simulations: ZIP/JAR files
« Reply #46 on: November 30, 2009, 11:52:09 pm »
There are two different types of downloaded file at this website.
1. For those simulations under "jdk1.0.2 simulations" -- simulations I have created before 2001.
  The download file is ZIP file. You should unzip the file and open xxx.html file (where xxx ussally is the same as the filename of the ZIP file).

2. For those simulations under "Easy java simulation" -- simulations I have created since 2001-.
  The download file is JAR file. Normally, you can double click the JAR file to run the simulation as a java program (application).
  However, your computer should support java (i.e. installed JAVA RUN TIME or JAVA SDK).
 However, if you have installed some UNZIP program, e.g. WINRAR ...etc
 Those program might have set JAR program to be opened by UNZIP program,
  so window file manager open the JAR file as ZIP file ,
  then you would not be able to run it (because you have associate JAR file to UNZIP program).

You need to change the association back to JAVA
The easiest way is to download the latest java run time and install it again
 (or you can change the association by yourself if you know how to do it.)

babylioness

  • Newbie
  • *
  • Posts: 2
Re: How to view downloaded simulations: ZIP/JAR files
« Reply #47 on: December 03, 2009, 11:19:17 am »
There are two different types of downloaded file at this website.
1. For those simulations under "jdk1.0.2 simulations" -- simulations I have created before 2001.
  The download file is ZIP file. You should unzip the file and open xxx.html file (where xxx ussally is the same as the filename of the ZIP file).

2. For those simulations under "Easy java simulation" -- simulations I have created since 2001-.
  The download file is JAR file. Normally, you can double click the JAR file to run the simulation as a java program (application).
  However, your computer should support java (i.e. installed JAVA RUN TIME or JAVA SDK).
 However, if you have installed some UNZIP program, e.g. WINRAR ...etc
 Those program might have set JAR program to be opened by UNZIP program,
  so window file manager open the JAR file as ZIP file ,
  then you would not be able to run it (because you have associate JAR file to UNZIP program).

You need to change the association back to JAVA
The easiest way is to download the latest java run time and install it again
 (or you can change the association by yourself if you know how to do it.)


Hi... Thanks! I think I managed to get it now... Basically I change the file extension from ntnujavazip to ntnujava.jar. Then I double click it and manage to open the java file. =) Thanks a million for the clear explanation!


Fu-Kwun Hwang

  • Administrator
  • Hero Member
  • *****
  • Posts: 3062
    • Enjoy the fun of physics with simulations
Re: Re: How to view downloaded simulations: ZIP/JAR files
« Reply #48 on: December 03, 2009, 02:12:08 pm »
Could you tell me the URL where you download the above file?

The program which process the download is ntnujavazip.php
However, The extension of the file you have received should be either .zip or .jar