Use Eclipse classpath variables in Java code
Is it possible to use Eclipse's classpath vari开发者_如何学Goables within in Java code? I have several bin directories for multiple projects that are defined in classpath variables, and need to reference them multiple times within one of my projects.
Tying something unique to an IDE to your application code is not particularly good practice. Try instead to make use of system properties, environment variables or the -D
arguments to the application.
精彩评论