JAVA_HOME in agent.sh (build 1611)

Hi

Previous versions of agent.sh used JAVA_HOME as part of the command to run the agent. The current version just uses the java command on the PATH.

My default jvm is 1.4 - I have JAVA_HOME set up to execute TC with 1.5 however now I get 'Unsupported major.minor version 49.0' when running the agent.

Editing the agent.sh and putting in $JAVA_HOME/bin/java makes it all work.

Is this a deliberate change? Should I be using a different mechanism to ensure the agent runs under 1.5?

Regards

Paul

1 comment
Comment actions Permalink

Paul Brooks wrote:

Hi

Previous versions of agent.sh used JAVA_HOME as part of the command to run the agent. The current version just uses the java command on the PATH.

My default jvm is 1.4 - I have JAVA_HOME set up to execute TC with 1.5 however now I get 'Unsupported major.minor version 49.0' when running the agent.

Editing the agent.sh and putting in $JAVA_HOME/bin/java makes it all work.

Is this a deliberate change? Should I be using a different mechanism to ensure the agent runs under 1.5?


So far we decided that agent.sh should not require JAVA_HOME variable.
We plan to rework agent.sh a bit to make it more 'user frendly'.
Take a look at http://www.jetbrains.net/jira/browse/TW-702 and
http://www.jetbrains.net/jira/browse/TW-270

Regards,
KIR


--
Kirill Maximov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"

0

Please sign in to leave a comment.