eclipse - How to resolve an import of a java package in a project? -
i took source code java application maxim's ibutton onewireviewer. google code repo, found "package" need utilize separate project. java files , not .class
or .jar
. project, first thing want able run onewireviewer java application through ide (eclipse in case). currently, when seek importing com.dalsemi.onewire.*
, eclipse tells me import cannot resolved. how can add together these java files project?
in general, not want include library's source files in project. either add together distribution dependency in build-file, or download distribution , add together project.
if understand question correctly, need little part of onewireviewer. should still include entire distribution .jar
, because don't know if classes depend on else in archive.
so, download the onewireviewer distribution, add together lib/onewireapi.jar
file zip project in eclipse dependency on build path. should enable import requested package.
java eclipse
No comments:
Post a Comment