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 October 21, 2008, 12:31:12 pm



Title: what is the best way to share java applets made by EJS ?
Post by: lookang on October 21, 2008, 12:31:12 pm
what is the best way to share java applets made by EJS ?

There is the JAR File which is 1.3 MB, looks powerful, can full screen, right click mouse toggle options to zoom, etc.

the web based java applets is giving me some problems when i compile them, it may not work even on my local pc.





Title: Re: what is the best way to share java applets made by EJS ?
Post by: Fu-Kwun Hwang on October 21, 2008, 05:02:14 pm
It is depends on what you want to share and how it will be used.

The applet is good for web distribution, user only need a browser and most of the browser support java applet. The most import point is security, the applet would not be able to read or write to your computer without your permission.

User need to install Java RUN Time in order to run java as an application (Click jar file to active the program).
Java application can have full access to the computer file system when it is running. (It means that java application can read and write to your computer just like ordinary executable files.
You will need to be careful if you have receive program from someone you do not know.

If your simulation also includes image or movie files, you need to add it to the jar file.
Click the image just under close window picture at the top right corner of EJS window.
When you move mouse over that image, "information about this simulation" message will show up.
Click the image and select files for the "Files required" field. This will tell EJS to include files you have selected to the jar file. So that user will be able to use it when it is running either as applet or application.


Title: Re: what is the best way to share java applets made by EJS ?
Post by: lookang on October 30, 2008, 08:30:42 am
It is depends on what you want to share and how it will be used.

The applet is good for web distribution, user only need a browser and most of the browser support java applet. The most import point is security, the applet would not be able to read or write to your computer without your permission.

User need to install Java RUN Time in order to run java as an application (Click jar file to active the program).
Java application can have full access to the computer file system when it is running. (It means that java application can read and write to your computer just like ordinary executable files.
You will need to be careful if you have receive program from someone you do not know.
Is it okay to increase the attachment size to 2048 KB ? i notice current is Maximum attachment size allowed: 1024 KB.
I want to share using the EJS generated roughly 1.3-1.5 MB jar files.
  
   
Please delete "super nerd dude" posts, think he works for spam company or "porn" sites. >:(




If your simulation also includes image or movie files, you need to add it to the jar file.
Click the image just under close window picture at the top right corner of EJS window.
When you move mouse over that image, "information about this simulation" message will show up.
Click the image and select files for the "Files required" field. This will tell EJS to include files you have selected to the jar file. So that user will be able to use it when it is running either as applet or application.
Thanks for the great tip, finally manage to add the pictures of the 2 cats in the jar files now as above.

I have added the screen capture of the button for "picture at the top right corner of EJS window"
the EJS_4.0_081004 seems to only allow adding of folder where all files are found, " users files folder
can't seems to click on to select individual files, but the folder works great!
i waited a while (5-10 sec) before testing the jar files, for your info :)


Title: Re: what is the best way to share java applets made by EJS ?
Post by: Fu-Kwun Hwang on October 31, 2008, 05:16:38 pm
The maximum attachment per message has been increased to 2048k. :-)


Title: Re: what is the best way to share java applets made by EJS ?
Post by: lookang on October 31, 2008, 09:58:16 pm
cool!
thx ;D


Title: Re: what is the best way to share java applets made by EJS ?
Post by: lookang on November 04, 2008, 01:56:46 pm
Problem:

An Error Has Occurred!
Your file is too large. The maximum attachment size allowed is 384 KB.


i uploaded a jar 1.3MB but failed.......

strange...............................please debug why :)

i await your good news ;D


Title: Re: what is the best way to share java applets made by EJS ?
Post by: Fu-Kwun Hwang on November 05, 2008, 12:55:37 pm
I increased the maximum size for attachment, but I forgot to increase the maximum size per post.
It is fixed now. The maximum size has been increase to 2048k.


Title: Re: what is the best way to share java applets made by EJS ?
Post by: aufche on November 05, 2009, 08:29:55 am
Its can be running on linux ubuntu...?
-*-


Title: Re: what is the best way to share java applets made by EJS ?
Post by: lookang on March 12, 2010, 08:27:33 am
Its can be running on linux ubuntu...?
-*-

java is cross platform, Win, Mac, Linux all should be able to run, the look of the applet may differ, but it should work :)


Title: Re: what is the best way to share java applets made by EJS ?
Post by: audriusa on July 16, 2010, 02:00:48 pm
As EJS seems open source, I would propose to check if http://Ultrastudio.org (http://Ultrastudio.org) could fit your requirements. It is public Free encyclopedia that allows user-contributed applets after the source code passes public code review. Applets are compiled on server side and all signatures stripped down, so they always run with minimal rights of unsigned applet without access to the local filesystem. The server also adjusts applet tags depending on the browser.

The site build system allows to specify "default libraries" that need not be reviewed nor downloaded separately with every applet. Maybe EJS could be one of them.


Title: Re: what is the best way to share java applets made by EJS ?
Post by: Fu-Kwun Hwang on July 16, 2010, 09:48:53 pm
You will find a checkbox  labeled as "Upload new EJS jar file" when you edit the message.
It is located at the same line as submit button (labeled as "Post")-- it is al the far right side.

You will find a button to select file from your local file folder if you ckick the check box. (similar to upload file to server).
The applet will be shown following the end of the posted message automatically.

However, the ejs source has to be saved as ".xml" (it is not support .ejs source created jar yet).


Title: what is the best way to share java applets made by EJS
Post by: Femida on April 05, 2015, 02:08:36 am
Thanks for the help in this question. I did not know it.