When I use the Intellj IDEA 13 Terminal tool, or launch a terminal from the IDE I find IDEA classpath settings have been set for IntelliJ. If I then try to build a project with Ant or Maven, that use a different JDK to the version IDEA uses (the bootstrap jar) I then get lots of warnings about classes having the wrong bytecode version. I have to ve very careful about either remembering to reset the IDEA vars, or not use the builtin terminal options. Is there some way to stop these being leaked/exposed? either run a script on terminal statup or avoid exporing them in the IDEA startup scripts?
Got into terminal (in Linux) and type:
$ set | egrep "CLASSPATH|LD_LIBRARY_PATH"
CLASSPATH=/opt/jetbrains/idea-13/bin/../lib/bootstrap.jar:/opt/jetbrains/idea-13/bin/../lib/extensions.jar:/opt/jetbrains/idea-13/bin/../lib/util.jar:/opt/jetbrains/idea-13/bin/../lib/jdom.jar:/opt/jetbrains/idea-13/bin/../lib/log4j.jar:/opt/jetbrains/idea-13/bin/../lib/trove4j.jar:/opt/jetbrains/idea-13/bin/../lib/jna.jar:/usr/java/default/lib/tools.jar
LD_LIBRARY_PATH=/opt/jetbrains/idea-13/bin:
These env vars are what I'm talking about, they often interfere with what I'm using the shell for.