Hi I made one jar file with 3 classes.They work fine they are supporting file for getting HXM data.Now when i made jar i want to use it in my next project.I imported it and now it is in referenced libraries.But i can not find how can i use the libraries. in old project from i take the 3 .class file they have the paths: sk.csabi.hxm.*
but now how can i import and use them?
thanks
Your question isn’t very clear but it seems like you’re asking how to add the JAR to your project classpath in Eclipse.
What you’re looking to do is add the libraries to your project’s build path (the class path that will be used while compiling). In Eclipse, you can do this by right-clicking your project and choosing
Properties(or hitting[Alt]+[Enter]when the project is selected inProject Explorer,NavigatororPackage Explorerviews) and thenJava Build Pathfrom the sidebar and theLibrariestab where you can add JARs.Note the difference between
Add JARsandExternal JARsis thatExternal JARswill add an external dependency in your project since the absolute path to the JAR on your filesystem will be put into your project’s configuration. WithAdd JARsyou can select JARs from within your workspace.I find it to be a good practice to create a
libfolder (at the same level as mysrcfolder) and put all my JARs in there and then add them to the build path with theAdd JARsoption. This makes the project portable since there are only relative paths referring to resources within the project rather than absolute paths or resources from other workspace projects.