i am using netbeans, to develop with java
i want to use some methods and classes form another project in my project
haw can i do?
Printable View
i am using netbeans, to develop with java
i want to use some methods and classes form another project in my project
haw can i do?
you can import old project in current project.
Right Click your Project -> Libraries -> Processor -> Add Project
Best Luck.
Moved from New to Java
db
i made this
when i use classes and methods, there is no error, but in run, i have a lot
for example i write this code:
where FrameNewRequirement is a class in the project imortedCode:FrameNewRequirement newReq=new FrameNewRequirement("jamel");
System.out.println("xxxxx"+newReq.getcBox_actor().getSelectedItem());
i have this error
"Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: REQUIREMENT.FrameNewRequirement.getcBox_actor()Lja vax/swing/JComboBox;"
sometimes i have this error
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: REQUIREMENT/FrameNewRequirement
you have to configure JDK and other jar files in netbeans.