Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > where is org.apache.xpathin JDK 1.5?

Reply
Thread Tools

where is org.apache.xpathin JDK 1.5?

 
 
hilz
Guest
Posts: n/a
 
      02-01-2005
Hi all,
I have a project that I compile using java 1.4.
one of the source files imports org.apache.xpath.*
I have been trying to compile using JDK 1.5, but it is not working.
I looked at the src.zip file and found that this package does not exist
anymore in 1.5
I found another one javax.xml.xpath but it does not seem to have the same
XPath constructors, and thus, I am not able to successfully compile.

I am sure there must be something I am missing.
Can anyone tell me what do I need to do?

thanks
hilz


 
Reply With Quote
 
 
 
 
willirl
Guest
Posts: n/a
 
      02-01-2005
This is not part of JDK 1.5 it is part of the Apache project in a
separate jar file. Go to apache.org and look for the xpath download
there.

 
Reply With Quote
 
 
 
 
hilz
Guest
Posts: n/a
 
      02-01-2005

"willirl" <> wrote in message
news: ups.com...
> This is not part of JDK 1.5 it is part of the Apache project in a
> separate jar file. Go to apache.org and look for the xpath download
> there.
>


But wasn't it part of the JDK 1.4 ?
So how come they removed it from 1.5?

thanks
hilz


 
Reply With Quote
 
Virgil Green
Guest
Posts: n/a
 
      02-01-2005
hilz wrote:
> "willirl" <> wrote in message
> news: ups.com...
>> This is not part of JDK 1.5 it is part of the Apache project in a
>> separate jar file. Go to apache.org and look for the xpath download
>> there.
>>

>
> But wasn't it part of the JDK 1.4 ?


No

> So how come they removed it from 1.5?


They didn't.

--
Virgil


 
Reply With Quote
 
hilz
Guest
Posts: n/a
 
      02-01-2005

> >
> > But wasn't it part of the JDK 1.4 ?

>
> No
>


So how come when i open the src.zip file that is distributed with JDK 1.4
that i downloaded form java.sun.com, and look for the package
org.apache.xpath i can find it there?
And if i do the same with the src.zip file that came with JDK 1.5, i do not
find it there?

Or am I still missing something?
thanks
hilz


 
Reply With Quote
 
Steve W. Jackson
Guest
Posts: n/a
 
      02-01-2005
In article <6pSdnSXFm5DeRWLcRVn->, "hilz" <>
wrote:

> > >
> > > But wasn't it part of the JDK 1.4 ?

> >
> > No
> >

>
> So how come when i open the src.zip file that is distributed with JDK 1.4
> that i downloaded form java.sun.com, and look for the package
> org.apache.xpath i can find it there?
> And if i do the same with the src.zip file that came with JDK 1.5, i do not
> find it there?
>
> Or am I still missing something?
> thanks
> hilz


If you check, you'll find that there are a great many classes included
in src.zip that are not listed in the 1.4 API docs. That's because
they're not part of the API but are used at runtime. The class files
will appear in the rt.jar file in the jre/lib directory. It happens
that the org.apache.xpath package structure is among those. Much has
changed in 1.5, including a switch in the internal classes and packages
used for some of the XML-related operations.

= Steve =
--
Steve W. Jackson
Montgomery, Alabama
 
Reply With Quote
 
Roland
Guest
Posts: n/a
 
      02-01-2005
On 1-2-2005 20:21, Virgil Green wrote:
> hilz wrote:
>
>>"willirl" <> wrote in message
>>news: roups.com...
>>
>>>This is not part of JDK 1.5 it is part of the Apache project in a
>>>separate jar file. Go to apache.org and look for the xpath download
>>>there.
>>>

>>
>>But wasn't it part of the JDK 1.4 ?

>
>
> No
>


Actually, there is a whole bunch of classes in the org.apache.xpath
package in rt.jar of JRE 1.4.0, 1.4.1 and 1.4.2.
You might want to (re)check your rt.jar.

>
>>So how come they removed it from 1.5?

>
>
> They didn't.


They have, in favor of the javax.xml.xpath, which, according to
<http://java.sun.com/j2se/1.5.0/docs/guide/xml/jaxp/JAXP-Compatibility_150.html#new>,
"provides a more java-friendly way to use an XPath expression".

>
> --
> Virgil

--
Regards,

Roland de Ruiter
___ ___
/__/ w_/ /__/
/ \ /_/ / \
 
Reply With Quote
 
Virgil Green
Guest
Posts: n/a
 
      02-01-2005
Roland wrote:
> On 1-2-2005 20:21, Virgil Green wrote:
>> hilz wrote:
>>
>>> "willirl" <> wrote in message
>>> news: ups.com...
>>>
>>>> This is not part of JDK 1.5 it is part of the Apache project in a
>>>> separate jar file. Go to apache.org and look for the xpath
>>>> download there.
>>>>
>>>
>>> But wasn't it part of the JDK 1.4 ?

>>
>>
>> No
>>

>
> Actually, there is a whole bunch of classes in the org.apache.xpath
> package in rt.jar of JRE 1.4.0, 1.4.1 and 1.4.2.
> You might want to (re)check your rt.jar.
>
>>
>>> So how come they removed it from 1.5?

>>
>>
>> They didn't.

>
> They have, in favor of the javax.xml.xpath, which, according to
>

<http://java.sun.com/j2se/1.5.0/docs/...tibility_150.h
tml#new>,
> "provides a more java-friendly way to use an XPath expression".
>


I stand corrected.

--
Virgil


 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
JDK 1.5 or JDK 1.6 Pep Java 19 07-15-2007 12:06 AM
regarding JDk 141 and JDK 122 for linux 64 bit Platform Jaggu Java 3 01-08-2007 10:47 AM
What is the difference between J2EE, JDK, JDK-SDK, JRE and J2SE packages ? Ulf Meinhardt Java 0 08-10-2006 07:12 PM
jEdit: compiles JDK 1.5.0 ok, but runs JDK 1.4.1 (why?) Thomas G. Marshall Java 5 08-06-2004 04:12 AM
Help with converting IDS from JDK 1.1 to JDK 1.4 Babar Java 1 05-20-2004 09:11 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57