NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/

Easy Java Simulations (2001- ) => Questions related to EJS => Topic started by: lookang on January 20, 2009, 08:57:17 pm



Title: why export to web based applet does not work but work on local pc?
Post by: lookang on January 20, 2009, 08:57:17 pm
strangely EJS_4.1_090115 export into web applet after uploaded to a server does not load corectly, even though it works if i run from my local pc.


please take a look at my web
http://home.phy.ntnu.edu.tw/~lookang/EJS_4.1_090115/

i export as a common library but the web pages does not load correctly?

any tips how to make the web exported applet worked?

cannot be go into each simulation html to change the codebase = http://home.phy.ntnu.edu.tw/~lookang/EJS_4.1_090115/ right?

what are your settings when u export?

thanks!


Title: Re: why export to web based applet does not work but work on local pc?
Post by: Fu-Kwun Hwang on January 20, 2009, 09:01:57 pm
Please indicated which one has problem.
I check out the following file:
http://home.phy.ntnu.edu.tw/~lookang/EJS_4.1_090115/Collision1Dwee_Simulation.html
It look fine to me.


Title: Re: why export to web based applet does not work but work on local pc?
Post by: lookang on January 20, 2009, 09:27:43 pm
strange it can work on windows laptop.

i don't know what happen, but i seem to have java problem sometimes on computers.

 
what do you recommend?

uninstall all java and install again?



Title: Re: why export to web based applet does not work but work on local pc?
Post by: Fu-Kwun Hwang on January 20, 2009, 10:33:17 pm
Is it possible that one of your computer is low on memory?
Check out java console and look for error message.
I need more information to help.


Title: Re: why export to web based applet does not work but work on local pc?
Post by: lookang on February 01, 2009, 01:10:20 pm
http://www.um.es/fem/EjsWiki/index.php/FeedbackEn/00013

    Yes. I have experienced the same problem. It must be a problem of the Mac implementation of Java.

The way I solve this is by using the new capability (in recent versions of EJS) to generate HTML files that use a self-contained JAR file for each simulation.
Then, the simulations load correctly as applets also on Macs.


Think i need  self-contained JAR file for each simulation instead of common library, my applets are not loading on MACs.
will try soon