We help IT Professionals succeed at work.
Get Started

Where I can find javax library in Java

duncanb7 asked
Last Modified: 2013-11-24
Dear Expert,

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 ...\java\bin\ 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

D:\wkw\Summary\internet-language\chart-Graph\javademo\ChartDirector>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;

Open in new window

Watch Question
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE