Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > J2EE
|
J2EE General J2EE (Java 2 Enterprise Edition) discussions. Questions not specific to EE will be redirected elsewhere.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the J2EE section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 9th, 2004, 09:47 AM
Authorized User
 
Join Date: Sep 2003
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default package org.xml does not exist??

I am wondering if anyone can help me.

Having eventually managed to install J2EE on my Linux box and windows box (It works successfully, I have tested it using the sample .war apps) I went to try and program my coursework (Using XML and java).

Firstly I thought I'd test that I could see the necessary packages. so I wrote
Code:
import org.xml.*;
...
when I javac'd it, it cam up with the error package org.xml does not exist. I thought I have included all the necessary jar files in the classpath
Code:
javac -classpath $J2EE_HOME/jdk/lib/rt.jar testXML.java
does anyone know how t solve this problem. Where is the org.xml package jar'd?

I am new to J2EE and my java experience is limited (Imports so far have all been in rt.jar.)

Any help is greatly appreciated.
Thanks in advance

---
David Thorne, Student
UK
__________________
---
David Thorne, Student
UK
 
Old May 10th, 2004, 05:26 PM
Authorized User
 
Join Date: Sep 2003
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have managed to solve it.

In case anyone was wondering (And I feel pretty silly ()for not checking all jar files properly (Thank you jar -tf!) the package org.xml is located at $ANT_HOME (Or %ANT_HOME% under windows) /lib/xml-apis.jar! Include that in your classpath and it works like a dream.

Man I feel silly!!!

---
David Thorne, Student
UK





Similar Threads
Thread Thread Starter Forum Replies Last Post
org.xml.sax.SAXParseException: Premature end ksskumar XSLT 1 March 19th, 2008 04:01 AM
package net.sf.jasperreports.engine does not exist geeta.java BOOK: Beginning JavaServer Pages 1 January 8th, 2008 04:34 AM
Package javax.servlet.jsp does not exist wottt JSP Basics 5 January 17th, 2007 06:37 AM
package javax.servlet does not exist ...HELP Jil Servlets 3 September 12th, 2004 03:58 PM
import org.xml.sax is deprecated sax XML 1 November 17th, 2003 08:35 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.