Adding plugin.jar to build path in eclipse on machine independently

I am working on a project that uses a JSObject from jre plugin.jar, which is usually not in the build path. I can get things to compile everything by adding the jar to the classpath. I am currently doing this in eclipse via Project-> Configure Build Path-> Libraries-> Add External JARs ... → find the jar in jdk / jre / lib / plugin.jar. This leads to a specific machine path in my .classpath file (e.g. C: / Program Files / Java / jdk1.6.0_16 / jre / lib / plugin.jar). Checking this in our repository obviously breaks the build for developers with different Java installation paths or non-Windows operating systems. Is there a way to add jars from the system library using relative paths?

+2


source to share


1 answer


I don't know if this is correct, but I solve it by creating a named "custom" library such as "LIVE_CONNECT" whose only content is plugin.jar. Every developer would still have to set up their own workspace to have such a user library, but at least it would be the document itself.



+2


source







All Articles