Wrox Programmer Forums
|
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 15th, 2004, 05:44 AM
Registered User
 
Join Date: May 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to mehdi_979
Default Java & Xml


Hello

I use following line in my code.

import com.sun.xml.tree.XmlDocument;

but i have not jar file or liberary for aading to my project.

where I can find this jar file;

I use j2sdk1.4.1_04

help me Please

 
Old May 15th, 2004, 06:03 AM
Authorized User
 
Join Date: Sep 2003
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I was having great trouble using XML and J2EE. Here is a list of things you might like to try.

You need to download J2EE from sun. You can download it form this URL http://java.sun.com/j2ee/1.4/download.html#sdk
If you have downloaded it, and installed it correctly (I suggest it possible, using the default install path as any tutorials on Sun's website use these paths), (Ensuring the classpaths are set as follows: (Platform independent)
(Under windows use %variable%)
$JAVA_HOME=/path/to/your/already/installed/javaSDK (Default is directory u ran bin file from on Linux. On Windows C:\j2sdk_version)
$J2EE_HOME=/opt/SUNWappserver/ (Linux) C:\sun\appserver (I think, can't remember!)
$ANT_HOME = J2EE_HOME/lib/ant/
and add the following to your path (IE The directories looked for when executing)

PATH=$PATH:$JAVA_HOME/bin:$J2EE_HOME/bin:$ANT_HOME/bin you can (Under Linux) store these in /etc/profiles OR (If u don't have root access) create a .bash_profile and add the above. Windows you need admin privileges, and I can't remember how to solve it if u don't.

When this has done, the XML jar files I was looking for (SAX, and Xerces) were found in $ANT_HOME/lib/xml-apis.jar

HTH


---
David Thorne, Student
UK





Similar Threads
Thread Thread Starter Forum Replies Last Post
JavaScript & XML & NN lmod Javascript How-To 0 August 18th, 2005 03:16 PM
XML from a DB recordset (removal of <>) Thodoris XML 3 July 13th, 2004 12:28 AM
Java & Xml mehdi_979 XML 1 May 20th, 2004 11:47 PM
about XML receive by tomcatand XML parse by java taianmhzy Servlets 0 May 20th, 2004 01:59 AM





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