i am a java beginner.i had built a java program MyCalculaterGuI in notepad,compiled and run it on commond prompt.now i am using netbeans 11.1.i have created a jar file of MyCalculterGUI.class by commond prompt.it runs,works fine.now when i want to add MyCalculater.jar file in my netbeans swing controls as a custom component so that i reuse it
by just drag and drop in any JFrame form.first i added this jar file in my gradle project custom library 'libs' folder which is included in project dependencies.then i added this jar file into swing control by pallete manager.MyCalculater.jar is added in swing control.but when i drag and drop it.it gives following error.
component instantiation error
failed to create an instance of pkg/MyCalculaterGUI class
the class itself was loaded but intantiating failed............
please guide me.