Results 1 to 3 of 3
  1. #1
    Anele is offline Member
    Join Date
    Sep 2012
    Posts
    1
    Rep Power
    0

    Default Call class libabry classes from a separate java application project

    Hi

    I have 2 separate projects, the class library project & java application project.
    I have a class in my class library called "myclass" and has a method called "search()"

    I need to refrance the class library project so i can use its classes in my java application project.

    How do i go about doing that?because when i try to import my class library to java application. it dont work,the class library is not found.

  2. #2
    thinkinjava24 is offline Member
    Join Date
    Sep 2012
    Posts
    17
    Rep Power
    0

    Default Re: Call class libabry classes from a separate java application project

    you have to make sure that the class "myclass" and your method "search()" is public, so that you can import them to different package.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,452
    Rep Power
    20

    Default Re: Call class libabry classes from a separate java application project

    Quote Originally Posted by Anele View Post
    I have a class in my class library called "myclass"
    Learn to follow the Code Conventions for the Java Programming Language: Contents

    A 'project' is a feature of most IDEs -- not of the Java programming language. To get help on a forum, you'll need to inform members which IDE your question pertains to.

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

Similar Threads

  1. Replies: 4
    Last Post: 09-15-2012, 08:41 AM
  2. Classes in separate files
    By natdizzle in forum New To Java
    Replies: 1
    Last Post: 07-25-2012, 06:35 AM
  3. Replies: 15
    Last Post: 02-13-2012, 10:00 PM
  4. Replies: 1
    Last Post: 06-18-2011, 05:28 PM
  5. Event Handling with Separate Classes
    By newbie123 in forum New To Java
    Replies: 9
    Last Post: 05-26-2011, 06:12 AM

Posting Permissions

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