Closed 7-- closed 6 years ago
What version of Java are you using?
HINT: The guides are not geared for Java 9+ (yet) even though Spring Framework is. To use Java 9+ you have to hook in extra stuff and the guides simply aren't ready to coach the Spring community smoothly on handling this big change coming.
It was at 10 but I changed to Java 8 and I'm getting the same issue.
$ java -version
openjdk version "1.8.0_181"
OpenJDK Runtime Environment (build 1.8.0_181-8u181-b13-0ubuntu0.18.04.1-b13)
OpenJDK 64-Bit Server VM (build 25.181-b13, mixed mode)
$grep 8761 /etc/services
#shows nothing
$ git status
On branch master
Your branch is up to date
$sudo mvn spring-boot:run
#same error
Eureka doesn't run on JDK 9+ without some extra dependencies. Are you double sure you are using JDK 8 at the end there?
Thank you that was the issue. I had my JAVA_HOME and PATH set in .bashrc. Maven was looking at the value in /etc/environment which pointed to java 10. https://askubuntu.com/a/175547/623503
I change to jdk 8 , ti works!
I simply cloned the repo and ran "mvn spring-boot:run" on the "eureka-service".
I tried changing the port number. I created a new Spring Starter Project with Eureka Server, same issue. I created a config server, and that runs embedded Tomcat with no issue.
Here's the full error, but it doesn't seem to say much.