Running Class wrapped on a library on Click of Button in netbeans
I created a module for my project.I have wrapped a library with a class that has a main method.I now want to run the class when a menu is clicked on the platform.How do I do this?
Re: Running Class wrapped on a library on Click of Button in netbeans
Create a jar file with the class files and a manifest file. Your IDE can probably do it all.
Re: Running Class wrapped on a library on Click of Button in netbeans
How do i create a jar and manifest .?
Re: Running Class wrapped on a library on Click of Button in netbeans
Re: Running Class wrapped on a library on Click of Button in netbeans
Thanks.I have done that sucessfully.So How Do I now Run a certain class(It is a form) inside the jar when an action like a menu click is invoked in the netbeans platform?
All my classes are CRUD generated forms.
Re: Running Class wrapped on a library on Click of Button in netbeans
Quote:
How Do I now Run a certain class
When the code in the jar file is started by double clicking on the jar file, you can "run" a class by creating an instance of the class and calling its methods. The manifest file tells java which class has the main() method that the java program is supposed to call to start the execution.