Brand new to OrientDB and trying to get a small program running following
the instructions for "Embed the Server" in the documentation using
jre1.8.0_91.
I include the libraries orientdb-enterprise-2.1.16.jar and
orientdb-server-2.1.16.jar and copied the code from the docs.
OServer server = OServerMain.create();
Eclipse here complains about OServer and forces me to import import
com.orientechnologies.orient.server.OServer; - I am not sure if this is
correct?
When I try to start the program it fails with:
Exception in thread "main" java.lang.NoClassDefFoundError:
com/orientechnologies/orient/core/exception/OConfigurationException
at
com.orientechnologies.orient.server.OServerMain.create(OServerMain.java:26)
at OrientDBEmbeddable.main(OrientDBEmbeddable.java:14)
Caused by: java.lang.ClassNotFoundException:
com.orientechnologies.orient.core.exception.OConfigurationException
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 2 more
on the same line.
The server runs fine when I start it manually; I can work with the database
in Studio. Setting ORIENTDB_HOME seems to not make a difference; it
doesn't appear to be the server config, either. At this stage, I'm not even
sure where to look anymore. (Running Java
Is there a working example somewhere for this? (The 2.1 documentation still
refers to 1.0rc1-SNAPSHOT in the configursation example; I may be missing
something else that has changed, maybe?)
Cheers.
--
---
You received this message because you are subscribed to the Google Groups
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.