Questions? Email us:
sales@haneng.com

 

Developers FAQ:
Can I have only one HanengCharts3.jar file?

Question:
Now I have a HanengCharts3.jar file in each folder that I used HanengCharts in. Is there a way to have just one HanengCharts3.jar file?

Answer:
Yes! By modifying the APPLET tag you can have one HanengCharts3.jar file for the whole website! This is very useful when it comes time to update your HanengCharts3.jar files (e.g. when a new version is released).

Follow these easy steps:

Step 1:
Copy HanengCharts3.jar file to the root folder (the top folder) of your website. This will be the only HanengCharts3.jar file you will use.

Step 2:
Modify all your pages that contains HanengCharts. We need to append a CODEBASE argument to the APPLET tag. This CODEBASE argument will tell the browser where to find the HanengCharts3.jar file.

Before:
<APPLET CODE="HanengCharts.class" ARCHIVE="HanengCharts3.jar" WIDTH=750 HEIGHT=400>

After:
<APPLET CODE="HanengCharts.class" CODEBASE="http://www.your-domain.com/" ARCHIVE="HanengCharts3.jar" WIDTH=750 HEIGHT=400>

Remember to replace www.your-domain.com with your domain name.

If you like you can put your single HanengCharts3.jar file anywhere on your server as long as the CODEBASE argument points to the folder where it is stored.

Step 3:
Now delete all HanengCharts3.jar files (except the one in the root folder) from your server.

And you are done!

Back to the Developers Zone