Standalone Jar File

ProRefactor can be used as a standalone library, entirely independently of Eclipse.

This Java archive (jar) file contains ProRefactor, as well as the third party libraries it requires.

prorefactor.oehive.org/prorefactor.jar
Last updated: June 17, 2008. About a dozen MB.

Setting Up ProRefactor

  1. See Project Config. Dump for a script which creates a prorefactor project settings directory.
  2. Proparse must be downloaded separately: joanju.com/proparse/. The Proparse shared library (.dll or .so) must be in your library path. On Windows, this can simply be your working directory. On most unixes, you would set an environment variable. For example, on Linux you might use:

    export LD_LIBRARY_PATH=.

    ProRefactor.jar always requires the latest release of Proparse.

  3. Remember that ProRefactor may write very large amounts of data to into the 'prorefactor' sub-directory of your working directory. If your application is very large, then this could be as much as a few GB. See PUB Files

Setting Up Scripting

This section assumes you will be using Groovy for scripting, but other JVM scripting languages will be similar.

  1. Install the latest version of Groovy (assuming you have Java installed): groovy.codehaus.org
  2. Open a command line prompt. Change to your prorefactor working directory. Test that groovy runs OK with: groovy --version
  3. Make sure your CLASSPATH environment variable contains prorefactor.jar. For example, on Linux you might use:

    export CLASSPATH=prorefactor.jar

    assuming prorefactor.jar is in the working directory. (If you need additional jar files, don't forget on unix, use ':' instead of ';' to separate classpath entries.)