Results 1 to 3 of 3
- 09-22-2012, 09:36 PM #1
Member
- Join Date
- Sep 2012
- Posts
- 1
- Rep Power
- 0
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.
- 09-22-2012, 09:55 PM #2
Member
- Join Date
- Sep 2012
- Posts
- 17
- Rep Power
- 0
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.
- 09-22-2012, 10:31 PM #3
Re: Call class libabry classes from a separate java application project
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.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
Similar Threads
-
How do I structure my GUI? As in separate it into classes etc
By tomtaila in forum New To JavaReplies: 4Last Post: 09-15-2012, 07:41 AM -
Classes in separate files
By natdizzle in forum New To JavaReplies: 1Last Post: 07-25-2012, 05:35 AM -
Computing standard deviation using public static classes to call from another class
By exeye0h in forum New To JavaReplies: 15Last Post: 02-13-2012, 09:00 PM -
How to call a local class from the application running in server
By g.raaja in forum Advanced JavaReplies: 1Last Post: 06-18-2011, 04:28 PM -
Event Handling with Separate Classes
By newbie123 in forum New To JavaReplies: 9Last Post: 05-26-2011, 05:12 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks