I am in the process of configuring jenkins on server. There is no Java installed on server. From the link, I understood that Jenkins windows installer will install JRE so that no need of external java installation.jenkins windows installer But when I ran the command java-version it returns error that no java installed. So it required to install java seperately? Is it needed for jenkins to run java on the server?
Asked
Active
Viewed 187 times
2 Answers
0
It is possible that the setup installs a private JRE (see https://stackoverflow.com/questions/19510169/what-are-the-differences-between-private-jre-and-public-jre) so it is not visible outside of Jenkins dir.
-
So Jenkins can make use of this when needed? No need of Java installed? – Ammu Jun 24 '16 at 06:20
-
Yes, Jenkins is a Java app and cannot even start without JRE. With private JRE, you _have_ Java installed, just privately using xcopy deployment. – tomasdeml Jun 24 '16 at 09:46
0
You need Java installed because Jenkins generally works from a tomcat server and installing tomcat requires java. If you are in windows, then you need to set the correct PATH variables as well - JAVA_HOME
variable to be specific and also add the bin folder to the PATH

abhishek_M
- 121
- 3
-
I have installed Jenkins and there is no Java installed in the VM. But it is working fine. So where this will cause problems because of Java not installed? – Ammu Jun 24 '16 at 06:20