Dear Monica, I’m not absolutely sure, but I think the
problem lies with the security model of Java applets. I don’t think you’re
allowed to load any data from a remote server, except for the server that is
hosting the applet itself. Try loading a netCDF file from your web server
– it will probably work. Regards, Jon -------------------------------------------------------------- From: address@hidden
[mailto:address@hidden] On
Behalf Of ??? Dear All : Sorry, I forget add the srouce code and html
file. Hope it will be help to resolve bugs... Thank you.
Monica -----
Original Message ----- From: 劉育帆 To: address@hidden Sent: Thursday, February 09, 2006 3:05 PM Subject: how can I open netcdf file in applet? Dear All: but still can't resolve. I hope someone can give me the correct resolve
ways....
I want use Applet and NetCDF Java Library (Version 2)
to do
First way : I use the function in Applet to open the remote
file,
and HTML code use :
<param
name="NCFile" value="http://61.60.103.48:81/g2var1level.nc"> First way Error message : IE version
6.0.2900.2180.xpsp_sp2_gdr.050301-1519 java.security.AccessControlException: access denied
(java.io.FilePermission http:\61.60.103.48:81\g2var1level.nc read) Second way : I change my code in Applet
to open the remote file, String urlfile =
getParameter("NCFile"); NetcdfFile ncfile
= new NetcdfFile(url); and HTML code use :
<param
name="NCFile" value="/g2var1level.nc"> Second way Error message : URL http://61.60.103.48:81/g2var1level.nc And I didn't sign My applet. Could anyone tell me
what keypoint I miss? (May I need sign it? or not add some import jar file?) How can I do that My applet can read the remote netcdf file? First way or Second way is better? Thank you very much~ Monica |