Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Hi
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
Comments
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

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.[^]
http://www.coderanch.com/t/529764/java/java/run-jar-java-application[^]

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.
 
Share this answer
 
Comments
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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900