The Open Source Physics website will be unavailable Friday evening through Saturday afternoon as electrical work occurs in the American Center of Physics server room. Down time will begin at 6PM Eastern Time on Friday. Service is expected to resume by 6PM on Saturday, July 30.

Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

User Comments on Diffraction and Interference Model: Single and ... (3)

Return to Item Detail Page
Login to comment

can someone open the source code in EJS_4.3.7_130516?

Author: lookang
Posted: June 24, 2013 at 10:57AM

i have tried opening the source code but the EJS hangs.
can someone help check if u can open or not?
i can only open the source using EJS_4.3.0_100622.

please advise what i should i do next if i want to edit it
thanks!

» reply

Re: can someone open the source code in EJS_4.3.7_130516?

Author: lookang
Posted: Jun 24, 2013 at 9:09PM

in another computer i can see the error message on the ejs console. hope it helps in the debugging of EJS_4.3.7_130516\EJS_4.3.7.

thanks!


C:\Program Files\Java\jre7/bin/java -classpath bin/comSun7.jar;bin/ejs.jar;bin/bcel.jar;bin/extensions/commons-math3-3.0.jar;bin/extensions/djep.jar;bin/extensions/model_elements/Apache/apache_numerics.jar;bin/extensions/model_elements/External/external.jar;bin/extensions/model_elements/Hardware/hardware.jar;bin/extensions/model_elements/Hardware/_utils/phidgetlibsarlab.jar;bin/extensions/model_elements/Hardware/_utils/serial.jar;bin/extensions/model_elements/InputOutput/input_output.jar;bin/extensions/model_elements/ParallelJava/parallel_ejs.jar;bin/extensions/QTJava.zip;bin/extensions/slf4j-api.jar;bin/extensions/_utils/ARElement.jar;bin/extensions/_utils/commons-cli.jar;bin/extensions/_utils/commons-logging-1.1.1.jar;bin/extensions/_utils/gstreamer-java.jar;bin/extensions/_utils/jackson-annotations-2.1.1.jar;bin/extensions/_utils/jackson-core-2.1.1.jar;bin/extensions/_utils/jackson-databind-2.1.1.jar;bin/extensions/_utils/jna.jar;bin/extensions/_utils/Loader3DS.jar;bin/extensions/_utils/LoaderAC3D.jar;bin/extensions/_utils/LoaderVRML.jar;bin/extensions/_utils/log4j-1.2.15.jar;bin/extensions/_utils/logback-classic.jar;bin/extensions/_utils/logback-core.jar;bin/locales.jar -Dcodebase=. -Dhome=C:\Documents and Settings\Temp\My Documents\Dropbox\Public\lookangEJSworkspace org.colos.ejs.osejs.Osejs -lastFile -lookAndFeel javax.swing.plaf.metal.MetalLookAndFeel -decorateWindows -screen 1
Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: [S cannot be cast to [I
at java.awt.image.DirectColorModel.getRGB(Unknown Source)
at sun.java2d.loops.OpaqueCopyAnyToArgb.Blit(Unknown Source)
at sun.java2d.loops.GraphicsPrimitive.convertFrom(Unknown Source)
at sun.java2d.loops.GraphicsPrimitive.convertFrom(Unknown Source)
at sun.java2d.loops.MaskBlit$General.MaskBlit(Unknown Source)

» reply

strangely after using ejs4.3.0 i managed to open it which become editable in ejs4.3.7

Author: lookang
Posted: June 25, 2013 at 12:17PM

managed to edit it and it is what happens after 2 days :)
enjoy!

Young Double Slit Java Applet Ejs Open Source Physics Computer Model
http://weelookang.blogspot.sg/2013/06/ejs-open-source-young-double-slit-java.html
http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=2782.0
author: andrew duffy and lookang, took some ideas from tat leong point P, Jose Ignacio Fernández Palop vcolor
original work here http://www.compadre.org/osp/document/ServeFile.cfm?ID=9988&DocID=1622&Attachment=1
many thanks to fu-kwun hwang for teaching me so many things on NTNU java forum, paco and wolfgang for open source physics toolkit :)
https://dl.dropboxusercontent.com/u/44365627/lookangEJSworkspace/export/ejs_Diffraction_Interferencewee05.jar

» reply

The OSP Network:
Open Source Physics - Tracker - EJS Modeling
Physlet Physics
Physlet Quantum Physics