Ask Question Forum:
Model Library:2025-02-08:A.I. model is online auto reply
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by duncanb7
at 2024-06-11 07:23:08
Point:500 Replies:2 POST_ID:828333USER_ID:11059
Topic:
J2EE;;
When one open source file which requires Java servlet and the coding as follows.
javac report error showns aslo as follows. But it doesn't report the import error from
"import javax.swing.*. So I try to download the servlet from Java Sun at
https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/DownloadSingleSoftware-Start?OrderID=louJ_hCy53gAAAEpQqNu7APQ&ProductRef=jdk-6u20-oth-JPR_Multi-language_with_Windows%40CDS-CDS_Developer. Those is only source code. And I check my installed Java
directory at ...javain there is no any javax thing.
Question-1: Where the file javax file located in java directory so that I could set a path ?
Question-2: Where I can download Java Servlet ?
question-3, Why import javax.swing.* passed but javax.servlet.*** doesn't pass
Please advise it kindly
Duncan
D:wkwSummaryinternet-languagechart-GraphjavademoChartDirector>javac -c
BaseChart.java:9: package javax.servlet does not exist
/* */ import javax.servlet.ServletContext;
^
BaseChart.java:10: package javax.servlet does not exist
/* */ import javax.servlet.ServletRequest;
^
BaseChart.java:11: package javax.servlet.http does not exist
/* */ import javax.servlet.http.HttpServletRequest;
^
BaseChart.java:12: package javax.servlet.http does not exist
/* */ import javax.servlet.http.HttpSession;
^
javac report error showns aslo as follows. But it doesn't report the import error from
"import javax.swing.*. So I try to download the servlet from Java Sun at
https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/DownloadSingleSoftware-Start?OrderID=louJ_hCy53gAAAEpQqNu7APQ&ProductRef=jdk-6u20-oth-JPR_Multi-language_with_Windows%40CDS-CDS_Developer. Those is only source code. And I check my installed Java
directory at ...javain there is no any javax thing.
Question-1: Where the file javax file located in java directory so that I could set a path ?
Question-2: Where I can download Java Servlet ?
question-3, Why import javax.swing.* passed but javax.servlet.*** doesn't pass
Please advise it kindly
Duncan
D:wkwSummaryinternet-languagechart-GraphjavademoChartDirector>javac -c
BaseChart.java:9: package javax.servlet does not exist
/* */ import javax.servlet.ServletContext;
^
BaseChart.java:10: package javax.servlet does not exist
/* */ import javax.servlet.ServletRequest;
^
BaseChart.java:11: package javax.servlet.http does not exist
/* */ import javax.servlet.http.HttpServletRequest;
^
BaseChart.java:12: package javax.servlet.http does not exist
/* */ import javax.servlet.http.HttpSession;
^
/* */ import java.awt.Image;/* */ import java.io.File;/* */ import java.net.URL;/* */ import java.util.Collections;/* */ import java.util.Date;/* */ import java.util.Vector;/* */ import javax.swing.*;/* */ import javax.servlet.ServletContext;/* */ import javax.servlet.ServletRequest;/* */ import javax.servlet.http.HttpServletRequest;/* */ import javax.servlet.http.HttpSession;/* * import javax.servlet.jsp.PageContext; 1:2:3:4:5:6:7:8:9:10:11:12:
Author: duncanb7 replied at 2024-06-11 10:18:24
It is passed, thanks
Accepted Solution
Expert: pramodkrjsr replied at 2024-06-11 09:30:05
500 points GOOD
you can find at :
1) if tomcat installed:
Tomcat 5.5commonlibservlet-api.jar
2) http://mirrors.ibiblio.org/pub/mirrors/maven2/milyn/j2ee/1.4/j2ee-1.4.jar