NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/
October 18, 2017, 05:33:15 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  
"Progress, therfore, is not and accident,¡K" ..."Herbert Spencer(1820-1903, British philosopher)"
Google Bookmarks Yahoo My Web MSN Live Netscape Del.icio.us FURL Stumble Upon Delirious Ask FaceBook

Pages: [1]   Go Down
  Print  
Author Topic: Publishing the Simulation  (Read 8473 times)
0 Members and 1 Guest are viewing this topic. Click to toggle author information(expand message area).
smaharoof
Newbie
*
Offline Offline

Posts: 2

«
Embed this message
on: July 25, 2012, 12:46:53 am » posted from:Philadelphia,Pennsylvania,United States

Hello,

I have a few simulations that I need to display on a website. I used the option 'export website with applets'. The html file that was created has the typical look. But the simulation window does not show under  the slogan "The simulation's view should appear right under this line:". I can not figure out the reason why. Do you have any solution to this? Thanks in advance.

smaharoof

Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #1 on: July 25, 2012, 09:33:22 am » posted from:,,Satellite Provider

You ight want to re-install java run time.

Or unzip all the files that were created and upload as attached file so that I can check it.
Logged
smaharoof
Newbie
*
Offline Offline

Posts: 2

«
Embed this message
Reply #2 on: July 25, 2012, 06:19:31 pm » posted from:Philadelphia,Pennsylvania,United States

ok, I downloaded the latest java (jre7). Now I can see the simulation on a web page. But, now I have another problem.
When I try to run the same simulation within EJS console, it produces a compilation error as follows:

Compilation produced an error!
Generating simulation file Pend……
C:\Users\Umar\Documents\A_Sithy\SithyJava\EJS_4.1\workspace\output\users\Sithy\Pendulum.java:19: cannot access java.lang.Object
bad class file: C:\Program Files\Java\jre7\lib\rt.jar(java/lang/Object.class)
class file has wrong version 51.0, should be 49.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
public class Pendulum extends org.colos.ejs.library.AbstractModel {
  ^ 


It is caused by the new installation. How do I go about fixing this. Any help would be appreciated. I have several simulation files. I want to edit them and run them within the EJS console and eventually package it to display on a website.

Thank you for your expertise.

Sithy
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #3 on: July 25, 2012, 07:00:06 pm » posted from:,,Satellite Provider

It might be due to that your EJS was old version and you installed java with newer version.

Please go to http://www.um.es/fem/EjsWiki/Main/Download
and download latest version ejs

Then, open your files with latest version EJS. I think it might solve the problem.

Normally, I create workspace under root e.g. c:\workspace  instead under ejs installed directory.
Then, you do not need to move source file from one version to another version.
Logged
lapenkanwa
Newbie
*
Offline Offline

Posts: -6

«
Embed this message
Reply #4 on: October 01, 2012, 04:05:39 pm » posted from:Bangkok,Krung Thep,Thailand

 Grin Grin Grin
Logged
lookang
Hero Member
*****
Offline Offline

Posts: 1784


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #5 on: October 01, 2012, 07:52:57 pm » posted from:SINGAPORE,SINGAPORE,SINGAPORE

I solved this problem by reinstalling all previous versions of jre, jdk, and other java stuff.
Then install only one version of jre.
Some ejs 4.3.0-4.3.5 have this problem with version 49 instead of 51.
The latest ejs 4.3.7 should be fine
Good luck!
Logged
Pages: [1]   Go Up
  Print  
"Progress, therfore, is not and accident,¡K" ..."Herbert Spencer(1820-1903, British philosopher)"
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
Request for new simulation
Request for physics Simulations
aveek 1 7664 Last post January 21, 2009, 01:59:01 pm
by Fu-Kwun Hwang
Reflection Simulation
Request for physics Simulations
lhoots 22 38735 Last post September 01, 2012, 01:56:15 pm
by Fu-Kwun Hwang
car simulation
Physics Questions
samsooom 3 19829 Last post January 16, 2012, 05:12:42 am
by desertrose3
Basic Physics Simulation ( First Simulation)
Collaborative Community of EJS
andresgo 5 6860 Last post December 16, 2011, 01:30:18 am
by Gaven
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.066 seconds with 22 queries.since 2011/06/15