So ACF2021 in Commandbox w/JRE is throwing this er...
# box-products
j
So ACF2021 in Commandbox w/JRE is throwing this error when using cfinvoke to call an access="remote" CFC using wsdl:
Copy code
coldfusion.jsp.JavaCompiler$UnknownCompiler: Unable to run the internal Java compiler: java.lang.ClassNotFoundException: com.sun.tools.javac.Main.
Do I need a different JRE? Or am I missing something with configuration?
b
@John Liljegren You either need to use Java 8 with tools.jar added in or a JDK I think
Adobe basically assumes certain stuff will exist in your JRE and it's really flaky IMO
j
the jre w/commandbox is not the server one?
b
I don't understand the question, or there's not enough information here to answer it
b
I assume if you just start your server with a JDK it will likely work
Copy code
server start javaVersion=openjdk11_jdk
I'd start there
j
ah, awesome, thank you - that can go in server.json right? i think i did this recently testing other jvms
b
Yes, in fact that above command will update your
server.json
to have it
Same as this
Copy code
server set app.javaVersion=openjdk11_jdk
server start
It's all in the docs 🙂
j
ha, yes i reference them frequently! is it not jvm.javaVersion?
b
ha, probably
I was typing from memory here
That's why I always use tab completion!
j
cool just making sure
thanks again
👍 1
b
Yep,
Copy code
server set jvm.javaVersion=openjdk11_jdk