Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
80
rated 0 times [  80] [ 0]  / answers: 1 / hits: 94228  / 2 Years ago, sat, august 27, 2022, 8:08:23

I have installed tomcat7 (using apt-get install) and whenever I want to start tomcat7 it says :



* no JDK found - please set JAVA_HOME


I have set JAVA_HOME in my bash.bashrc and also in ~/.bashrc and when I issue echo $JAVA_HOME I clearly see that this variable is pointing to my jdk's root folder. Can someone help me with this please?



Thanks


More From » java

 Answers
7

You can try this:

Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command below.



gksudo gedit /etc/default/tomcat7


When the file opens, uncomment the line that sets the JAVA_HOME variable.



enter image description here



Save and restart tomcat7 server.


[#37346] Sunday, August 28, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
fishutt

Total Points: 391
Total Questions: 137
Total Answers: 106

Location: Mexico
Member since Tue, Aug 11, 2020
4 Years ago
;