Estou usando win 10, Eclipse, Java 11.
1 - tentei criar workspace novo
2- Reinstalei o Eclipse
3 - Verifiquei que após a atualização do win 10, as variáveis de ambiente sumiram, reconfigurei
JAVA-HOME
C:\Program Files\Java\jdk-11.0.8
JRE_HOME
C:\Program Files\Java\jdk-11.0.8
CLASSPATH
%JAVA_HOME%\lib;
PATH adicionei a linha
%JAVA_HOME%\bin
testes:
C:\Users\eelet\Documents\eclipseJAVATomCat\apache-tomcat-9.0.6\bin>java -version
java version “11.0.8” 2020-07-14 LTS
Java™ SE Runtime Environment 18.9 (build 11.0.8+10-LTS)
Java HotSpot™ 64-Bit Server VM 18.9 (build 11.0.8+10-LTS, mixed mode)
C:\Users\eelet\Documents\eclipseJAVATomCat\apache-tomcat-9.0.6\bin>javac -version
javac 11.0.8
C:\Users\eelet\Documents\eclipseJAVATomCat\apache-tomcat-9.0.6\bin>startup.bat
Using CATALINA_BASE: “C:\Users\eelet\Documents\eclipseJAVATomCat\apache-tomcat-9.0.6”
Using CATALINA_HOME: “C:\Users\eelet\Documents\eclipseJAVATomCat\apache-tomcat-9.0.6”
Using CATALINA_TMPDIR: “C:\Users\eelet\Documents\eclipseJAVATomCat\apache-tomcat-9.0.6\temp”
Using JRE_HOME: “C:\Program Files\Java\jdk-11.0.8”
Using CLASSPATH: “C:\Users\eelet\Documents\eclipseJAVATomCat\apache-tomcat-9.0.6\bin\bootstrap.jar;C:\Users\eelet\Documents\eclipseJAVATomCat\apache-tomcat-9.0.6\bin\tomcat-juli.jar”
criei um projeto em dynamic web project e o eclipse trava
tentei rodar na pasta webcontent este arquivo index.html e o eclipse trava.
<html> <head> <meta charset="ISO-8859-1"> <title>Insert title here</title> </head> <body> <h1>teste </h1> </body> </html>
Web.xml
<?xml version="1.0" encoding="UTF-8"?>xmlns=“http://xmlns.jcp.org/xml/ns/javaee” >xsi:schemaLocation=“http://xmlns.jcp.org/xml/ns/javaee >http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd” id=“WebApp_ID” version=“3.1”>
teste
index.html
index.htm
index.jsp
default.html
default.htm
default.jsp
No navegador
http://localhost:8080
HTTP Status 404 – Not Found
Type Status Report
Message /
Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.