You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Carli Schultz Kruse <ca...@organic.com> on 2000/10/18 03:13:25 UTC

xerces and mac problem

So I'm incredibly frustrated at the lack of parsers for Mac. I have a 
pc, but am being stubborn about it.
I had the MRJ SDK 2.2, the MRJ 2.2.3 on my box. Downloaded xerces. 
Played with the JBinder as instructed in the FAQ under how to run on 
a mac.

got an error, seemed to be missing the sax. Downloaded Sax 2, added 
the sax.jar into the stuff I put in the classpath thru jbinder.

This is now the error I get, similar to the one before I downloaded 
Sax, just a different piece appears to not be defined.

data/personal.xml:
Exception Occurred:
java.lang.NoClassDefFoundError: org/apache/xerces/parsers/DOMParser
	at dom.wrappers.DOMParser.<init>(DOMParser.java:86)
	at dom.DOMWriter.print(DOMWriter.java:198)
	at dom.DOMWriter.main(Compiled Code)
	at 
com.apple.mrj.JManager.JMStaticMethodDispatcher.run(JMAWTContextImpl.j 
ava)
	at java.lang.Thread.run(Thread.java)


any ideas what I am missing, or shoudl do? I'm not strong in Java, 
but think I downloaded all the pieces I needed. As I said the 
instructions can be found in the FAQ. Thanks for reading. =)

I love xerces on NT,  which is part of why I want to be able to use 
it on the mac. Dealing with not having xalan won't be fun either.

car
--------------------------------------------->>>
House of the Moon				Carli Schultz Kruse
http://www.lunesse.com	           Organic, http://www.organic.com
						San Francisco

Re: xerces and mac problem

Posted by h e n r i k <he...@xl-studio.se>.
I don“t have any problems running/compiling on MacOS, only xerces.jar 
needed in classpath.


Carli Schultz Kruse wrote:
> 
> So I'm incredibly frustrated at the lack of parsers for Mac. I have a
> pc, but am being stubborn about it.
> I had the MRJ SDK 2.2, the MRJ 2.2.3 on my box. Downloaded xerces.
> Played with the JBinder as instructed in the FAQ under how to run on
> a mac.
> 
> got an error, seemed to be missing the sax. Downloaded Sax 2, added
> the sax.jar into the stuff I put in the classpath thru jbinder.
> 
> This is now the error I get, similar to the one before I downloaded
> Sax, just a different piece appears to not be defined.
> 
> data/personal.xml:
> Exception Occurred:
> java.lang.NoClassDefFoundError: org/apache/xerces/parsers/DOMParser
>         at dom.wrappers.DOMParser.<init>(DOMParser.java:86)
>         at dom.DOMWriter.print(DOMWriter.java:198)
>         at dom.DOMWriter.main(Compiled Code)
>         at
> com.apple.mrj.JManager.JMStaticMethodDispatcher.run(JMAWTContextImpl.j
> ava)
>         at java.lang.Thread.run(Thread.java)
> 
> any ideas what I am missing, or shoudl do? I'm not strong in Java,
> but think I downloaded all the pieces I needed. As I said the
> instructions can be found in the FAQ. Thanks for reading. =)
> 
> I love xerces on NT,  which is part of why I want to be able to use
> it on the mac. Dealing with not having xalan won't be fun either.
> 
> car
> --------------------------------------------->>>
> House of the Moon                               Carli Schultz Kruse
> http://www.lunesse.com             Organic, http://www.organic.com
>                                                 San Francisco
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-dev-help@xml.apache.org

Re: xerces and mac problem

Posted by Ramesh Gupta <ra...@eNode.com>.
on 10/18/00 4:00 AM, PATRICK ROCHE at pjmroche@indigo.ie wrote:

> The problem lies in the XML4J-bin.3.0.1.tar.gz archive. Stuffit expander
> does not seem to expand this file correctly.
> Download the XML4J-bin.3.0.1.zip archive. Stuffit is quite happy with this.
> The expanded archive worked perfectly for me (as per the FAQ).
> It might be a good idea to add this information to the FAQ file.
> Patrick

Patrick,

Have you tried downloading Xerces from http://xml.apache.org/dist/xerces-j/
instead of downloading XML4J from IBM?

I wonder if one's experience would be any different in this case. Just
curious.

Ramesh


Re: xerces and mac problem

Posted by PATRICK ROCHE <pj...@indigo.ie>.
>So I'm incredibly frustrated at the lack of parsers for Mac. I have a
>pc, but am being stubborn about it.
>I had the MRJ SDK 2.2, the MRJ 2.2.3 on my box. Downloaded xerces.
>Played with the JBinder as instructed in the FAQ under how to run on
>a mac.
>
>got an error, seemed to be missing the sax. Downloaded Sax 2, added
>the sax.jar into the stuff I put in the classpath thru jbinder.
>
>This is now the error I get, similar to the one before I downloaded
>Sax, just a different piece appears to not be defined.
>
>data/personal.xml:
>Exception Occurred:
>java.lang.NoClassDefFoundError: org/apache/xerces/parsers/DOMParser
>	at dom.wrappers.DOMParser.<init>(DOMParser.java:86)
>	at dom.DOMWriter.print(DOMWriter.java:198)
>	at dom.DOMWriter.main(Compiled Code)
>	at
>com.apple.mrj.JManager.JMStaticMethodDispatcher.run(JMAWTContextImpl.j
>ava)
>	at java.lang.Thread.run(Thread.java)
>
>
>any ideas what I am missing, or shoudl do? I'm not strong in Java,
>but think I downloaded all the pieces I needed. As I said the
>instructions can be found in the FAQ. Thanks for reading. =)
>
>I love xerces on NT,  which is part of why I want to be able to use
>it on the mac. Dealing with not having xalan won't be fun either.
>
>car

Carli,
I know just how you feel!
The problem lies in the XML4J-bin.3.0.1.tar.gz archive. Stuffit expander
does not seem to expand this file correctly.
Download the XML4J-bin.3.0.1.zip archive. Stuffit is quite happy with this.
The expanded archive worked perfectly for me (as per the FAQ).
It might be a good idea to add this information to the FAQ file.
Patrick



Re: xerces and mac problem

Posted by Ramesh Gupta <ra...@eNode.com>.
on 10/17/00 6:48 PM, Carli Schultz Kruse at carli@organic.com wrote:

> yep, I added it in. I added 3 jar files in the classpath, sax,
> xerces, and a xerces sample file.

Carli,

Xerces already includes the SAX classes, so you should only add Xerces.jar
to your classpath. Somebody else had the same problem a couple weeks ago,
and the relevant conversation is reproduced below. Hope this helps.

Ramesh




on 10/2/00 6:38 AM, PATRICK ROCHE at pjmroche@indigo.ie wrote:

> Ramesh, 
> Thanks for your ideas - tried them all but no success.
> 
> I finally cracked the problem by downloading the XML4J-bin.3.0.1.zip archive
> and unzipped it with stuffit expander.
> 
> Everything worked as per the FAQs instructions for running on the Mac.
> 
> No increase in memory required - no need to move the jar files to the system
> folder. 
> 
> Obviously the Mac is not happy with the XML4J-bin.3.0.1.tar.gz archive. Has
> anybody else experienced this problem?
> Patrick. 

>> on 10/1/00 11:23 AM, PATRICK ROCHE at pjmroche@indigo.ie wrote:
>> 
>>> Increased the memory to 10000 K !! Removed sax.jar from the classpath and
>>> now get this error message
>>> 
>>> data/personal.xml:
>>> Exception Occurred:
>>> java.lang.NoClassDefFoundError: org/xml/sax/ErrorHandler
>>> 
>>> Put sax.jar back into the classpath and now get this error
>>> 
>>> data/personal.xml:
>>> Exception Occurred:
>>> java.lang.NoClassDefFoundError: org/apache/xerces/parsers/DOMParser
>> 
>>> Weird?
>> 
>> This could only mean that your Xerces.jar is not being found! All of the
>> required Sax classes are included in Xerces.jar.
>> 
>> Since adding a separate sax.jar to your classpath seems to make the sax
>> classes visible, it is clear that the sax classes in the Xerces.jar file
>> were (and still are) invisible to your bindery app.
>> 
>> Try recreating your JBindery app from scratch, making sure you add
>> Xerces.jar the same way you added sax.jar (but don't include the latter).
>> You may also try to move your Xerces.jar file to the same location as the
>> other MRJ files (I believe in the Extensions folder) before creating the
>> bindery to see if that helps.
>> 
>> Ramesh


Re: xerces and mac problem

Posted by Carli Schultz Kruse <ca...@organic.com>.
yep, I added it in. I added 3 jar files in the classpath, sax, 
xerces, and a xerces sample file.

oy!


I know java support sucks on mac =) But I want to try it anyway, 
sometimes I will only have access to a mac and if there's any option, 
I'd like to at least learn how to make it work. =)
--------------------------------------------->>>
House of the Moon				Carli Schultz Kruse
http://www.lunesse.com	           Organic, http://www.organic.com
						San Francisco

Re: xerces and mac problem

Posted by Patrick Haggerty <ha...@mindspring.com>.
I don't know that much about Java support on a Mac (other than it sucks), 
but if I got your error anywhere else, I would say that it is a classpath 
error. You need to make sure that your xerces.jar is added to the classpath.

Just a guess!

At 06:13 PM 10/17/2000 -0700, you wrote:
>So I'm incredibly frustrated at the lack of parsers for Mac. I have a pc, 
>but am being stubborn about it.
>I had the MRJ SDK 2.2, the MRJ 2.2.3 on my box. Downloaded xerces. Played 
>with the JBinder as instructed in the FAQ under how to run on a mac.
>
>got an error, seemed to be missing the sax. Downloaded Sax 2, added the 
>sax.jar into the stuff I put in the classpath thru jbinder.
>
>This is now the error I get, similar to the one before I downloaded Sax, 
>just a different piece appears to not be defined.
>
>data/personal.xml:
>Exception Occurred:
>java.lang.NoClassDefFoundError: org/apache/xerces/parsers/DOMParser
>         at dom.wrappers.DOMParser.<init>(DOMParser.java:86)
>         at dom.DOMWriter.print(DOMWriter.java:198)
>         at dom.DOMWriter.main(Compiled Code)
>         at 
> com.apple.mrj.JManager.JMStaticMethodDispatcher.run(JMAWTContextImpl.j ava)
>         at java.lang.Thread.run(Thread.java)
>
>
>any ideas what I am missing, or shoudl do? I'm not strong in Java, but 
>think I downloaded all the pieces I needed. As I said the instructions can 
>be found in the FAQ. Thanks for reading. =)
>
>I love xerces on NT,  which is part of why I want to be able to use it on 
>the mac. Dealing with not having xalan won't be fun either.


Cheers!
Hagg
That's Internet for:
Patrick E. Haggerty, III

Always striving to be the person
that my dog thinks I am