To run the configured main class for your project, you may use the :Java command, which executes java and displays the results in a temporary buffer.
Note
Please note that this command is not intended to be a full replacement for the more advance support provided by eclipse, ant, or maven.
The :Java will locate the main class to run using the following steps:
Eclim Settings
To compile your project’s source code, you may use the :Javac command, which will run javac on all source files found in your project’s src directories as configured by your .classpath file. You may use the org.eclim.java.compile.sourcepath setting described below, if you wish to alter which directories are used. The resulting class files will be written to the output path as defined in your project’s .classpath file.
Note
Please note that this command is not intended to be a full replacement for javac support provided by more comprehensive build tools like ant or maven.
Eclim Settings
When editing a java file, eclim provides the command :JavaClasspath which will echo the project’s resolved classpath entries separated by the system path separator or a supplied delimiter:
:JavaClasspath
:JavaClasspath -d \\n
If you would like to get the classpath from a script, you can also call eclim directly:
$ $ECLIPSE_HOME/eclim -command java_classpath -p <project_name>
To view a list of all the JDKs/JREs that eclipse is aware of, eclim provides the command :JavaListInstalls.