This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
"John R. Cary" wrote: > > Hi John, > > Thanks for the information. FYI, to use most things > I do not need to sign the applet, because I have > added the line, > > user_pref("signed.applets.codebase_principal_support", true); > > to my netscape preferences file. (See > http://developer.netscape.com/docs/manuals/signedobj/capabilities/index.html.) I see, so that allows codebases to be unsigned. Can the codebase have any URL, or is it somehow restricted to be "within the intranet"? > > This allows me to enable application privileges. It seems that > NetCDF requires more than just the UniversalFileAccess > privilege, so I was hoping you might know. hmmm, I would have thought that all you need is file access. try catching the exception and calling e.printStackTrace(), that should narrow it down. > > Are the NetCDF mailing lists archived? searchable, they dont seem to be browsable: http://www.unidata.ucar.edu/glimpsedocs/ghnetcdf.html Im pretty sure you wont see this specific problem in there. > > Thanks again.....John > > On Tue, 18 Jul 2000, John Caron wrote: > > > > > > >To: address@hidden > > > >From: "John R. Cary" <address@hidden> > > > >Subject: NetCDF Java Applet Capable? > > > >Organization: > > > >Keywords: 200007181820.e6IIKsT11192 > > > > > > I have been trying to use the NetCDF package within an applet through > > > Netscape .4.7 on Windows. I have enable UniversalFileAccess, but > > > the code still dies. My code sample is: > > > > > > try { // This must be in the same block? > > > netscape.security.PrivilegeManager.enablePrivilege( > > > "UniversalFileAccess"); > > > appendLine("Netscape privileges obtained."); > > > } > > > catch (NoClassDefFoundError > > > ex){appendLine("NoClassDefFoundError");} > > > catch (Exception ex){appendLine("Exception");} > > > appendLine("Will save to file " + fileName + " in directory " + > > > sliceDir + "."); > > > File netCdfFile = new File(sliceDir, fileName); > > > appendLine("File '" + fileName + "' created."); > > > nc = new NetcdfFile(netCdfFile, > > > true, // clobber an existing file > > > true, // prefill variable values > > > schema // metadata template > > > ); > > > appendLine("NetCDF file '" + fileName + "' created."); > > > > > > The code dies upon the call to NetcdfFile. The error says only > > > "AppletSecurityException". > > > > > > Is Java NetCDF applet capable within Netscape? > > > > > > Thanks.....John Cary > > > > > > -- > > > address@hidden John R. Cary www.techxhome.com > > > Tech-X Corporation ph. (303) 448-0728 > > > 5541 Central Avenue, Suite 135 fax (303) 448-7756 > > > Boulder, CO 80301 cell (303) 356-5399 > > > > Hi John: > > > > Im not an expert on this, but I have been investigated applets recently. > > One thing Im pretty sure of is that you have to sign your applets before > > they can escape from the applet security sandbox. > > > > check out: > > > > http://java.sun.com/sfaq/ > > http://java.sun.com/security/signExample12/ > > http://java.sun.com/security/index.html > > > > We are currently exploring a new technology called WebStart that looks > > promising: > > > > http://java.sun.com/products/javawebstart/ > > > > -- > address@hidden John R. Cary www.techxhome.com > Tech-X Corporation ph. (303) 448-0728 > 5541 Central Avenue, Suite 135 fax (303) 448-7756 > Boulder, CO 80301 cell (303) 356-5399