Re: Prohibited package name: java
"Dr. Robert J. Meier" <[email protected]> Sun, 20 Aug 2006 19:31:26 -0400 (EDT)
| Newsgroups | gmane.comp.java.linux.general |
|---|---|
| Message-ID | <[email protected]> |
Alf, > I am attempting to create a java applet and I get:- > java.lang.SecurityException: Prohibited package name: java > ... > at java.lang.Thread.run(Unknown Source) > where do I look to fix this? 1. Locate your source in a directory where your IDE (e.g. netbeans) can find it. (This will replace "Unknown Source" with classes and/or line numbers.) 2. Change your code to use a name different than 'java' at java.lang.Thread.run(source indicated) <AFAIK> java, javax, and sun are among the package names reserved for the virtual machine. In order to prevent a trojan horse attack, users cannot add or detract from these namespaces. </AFAIK> Hopefully helpful, -- Dr. Robert Meier ---------------------------------------------------------------------- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]