According to the comments on the NetBeans forum a workaround is
(without manually editing build files):
Create a sub main in one of your library classes:
/**
* @param args the command line arguments
*/
public static void main(String[] args)
{
System.err.println("This is a plugin for <YourApplication> and
cannot be run as a standalone application");
}
and then go to project properties (right mouse-button on the project,
then properties) -> run -> Main Class: There should be the option to
select the class where you added the main method (if not, the file is
maybe not yet saved ;-) ).
Then the build process re-creates the lib path and contents.
Thinking about this I start to like it that way. Indeed there are some
libraries where I don't need the lib path to be generated because I
use them only within my projects and there the lib path is anyway
created. For the plugins where they are distributable programs I can
do it the way described above and at the same time I have some
information output for those who try to run it standalone.
On Fri, Aug 6, 2010 at 10:26, Wildam Martin <[email protected]> wrote:
> Hi folks,
>
> I noticed yesterday, that for libraries on build it does not create
> any more the lib folder and copy the needed jars there (for
> applications it still does - see
> http://forums.netbeans.org/topic30087.html).
>
> This is an issue for me as I am writing plugins and I need an easy way
> to copy all dependencies along when deploying my plugins.
>
> How can I bring NetBeans 6.9 to behave as 6.8 again? - I searched
> through the options but did not find anything related.
>
> Thanks in advance for any helpful comment.
>
> --
> Martin Wildam
> http://www.google.com/profiles/mwildam
>
--
Martin Wildam
http://www.google.com/profiles/mwildam
--
You received this message because you are subscribed to the Google Groups "The
Java Posse" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/javaposse?hl=en.