|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Cannot run xmlbeans/javamethods using JNI
Hi ,
I am having problem invoking a Javamethod from C/C++. I get the following error : java.lang.NoClassDefFoundError: org/apache/xmlbeans/XmlException Exception in thread "main" My main function is written in C. And my Java method uses xmlbeans (version 2.0.0) jar files to manipulate a XML file. I thought it was a Classpath issue. I tried passing the classpath by setting JavaVMOption options[1]; options[0].optionString = "-Djava.class.path=." , i tried setting the path here. I tried setting the path in classpath env. variable. I tried setting the class path by using system property. System.setProperty("java.class.path ", "C:\\xmlbeans\\xmlbeans-2.0.0\\lib;C:\\eclipse\\workspace\\parseXML;C:\\ec lipse\\workspace\\javaJNI"); I even tried bringing the third party jar files xbean.jar ( which contains the XmlException class) and other required jar files in the current directory. It did not work. Can anyone help. thanks, Sanjay p.s. I am using eclipse IDE. I tried using command line (DOS). It did not work. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Java Development > Cannot run xmlbeans/javamethods using JNI |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|