Forums Register Login

Run a servlet

1
+Pie Number of slices to send: Send
Hi everybody

I'm a new java servlet user.
In the Windows 7 DOS prompt i typped the pass to my servlet.java.
The OS doesn't recognize the instruction javac as a valid command line.
Please help me to solve this problem.
Best regards.

Antonio Paulo.
+Pie Number of slices to send: Send
Your Java SDK bin directory is not set in the Wondows 7 Path. Hence window is not able to recognize it as a valid command.
You can copy the servlet.java file in the bin directory of your Java SDK folder and run it from there.
+Pie Number of slices to send: Send
Append 'PATH' environment variable to path of of your Java SDK and separate it via ;(Semicolon.

Create a CLASSPATH environment variable and set its value to . (Dot) and then add semicolon and
also enter path of Tomcat/lib/servlet-api.jar

You will need HTTP* classes explicitly to compile servlets.

Now, you should be able to run javac from command prompt
You didn't tell me he was so big. Unlike this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 973 times.
Similar Threads
Is there any way to get Servlet Init Parameter using EL?
javascript, servlets and SVG
Export in Excel
Capturing Form Data
How can I change the sdk version of Websphere 4 if I already install it
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 15, 2024 23:36:04.