I work under linux fedora 27 server + Gnome.
I test a new method to develop in java EE, with eclipse ide for java developer.
The method consite to develop directly in the Webapps of Tomcat 8.5.x,
So I do not use the standard method of developing with Eclipse for Java EE.
In the <webapps> directory of tomcat I put my files containing servlets with their reciprocal class.
It's a bit complicated but I test it.
My problem is that I can not find my ClassPath of jdk 1.8 which is operational.
when I run to compile my servlet >> javac myservlet.java.
>> javac can not find: servlet-api.jar which is in my classpath.
How can I make the link and referenced servlet-api.jar in my classpath ?
Which part? Finding the jar file in the Tomcat distribution? Or adding it to the classpath?
For the first, refer to your Tomcat instructions. Or you can simply do a search (either via find command or the Windows search function) for it in the distribution. For the latter, refer to this... https://coderanch.com/wiki/660138/Set-Classpath
* just noticed that this was in the Linux forum, so removed the reference to Windows.