BootClassPath

Version 1 by john.rose
on Jul 18, 2008 15:21.

compared with
Current by john.rose
on Jul 18, 2008 15:23.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (1)

View page history
h3. Coping with the Boot Class Path
Some projects, such as [MethodHandles], require us to develop Java code and test cases under packages like {{java.dyn}}. Classes in packages under {{java}} cannot be loaded by the normal means of setting {{CLASSPATH}} or using the {{-cp}} flag. The JVM will throw an exception like this:
{noformat:title=what can happens when you develop in java.dyn}
$ java -cp "$mypath" java.dyn.MethodHandleBytecodeTest
Exception in thread "main" java.lang.SecurityException: Prohibited package name: java.dyn

The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact