This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Compilation error

 
Mani Raju
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
i am getting error "org.apache.xpath: cannot be resolved".
Even i added xalan-2.7.1.jar file in required location and it is not corrupted.
I could not find the reason for that.
 
Ivan Jozsef Balazs
Rancher
Posts: 981
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible that you try to use a package name as a class name?
 
Mani Raju
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ivan Jozsef Balazs wrote:Is it possible that you try to use a package name as a class name?

Thanks, i used as "org.apache.xpath.XPathAPI.selectNodeList() ".
 
Mani Raju
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mani Raju wrote:
Ivan Jozsef Balazs wrote:Is it possible that you try to use a package name as a class name?

Thanks, i used as "org.apache.xpath.XPathAPI.selectNodeList() ".
In this case i am getting error.

 
Mani Raju
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mani Raju wrote:
Mani Raju wrote:
Ivan Jozsef Balazs wrote:Is it possible that you try to use a package name as a class name?

Thanks, i used as "org.apache.xpath.XPathAPI.selectNodeList() ".
In this case i am getting error.


I could not find the reason for "org.apache.xpath : can not be resolved".
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15492
43
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you show us the exact line of code where the error happens? And the exact error message (copy & paste the output of the compiler)?

Are you sure the types of the arguments that you pass to the method match exactly what the method expects? Are you sure that you have the JAR file that contains the package / class / method in the classpath?
 
Mani Raju
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jesper de Jong wrote:Can you show us the exact line of code where the error happens? And the exact error message (copy & paste the output of the compiler)?

Are you sure the types of the arguments that you pass to the method match exactly what the method expects? Are you sure that you have the JAR file that contains the package / class / method in the classpath?


Thanks, nodeLs = org.apache.xpath.XPathAPI.selectNodeList(document.getFirstChild(),xpath);
In this line i am getting error.
Arguments passed correctly.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic