Unable to find a javac compiler
Hi,
Since installing b99 of Mustang onto my machine and updating TeamCity to EAP 1611, the build is failing with the following error:
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
The JAVA_HOME environment variable is pointing at the correct JDK (1.5). If I run the BuildAgent from the batch file, it works fine. This error only occurs when the BuildAgent is running as a service.
Any ideas?
Thanks
Tony
Message was edited by:
Tony Johnson
Please sign in to leave a comment.
Anyone? Bueller... Bueller?
Found this in the log.
INFO - er.agent.runner.PropertyFinder - Took value for target.jdk.home from env.JAVA_HOME, value: C:\tools\jdk\jdk1.5.0_08\
INFO - agent.runner.JavaProgramRunner - Found JDK above JRE. Use JDK at C:\tools\jdk
INFO - agent.runner.JavaProgramRunner - Target java VM does not exist: C:\tools\jdk\bin\java.exe
What is the sense in "Found JDK above JRE" and then mangling the java.exe path?
Tony Johnson wrote:
Hmm. Well, it's my bug. To workaround, rename c:\tools\jdk\jdk1.5.0_08\ to something like
c:\tools\java\jdk1.5.0_08\ .
Will be fixed in the next EAP.
Thanks!
KIR
--
Kirill Maximov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"
Has this been fixed in the release?
It has just happened again, although I didn't uninstall the Build Agent. I just let it update automatically.
Thanks
Tony
Yes, I've fixed it.
Tony Johnson wrote:
Could you please try to reinstall agent from scratch and if the problem persist,
create a request with logs. Probably I did something wrong.
KIR
--
Kirill Maximov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"
Yes, an uninstall and reinstall fixed the problem.
Thanks.
Yep. Appears fixed.