This page contains an archived post to the Java Answers Forum made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
Artima Forums.
Message:
same problem...
Posted by josh on April 29, 2001 at 4:55 PM
I get the same error at the bottom of the java console: > > ========= error========= > > java.lang.InstantiationException: HelloWorld
> > at com/ms/applet/BrowserAppletFrame.newInstance (BrowserAppletFrame.java)< > > at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java) > > at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java) > > at com/ms/applet/AppletPanel.run (AppletPanel.java) > > at java/lang/Thread.run (Thread.java) but above that i get this error: com.ms.security.SecurityExceptionEx[GeoCanvas.]: java.io.IOException: bad path: C:\WIN\Desktop\geoapp\java\awt\geom\Line2D$Double.class at com/ms/security/permissions/FileIOPermission.check at com/ms/security/PolicyEngine.deepCheck at com/ms/security/PolicyEngine.checkPermission at com/ms/security/StandardSecurityManager.chk at com/ms/security/StandardSecurityManager.checkRead at java/io/File.isDirectory at sun/net/www/protocol/file/FileURLConnection.connect at sun/net/www/protocol/file/FileURLConnection.getInputStream at com/ms/vm/loader/ResourceLoader.getURLData at com/ms/vm/loader/ResourceLoader.getCodebaseRelativeData at com/ms/vm/loader/ResourceLoader.getClassData at com/ms/vm/loader/URLClassLoader.findClass at com/ms/vm/loader/URLClassLoader.loadClass at java/lang/ClassLoader.loadClassInternal at GeoCanvas. at GeoApp. at GeoApp. at com/ms/applet/BrowserAppletFrame.newInstance at com/ms/applet/AppletPanel.processSentEvent at com/ms/applet/AppletPanel.processSentEvent at com/ms/applet/AppletPanel.run at java/lang/Thread.runmy geometry app uses Line2D.Double (part of the awt) but for some reason, the browser is looking for a class file for it when i run the applet off my desktop. i don't understand why it would look for that but not have a problem when i use Point2D.Double, or some other awt class...
Replies:
|