Hello,
I just installed basex 7.2.1 for the first time. Then I would like to start the server so I can use a command line client to query it. But I got this error:
$ java -cp BaseX.jar org.basex.BaseXServer Exception in thread "main" java.lang.NoClassDefFoundError: org/basex/BaseXServer Caused by: java.lang.ClassNotFoundException: org.basex.BaseXServer at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
I'm on OSX 10.7.4 BaseX is installed in /Applications/BaseX.app
Thanks.
Hi,
this is a pure Java error; it indicates that the addressed Java class could not be found. Did you run the java call from the correct directory?
Christian ______________________
I just installed basex 7.2.1 for the first time. Then I would like to start the server so I can use a command line client to query it. But I got this error:
$ java -cp BaseX.jar org.basex.BaseXServer Exception in thread "main" java.lang.NoClassDefFoundError: org/basex/BaseXServer Caused by: java.lang.ClassNotFoundException: org.basex.BaseXServer at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
I'm on OSX 10.7.4 BaseX is installed in /Applications/BaseX.app
Thanks. _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
In fact I took the command from http://docs.basex.org/wiki/Startup
What would be the good directory to run that command from? The one containing BaseX.jar? BaseX.jar does not exist on my system. So is it just an command example?
I thought that it was the out-of-the-box command to start a server without using the GUI.
On Thu, May 10, 2012 at 8:19 PM, Christian Grün christian.gruen@gmail.com wrote:
Hi,
this is a pure Java error; it indicates that the addressed Java class could not be found. Did you run the java call from the correct directory?
Christian ______________________
I just installed basex 7.2.1 for the first time. Then I would like to start the server so I can use a command line client to query it. But I got this error:
$ java -cp BaseX.jar org.basex.BaseXServer Exception in thread "main" java.lang.NoClassDefFoundError: org/basex/BaseXServer Caused by: java.lang.ClassNotFoundException: org.basex.BaseXServer at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
I'm on OSX 10.7.4 BaseX is installed in /Applications/BaseX.app
Thanks. _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
I started the server from the GUI and examined the process in BSD. I figured out the exact command was:
java -cp /Applications/BaseX.app/Contents/Resources/Java/repo/org/basex/basex/7.2.1/basex-7.2.1.jar org.basex.BaseXServer
I used the bash script, but also without success because nothing in the script make it possible to find that jar file.
On Thu, May 10, 2012 at 8:33 PM, Philippe Rathé prathe@gmail.com wrote:
In fact I took the command from http://docs.basex.org/wiki/Startup
What would be the good directory to run that command from? The one containing BaseX.jar? BaseX.jar does not exist on my system. So is it just an command example?
I thought that it was the out-of-the-box command to start a server without using the GUI.
On Thu, May 10, 2012 at 8:19 PM, Christian Grün christian.gruen@gmail.com wrote:
Hi,
this is a pure Java error; it indicates that the addressed Java class could not be found. Did you run the java call from the correct directory?
Christian ______________________
I just installed basex 7.2.1 for the first time. Then I would like to start the server so I can use a command line client to query it. But I got this error:
$ java -cp BaseX.jar org.basex.BaseXServer Exception in thread "main" java.lang.NoClassDefFoundError: org/basex/BaseXServer Caused by: java.lang.ClassNotFoundException: org.basex.BaseXServer at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
I'm on OSX 10.7.4 BaseX is installed in /Applications/BaseX.app
Thanks. _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
What would be the good directory to run that command from? The one containing BaseX.jar?
Well, you'll only succeed if the argument of your -cp argument points to a JAR file, or a directory with Java classes. Otherwise, the Java runtime environment will have no clue where to locate the code to be executed.
Thanks,
It maybe was because the basexserver script is erroneous in the doc that I was confused by having an error while running it.
The links to both scripts basexserver and basexclient are the same (basexclient) in the doc: http://docs.basex.org/wiki/Startup
I figured out what was the basexserver script (only the last line changed?), but could you leave me a note when it will be fixed?
On Thu, May 10, 2012 at 8:57 PM, Christian Grün christian.gruen@gmail.com wrote:
What would be the good directory to run that command from? The one containing BaseX.jar?
Well, you'll only succeed if the argument of your -cp argument points to a JAR file, or a directory with Java classes. Otherwise, the Java runtime environment will have no clue where to locate the code to be executed.
basex-talk@mailman.uni-konstanz.de