Hi,

You need to add all the libs that are located in “apache-version/libs” folder 
to your classpath.

—
Denis

> On Sep 12, 2016, at 2:46 PM, Abhishek Jain <[email protected]> 
> wrote:
> 
> Hi,
> 
> Not able to execute the Demo example given in the Automatic Persistence from 
> the command line in linux. Below is the console output, please let me know if 
> I am missing out anything. I tried couple of ways below with NO success
> 
> ===========================================================
> 
> [root@dbtestvm1 target]# java -classpath ignite-examples-1.6.0.jar 
> org.apache.ignite.schema.Demo
> Error: A JNI error has occurred, please check your installation and try again
> Exception in thread "main" java.lang.NoClassDefFoundError: 
> javax/cache/configuration/Factory
>       at java.lang.Class.getDeclaredMethods0(Native Method)
>       at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
>       at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
>       at java.lang.Class.getMethod0(Class.java:3018)
>       at java.lang.Class.getMethod(Class.java:1784)
>       at 
> sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
>       at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
> Caused by: java.lang.ClassNotFoundException: javax.cache.configuration.Factory
>       at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>       ... 7 more
> [root@dbtestvm1 target]# 
> [root@dbtestvm1 target]# 
> [root@dbtestvm1 target]# 
> [root@dbtestvm1 target]# 
> [root@dbtestvm1 target]# echo $CLASSPATH
> /root/ignite/apache-ignite-fabric-1.6.0-bin/libs:/usr/java/default/jre/lib/
> [root@dbtestvm1 target]# 
> [root@dbtestvm1 target]# java -jar ignite-examples-1.6.0.jar 
> org.apache.ignite.schema.Demo
> no main manifest attribute, in ignite-examples-1.6.0.jar
> [root@dbtestvm1 target]# 
> [root@dbtestvm1 target]#
> 
> ==========================================================
> 
> Regards
> Abhishek

Reply via email to