NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/
March 02, 2021, 03:32:55 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
   Home   Help Search Login Register  
Wisdom is to form a good attitude and a healthy lifestyle. ...Wisdom
Google Bookmarks Yahoo My Web MSN Live Netscape Del.icio.us FURL Stumble Upon Delirious Ask FaceBook

Pages: [1]   Go Down
Author Topic: EJS loading  (Read 6861 times)
0 Members and 1 Guest are viewing this topic. Click to toggle author information(expand message area).
Offline Offline

Posts: 10

Embed this message
on: April 28, 2009, 01:09:51 am » posted from:Lansdale,Pennsylvania,United States

Hello again,


I have created couple of simulations using EJS and hoping to do more. Is it legal to display the simulations in my site?
Why is it taking this long to display the simulation?
I noticed that even in your forum, simulations take quite a bit of time to display. How can we improve this?

You can see my simulations at the following location.:


There are two simulations.  'Reflection and Refraction' and Simple Pendulum. First simulation will display, but it takes a lot of time to download. Second one has trouble. I did some modifications to the html files. I need to check those again.


Fu-Kwun Hwang
Hero Member
Offline Offline

Posts: 3086

Embed this message
Reply #1 on: April 28, 2009, 07:40:31 am » posted from:Taipei,T\'ai-pei,Taiwan

We have switched to EJS 4 two months ago. There are many new features available and it also required larger jar file.
The typical size of EJS is 1.2-1.4M Byte if data analysis/video/translation... tools are all available (which is the current setting).
It will be slow if you have slow connection. It took 8-10 s to fullly load jar file for my browser.
You can remove some of the setting to reduce the file size to about 0.7-0.8M.

It took me 25-30 seconds to load your first page. The following is the error message when I load your second page:
Can not find Simple_pendulum_pkg.Simple_pendulumApplet.class。
java.lang.ClassNotFoundException: Simple_pendulum_pkg.Simple_pendulumApplet.class
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2ManagerAppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed:http://downloadanswer.com/Documents/Simple_pendulum_pkg/Simple_pendulumApplet/class.class
at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.access000(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 7 more

The jar tag in your applet is "Simple pendulum.jar" .

However, there is a space in your filename. Normally, I will create a file named as "Simple_pendulum".
Please reload your xml source "Simple pendulum.xml" , save it as "Simple_pendulum.xml" , compile it again and upload it to the server. This might solve your problem.
Please use only english alphabet ,number for your file name.  You can use underscore, but do not use " " (space) as part of file name.
Because EJS use your filename to name some of the class and variables.
I download your jar file and it is a corrupted jar. May be there are other problem!
Hero Member
Offline Offline

Posts: 1796


Embed this message
Reply #2 on: April 28, 2009, 07:55:13 am » posted from:SINGAPORE,SINGAPORE,SINGAPORE

Is it legal to display the simulations in my site?

Authors can distribute any simulation that they create using EJS, provided a reference to this fact is included, together with a link to the official Web page for EJS: http://fem.um.es/Ejs. It is not necessary to include this reference in all pages with a simulation on it of an educational unit. Including a reference for the whole set in a clearly visible place will suffice.

My thoughts:
Perhaps you should change "Created with Easy Java Simulations" to "Created with Easy Java Simulations with the link.? To help spread the use of Ejs!

In addition, it would be integrity of your character to guide you in your actions.
for example, if you use other authors source codes like Prof Hwang's,  This work is licensed under a Creative Commons Attribution 2.5 Taiwan License.

You are free:

  * to Share — to copy, distribute and transmit the work
  * to Remix — to adapt the work

Under the following conditions:

  *Attribution — You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).

This varies from author to author so need to check with authors when in doubt?

Like mine is

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Singapore License.

You are free:

  * to copy, distribute, display, and perform the work
  * to make derivative works

Under the following conditions:

  * Attribution. You must give the original author credit.

Basically i same as Prof Hwang's.

But if you are more restrictive to sharing, there are others licenses like

Creative Commons License
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 Singapore License.
« Last Edit: April 28, 2009, 08:17:22 am by lookang » Logged
Pages: [1]   Go Up
Wisdom is to form a good attitude and a healthy lifestyle. ...Wisdom
Jump to:  

Related Topics
Subject Started by Replies Views Last post
how can i use ejs to develop simulations (about constraint)
sreejat 1 14934 Last post December 20, 2005, 12:53:27 pm
by Fu-Kwun Hwang
multiple display most easy user interface
Questions related to EJS
lookang 4 9487 Last post August 23, 2007, 10:43:58 am
by lookang
Doing simulations in Maya or 3DS max??
Request for physics Simulations
Billy12 9 21132 Last post May 06, 2009, 01:42:26 pm
by quelareine
Doing simulations in blender possibly? I think...
Request for physics Simulations
Billy12 3 8160 Last post December 11, 2019, 10:21:39 am
by Mansadi
this is how to make display show in scientific format 0.00E00 like tracker
Questions related to EJS
lookang 2 6113 Last post August 11, 2010, 08:05:48 am
by lookang
Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.06 seconds with 22 queries.since 2011/06/15