Problem with Java application running between Windows and Snow Leopard computers

There should be a simple solution, but I had problems working on a Java application on a Windows machine and on a Snow Leopard machine. I do all my development in Eclipse and pass the code through SVN checks / checks. The problem I am facing is that this application links to a bunch of JDK Snow Leopard banners and refers to them through an absolute location in the classpath. Does anyone have experience in this type of environment and how do you get around it?

+1
source share
3 answers

Just set up the classpath variable, pointing to some DIR and give the lib build path relative to this directory.

Maven .

+3

, maven, - ...

→ Java → JRE

JRE, , "". JDK. . JRE. , - .

+2

jar war/WEB-INF/lib , Configure Build Path jar, , , . , .

war/WEB-INF/lib " / ", jar . Windows OSX. , "".

, .classpath , , IDE.

This does not work for a library such as servlet-api.jar, which comes with Tomcat and is usually installed in different places on OSX and Windows, and you do not want a part of your war file. I installed Tomcat on Windows in the same directory (/ Library) as OSX, and it seems to work. At least I can run the OSX project and update Windows, and it still works.

0
source

All Articles