[1774] in java-interest

home help back first fref pref prev next nref lref last post

IllegalAccessException

daemon@ATHENA.MIT.EDU (Jay Fenton)
Sat Sep 16 21:54:46 1995

Date: Thu, 14 Sep 1995 16:35:23 -0700
To: java-interest@java.sun.com
From: jay@communities.com (Jay Fenton)

This code throws an exception if I run it from outside of the package in
which the named class is defined:

Class savedClass = Class.forName(className);
Object madeguy = savedClass.newInstance();


Why?


-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post