Click here to Skip to main content
10,500,000 members (61,625 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I created a Class library project and a java swing project

Now I have been trying to import and creating some jar file and try to call a method i wrote in class library but not sucsseding.

Please help me to call the method in my library class.
Posted 22-Sep-12 9:02am
Ashraff Ali Wahab 22-Sep-12 14:15pm
Where and What is the problem you are facing?
Anele.Ngqandu 22-Sep-12 14:31pm
usualy on c# when you try to get methods and classes from class library u refrance like this "using MyClasslibraryName;" on top. Now i tried to use "import MyclassLib" so i can get the class with the methods i want. But I cant find "MyclassLib"

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Let's see...

You have to be much more specific...

Show us your code, then possibly someone will be able to help.

We don't know where you are stuck, where your problem is...

With that, the best I can do is offer you a set of links that probably will help you:

This will help you.[^][^]

There is a lot of information about that over there... see the google results and I'm sure that more than one will solve your issue easily.

Good luck.
Anele.Ngqandu 22-Sep-12 15:13pm
ther is no code yet. But in my java Application back code, i need to refrance or import an external class library project with a class called "myclass".Now I need to call a method inside "myclass" to work in java application project. the links you supplied only use classes of the same project in my case I have 2 separate peojects.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.171207.1 | Last Updated 22 Sep 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100