You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Lost <sh...@126.com> on 2015/09/18 05:06:55 UTC

java.lang.NoClassDefFoundError

HiI try to use saxReader with myproject,it
happen:java.lang.NoClassDefFoundError:
javax/xml/parsers/DocumentBuilderFactoryi think this class is in jre
Runtime, should i import it ?



--
View this message in context: http://apache-felix.18485.x6.nabble.com/java-lang-NoClassDefFoundError-tp5014750.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.

Re: java.lang.NoClassDefFoundError

Posted by Lost <sh...@126.com>.
Neil Bartlett wrote
> Yes.
> 
> You have to import all packages that you use, except for “java.*”.
> 
> 
>> On 18 Sep 2015, at 04:06, Lost &lt;

> shu_qingzhang@

> &gt; wrote:
>> 
>> HiI try to use saxReader with myproject,it
>> happen:java.lang.NoClassDefFoundError:
>> javax/xml/parsers/DocumentBuilderFactoryi think this class is in jre
>> Runtime, should i import it ?
>> 
>> 
>> 
>> --
>> View this message in context:
>> http://apache-felix.18485.x6.nabble.com/java-lang-NoClassDefFoundError-tp5014750.html
>> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 

> users-unsubscribe@.apache

> For additional commands, e-mail: 

> users-help@.apache

thanks ,when i import the package it works 



--
View this message in context: http://apache-felix.18485.x6.nabble.com/java-lang-NoClassDefFoundError-tp5014750p5014776.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: java.lang.NoClassDefFoundError

Posted by Neil Bartlett <nj...@gmail.com>.
Yes.

You have to import all packages that you use, except for “java.*”.


> On 18 Sep 2015, at 04:06, Lost <sh...@126.com> wrote:
> 
> HiI try to use saxReader with myproject,it
> happen:java.lang.NoClassDefFoundError:
> javax/xml/parsers/DocumentBuilderFactoryi think this class is in jre
> Runtime, should i import it ?
> 
> 
> 
> --
> View this message in context: http://apache-felix.18485.x6.nabble.com/java-lang-NoClassDefFoundError-tp5014750.html
> Sent from the Apache Felix - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org