Skip to content

Initial Project Setup / Eclipse Run Script

Eclipse is currently not used for development. This decumentation was created while investigating using Eclipse.

It is helpful to run Eclipse with a script to ensure that proper versions of Eclipse and Java are used. Note that the script described below was initially created before setting up the Eclipse workspace and thereafter can be run to start Eclipse. The script was created outside of the repository and was then moved to the repository location described below.

The following sections are included in this documentation:


Prerequisites

This step requires that Eclipse/Photran was previously installed as per the Developer Environment / Eclipse and Photran documentation.

Default Eclipse Run Script

Linux Linux

This section will be completed when resources are available for Linux development and testing.

Windows Windows

The following batch file was created to run Eclipse and is suitable if the project is configured as per this documentation. It is recommended that developers use the script as is if possible to run from a Windows command shell that has been initialized with the proper MinGW environment variables.

C:\Users\user\cdss-dev\StateMod\git-repos\cdss-app-statemod-fortran\build-util\eclipse\run-eclipse-statemod.bat

See the script in the repository.

Note that the command line parameters passed to Eclipse are an alternative to changing the eclipse.ini file distributed with the Eclipse software. If the above is not suitable, it is recommended that the above script is copied as a developer-specific version as described in the next section.

Developer-specific Run Script

If the above script is not appropriate for the specific developer, make a copy and modify. For example, save in a cdss-dev\StateMod\build-util folder.

Next Step

Use the run script to start Eclipse. The next step is to set up an initial Eclipse workspace.