Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

classpathFilename

Jukka Keski-Luopa edited this page Feb 22, 2016 · 8 revisions

Settings

With the classpathFilename setting you can change the default .classpath filename to something else. This is useful option if you bump into conflicts with Eclipse users, since Eclipse uses .classpath files in Eclipse specific format. Typical example of .classpath file contents:

./classes:./lib

NOTE: In Windows you should use ; as classpath separator.

Additionally with javacArgsFilename settings you can define filename for a javac argsfile. Contents of the argfile are passed to javac as arguments. Note that if you define javacArgsFilename setting, it MUST be located alongside with the .classpath file in the same directory. Typical example of argsfile contents:

-d ./classes
-parameters
-encoding ISO-8859-1

Multiple classpaths

Project may also consist of multiple small modules that each have their own classpath. Here is a simple example:

Settings

  • classpathFilename: .javac-classpath
  • javacArgsFilename: .javac-args

Project directory contents

/myProject
  /lib
  /module1
    /classes
    /src
    .javac-args
    .javac-classpath
  /module2
    /classes
    /lib
    /src
    .javac-args
    .javac-classpath

File contents

Module1

.javac-classpath

./classes:../lib

.javac-args

-d ./classes
-parameters

Module2

.javac-classpath

./classes:./lib:../lib:../module1/classes

.javac-args

-d ./classes
-parameters