Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > J2EE
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 9th, 2004, 09:47 AM
Authorized User
 
Join Date: Sep 2003
Location: Cambridge, , United Kingdom.
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
Reply With Quote
  #2 (permalink)  
Old May 10th, 2004, 05:26 PM
Authorized User
 
Join Date: Sep 2003
Location: Cambridge, , United Kingdom.
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 08:55 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.