NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/
December 15, 2017, 01:17:33 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
"Make priority, take action and start now." ...Wisdom
Google Bookmarks Yahoo My Web MSN Live Netscape Del.icio.us FURL Stumble Upon Delirious Ask FaceBook

Pages: [1]   Go Down
  Print  
Author Topic: what is the best way to share java applets made by EJS ?  (Read 12542 times)
0 Members and 1 Guest are viewing this topic. Click to toggle author information(expand message area).
lookang
Hero Member
*****
Offline Offline

Posts: 1784


http://weelookang.blogspot.com


WWW
«
Embed this message
on: October 21, 2008, 12:31:12 pm » posted from:Singapore,,Singapore

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.



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

Posts: 3080



WWW
«
Embed this message
Reply #1 on: October 21, 2008, 05:02:14 pm » posted from:Taipei,T'ai-pei,Taiwan

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.
Logged
lookang
Hero Member
*****
Offline Offline

Posts: 1784


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #2 on: October 30, 2008, 08:30:42 am » posted from:Singapore,,Singapore

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. Angry




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 Smiley
« Last Edit: October 30, 2008, 09:23:11 am by lookang » Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #3 on: October 31, 2008, 05:16:38 pm » posted from:Taipei,T'ai-pei,Taiwan

The maximum attachment per message has been increased to 2048k. :-)
Logged
lookang
Hero Member
*****
Offline Offline

Posts: 1784


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #4 on: October 31, 2008, 09:58:16 pm » posted from:Mountain View,California,United States

cool!
thx Grin
Logged
lookang
Hero Member
*****
Offline Offline

Posts: 1784


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #5 on: November 04, 2008, 01:56:46 pm » posted from:SINGAPORE,SINGAPORE,SINGAPORE

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 Smiley

i await your good news Grin
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #6 on: November 05, 2008, 12:55:37 pm » posted from:Taipei,T'ai-pei,Taiwan

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.
Logged
aufche
watchlist
Newbie
*
Offline Offline

Posts: 8



«
Embed this message
Reply #7 on: November 05, 2009, 08:29:55 am » posted from:Jakarta,Jakarta Raya,Indonesia

Its can be running on linux ubuntu...?
-*-
Logged
lookang
Hero Member
*****
Offline Offline

Posts: 1784


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #8 on: March 12, 2010, 08:27:33 am » posted from:SINGAPORE,SINGAPORE,SINGAPORE

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 Smiley
Logged
audriusa
watchlist
Newbie
*
Offline Offline

Posts: 1

«
Embed this message
Reply #9 on: July 16, 2010, 02:00:48 pm » posted from:Zürich,Zurich,Switzerland

As EJS seems open source, I would propose to check if 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.
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #10 on: July 16, 2010, 09:48:53 pm » posted from:Taipei,T\'ai-pei,Taiwan

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).
Logged
Femida
Newbie
*
Offline Offline

Posts: 0

«
Embed this message
Reply #11 on: April 05, 2015, 02:08:36 am » posted from:,,Satellite Provider

Thanks for the help in this question. I did not know it.
Logged
Pages: [1]   Go Up
  Print  
"Make priority, take action and start now." ...Wisdom
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
Java applets
Wave
tyree 1 25338 Last post March 19, 2004, 07:29:11 am
by Fu-Kwun Hwang
Any idea when iphone can support java applets in this forum ?
Information and Download
lookang 2 18177 Last post July 21, 2011, 01:28:10 pm
by dennis77
Java Applets for Physics Education
Misc
andrewmoquin 2 9089 Last post October 08, 2009, 04:22:30 pm
by lookang
Physlets: Physics Applets, are small flexible Java applets designed for science
Physics related resources
Fu-Kwun Hwang 0 4013 Last post October 02, 2009, 05:11:21 pm
by Fu-Kwun Hwang
I was inspired to write this down and i wanted to share with everyone :)
Comment about this web site!
lookang 3 6457 Last post August 02, 2011, 06:29:11 am
by egabev
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.063 seconds with 23 queries.since 2011/06/15