Results 1 to 6 of 6
  1. #1
    mharsijamel is offline Member
    Join Date
    Aug 2011
    Posts
    60
    Rep Power
    0

    Default use classes from another project

    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?

  2. #2
    viren2727in is offline Member
    Join Date
    Jan 2013
    Location
    INDIA
    Posts
    18
    Rep Power
    0

    Default Re: use classes from another project

    you can import old project in current project.

    Right Click your Project -> Libraries -> Processor -> Add Project

    Best Luck.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,242
    Rep Power
    19

    Default Re: use classes from another project

    Moved from New to Java

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  4. #4
    mharsijamel is offline Member
    Join Date
    Aug 2011
    Posts
    60
    Rep Power
    0

    Default Re: use classes from another project

    Quote Originally Posted by viren2727in View Post
    you can import old project in current project.

    Right Click your Project -> Libraries -> Processor -> Add Project

    Best Luck.
    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:
    Java Code:
    FrameNewRequirement newReq=new FrameNewRequirement("jamel");
    System.out.println("xxxxx"+newReq.getcBox_actor().getSelectedItem());
    where FrameNewRequirement is a class in the project imorted
    i have this error
    "Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: REQUIREMENT.FrameNewRequirement.getcBox_actor()Lja vax/swing/JComboBox;"

  5. #5
    mharsijamel is offline Member
    Join Date
    Aug 2011
    Posts
    60
    Rep Power
    0

    Default Re: use classes from another project

    sometimes i have this error
    Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: REQUIREMENT/FrameNewRequirement

  6. #6
    viren2727in is offline Member
    Join Date
    Jan 2013
    Location
    INDIA
    Posts
    18
    Rep Power
    0

    Default Re: use classes from another project

    you have to configure JDK and other jar files in netbeans.

Similar Threads

  1. New to NetBeans - project with multiple classes
    By Humphrey Bogart in forum NetBeans
    Replies: 2
    Last Post: 11-08-2012, 12:43 AM
  2. Help with 2 classes on this project plzzz
    By stan989 in forum New To Java
    Replies: 28
    Last Post: 12-08-2011, 07:27 PM
  3. Java project with multiple classes
    By trakke in forum New To Java
    Replies: 1
    Last Post: 04-28-2011, 08:16 PM
  4. Replies: 23
    Last Post: 04-18-2011, 06:54 PM
  5. Replies: 5
    Last Post: 12-05-2009, 10:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •