NextNext Page Arrow

MyPhysicsLab – Help and FAQ

Free Source Code

The Java source code for the MyPhysicsLab applet is available at www.MyPhysicsLab.com/source/. You should be able to download individual files there by right-clicking on a file. You can also try accessing that directory by anonymous ftp at ftp://www.MyPhysicsLab.com/source/.

The source code is covered by the GNU General Public License. Using the GNU GPL ensures that all subsequent improved versions will be free software. Here free means freedom rather than "no cost".

I would like to hear from anyone downloading, using, or improving the source code. Send me a note about what your interests are with the code. I would also appreciate if you could provide a link to www.MyPhysicsLab.com if you use the source code on your website or at your school.

Simplified Source Code

A simplified text-only version of the source code suitable for students to experiment with is available.

Displaying Simulations Off-line

Its easy to display the simulations when not connected to the internet. First download the Lab.jar file. After downloading the Lab.jar file, just double-click it. If Java is installed, the simulations will start running. There is an additional menu item that lets you pick which simulation to run.

If double-clicking Lab.jar doesn't work (and you are sure that Java is installed) try typing at your command line:
    java -jar Lab.jar

If you also want the web pages that go with the applet, you can download a copy of this website onto your computer for display off-line. It is accessible via anonymous ftp. Here are the steps to take:
  1. Establish an ftp connection to ftp://www.myphysicslab.com.
  2. Copy the files Lab.jar (contains the Java applet) and stylesheet2.css (used by all the .html files)
  3. Copy whichever of the .html files you want.
  4. Copy the /images/ subdirectory if desired. The images are not used by the Java applet, they are only needed for images appearing in .html files.
  5. From within your browser, open the desired .html file on your hard disk.

Changing Size of Display

If you need a larger display to fill the screen for a presentation, you should follow the instructions above to get a copy onto your local hard disk. If you are double-clicking the Lab.jar file, then you can simply resize the window as desired.

If you have copied the .html files, then use a text editor to modify the .html file that shows the simulation of interest. The line to modify will be near the beginning and look something like this:
   <applet code = "com.myphysicslab.simlab.Lab.class" name="Lab" archive="Lab.jar"
   codebase="." width=500 height=300>
You can change the width and height to whatever you need. Then save the file and open it with your browser.