So after installing Solr add-in - I noticed it ins...
# adobe
m
So after installing Solr add-in - I noticed it installed its own version of java 11.0.11+9-LTS-194. I would like to use the same version of java as ColdFusion uses and keep it up to date. I am currently at 11.0.18 (which I downloaded from the ColdFusion download site).
s
i've never tried to do that, but if you're concerned about security i'd suggest not using the Solr add-in but instead installing it separately so that you can update it independently from CF. hopefully doing it that way would allow you to use a newer Java as well. you won't be able to use the nice CF convenience tags, but you can still call it other ways.
d
Hey @Mark Berning, we do this all the time. On Windows, our procedure has always been: 1. Update Java 2. Change <yourCFDirectory>\bin\jvm.config to point to the new java directory. 3. Restart the CF service 4. Change <yourCFDirectory>\jetty\jetty.lax to point to the new java directory. 5. Restart the CF Add-on service Just a warning but if you use backslashes in your file path, make sure to escape them (ie
C:\ColdFusion2018\cfusion\jetty\jetty.lax
)
The only thing that has bitten us in the past is if you installed any custom certificates, you'll need to install those again.
m
Thanks @David Belanger. We are on Linux so "\" shouldn't be a problem. Yeah we have several internal CA that we import as we update Java. We have a whole checklist when updating java. I will need to add the Solr Java as part of our process.