Flexible development environment
From JQuantLib
In my environment, I usually create convenience symlinks in temporary directories, which are associated to the current PID. This policy allows more flexibility, like having several Konsole windows, one where I use JDK5, another where I use JDK6 and finally another where I play with JDK7.
This flexibility is handy because I usually develop things in parallel, each requiring a different JDK version. In my environment I defined the following aliases, which allow me to easily change which JDK I need by simply typing one command:
alias jdk5i='delenv_java; export JAVA_HOME=/opt/JavaIDE/jdk1.5.0_13-i586; setenv_java' alias jdk5x='delenv_java; export JAVA_HOME=/opt/JavaIDE/jdk1.5.0_13-amd64; setenv_java' alias jdk6i='delenv_java; export JAVA_HOME=/opt/JavaIDE/jdk1.6.0_12-i586; setenv_java' alias jdk6x='delenv_java; export JAVA_HOME=/opt/JavaIDE/jdk1.6.0_13-x64; setenv_java'
Download
You can download my scripts from this archive:
Installation instructions
- uncompress wherever convenient to you
- add these lines to the end of your ~/.bashrc
# Load JavaIDE environment . /opt/JavaIDE/setpath.sh # or wherever you've uncompressed the archive
- Edit setpath.sh and redefine variable JavaIDE in a way convenient for your purposes.
- Review the other scripts setpath_*.sh in order to adjust locations for ant, maven, Java, etc.
Gomes, Richard 02:28, 13 May 2009 (UTC)

