Eclipse questions

No replies
pjc009
Offline
Joined: 04/24/2009

There is a page called "Building from Ecli[p]se" on this website but I find it very confusing. Instead of discussing Eclipse directly, there is extensive discussion about SubVersion. I'm wanting to use Eclipse without SubVersion (I'm using a different version control system). Why is this page that is primarily about SubVersion, entitled "Building from Eclise" ? And is there any general advice about importing the jNetPcap tree into Eclipse elsewhere on this site?

MORE SPECIFICALLY: when I try to bring jNetPcap -with it's build.xml- into Eclipse, the "java.sdk.include.dir" is not correctly evaluated. This value is being printed out within the "comp-jni-linux" target (System Include). It works fine when the build is invoked from the command line but when it's built within Eclipse, it doesn't work at all (it prints out as: "${env.JAVA_HOME}/include" ). Any help on this would be appreciated...

UPDATE: Elipse is not correctly taking in jNetPcap's "build.properties". Even if I explicitly add it in the "External Tools Configurations" window (Properties>AddExternal) it still doesn't work correctly.

SOLVED: tentatively, it looks like this problem may be solved. The solution was to (In eclipse with build.xml selected) go to :
"Run>ExternalTools>ExternalToolsConfigurations>Properties>AddProperty"
...and define "java.sdk.include.dir" as the same path that shows during my command-line build (which, in my case is /usr/java/default/bin/../include). And then I get a SUCCESSFUL build.