Message Boards

how to set gradle jave_home

Scarletake Bwi, modified 2 Years ago.

how to set gradle jave_home

Expert Posts: 326 Join Date: 12/20/10 Recent Posts

hi

i am using liferay 7.4 ga1, for my local develop, it's works well, but i put all in windows server 2019, and set all same, i got problem when i try use "build" from Gradle tasks. it target on different from my local pc. and there have no tool.jar in jre.

i copy the tools.jar from jdk to jre, it's works so far.

how to change the setting and direct it to right jdk?

 

 

thumbnail
Christoph Rabel, modified 2 Years ago.

RE: how to set gradle jave_home

Liferay Legend Posts: 1554 Join Date: 9/24/09 Recent Posts

I am not really a windows user, but can't you just set it globally in the Environment variables? Search for "windows <version> set java_home" and it will show some links for sure.

Scarletake Bwi, modified 2 Years ago.

RE: RE: how to set gradle jave_home

Expert Posts: 326 Join Date: 12/20/10 Recent Posts

hi Christoph

i did, but it doesn't work, but lucky my, i found the answer

could-not-find-tools.jar