NetBeans uses a small interface to describe the execution of Java-based classes together with arguments.
NbClassLoader(FileObject, ...)does not throw
NbClassLoader(FileObject, ClassLoader, InputOutput) does not throw
FileStateInvalidException any more.
If your module depends on
org.openide.execution > 1.9 or higher
there is no need to specify that it also requires an implementation of
the API by use of
this token will be requested automatically by the
Previously it was possible to place objects with an
ExecCookie into the
of the system filesystem, and they would be run during
In NetBeans 4.0 there is no such cookie any more, and that
old style of execution is no longer supported. Modules may
continue to use
startup hooks, possibly providing special modes for user
customization, but there is no generic infrastructure for
All of the existing constructors of
NbClassLoader were deprecated since they used
Filesystems to refer to the classpath; one new classpath-safe
constructor was added instead.
For similar reasons, a number of static methods in the class were deprecated as well.
As part of the NetBeans 4.0 build system, the Execution API was split into two halves. The first half continues to be used as before. The second half is now deprecated and lives in a separate module.
Read more about the implementation in the answers to architecture questions.
Built on March 27 2020. | Copyright © 2017-2020 Apache Software Foundation. All Rights Reserved.