Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

could not find java; set JAVA_HOME or ensure java is in PATH

After reading the docs from ElasticSearch,
I found that if you're running on Ubuntu or Debian,
the package only ships with the OpenJDK because of licensing issues.
To fix this Java path problem, I installed the following
after installing ElasticSearch (as directed by the docs):

	sudo add-apt-repository ppa:webupd8team/java
	sudo apt-get update
	sudo apt-get install oracle-java8-installer
	java -version
Then upon running
sudo service elasticsearch start
everything worked and I had no more Java path issues.
Comment

PREVIOUS NEXT
Code Example
Java :: debug cxf 
Java :: jframe maximized at startup 
Java :: run webgoat using docker 
Java :: framboise bleue ou mure 
Java :: new thrad java 
Java :: .entrySet 
Java :: android studio hide linearlayout 
Java :: hide background of button java swing 
Java :: how to return arraylist as array in java 
Java :: java benchmark time 
Java :: spring mvc project example 
Java :: video compression with java 
Java :: how to convert integer to string in java 
Java :: resurce leak java 
Java :: fullscreen java 
Java :: android activity keyboard hide 
Java :: How to initialize a 3d array in Java? 
Java :: functional interface java 
Java :: arc() method from the processing library 
Java :: how to make jenkins pipeline choose specific java version 
Java :: check if input is empty java 
Java :: java regular expressions 
Java :: Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8 
Java :: java exception to string 
Java :: Palindrome Program in Java. 
Java :: java exception override message 
Java :: java stream loop through list 
Java :: index 1 out of bound for length 1 java 
Java :: change element in array java 
Java :: java boolean data type 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =