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;
^