Readers,
Basex772 jar file was installed into a directory /usr/local/basex
A symbolic link was created:
cat >> /usr/local/bin/basex java -jar /usr/local/basex/basex772.jar
In normal user home directory, basex started from command terminal, but the command line options are not active, e.g. 'basex -h' does not show the help file in the command terminal, but starts basex standalone.
Also command terminal 'basex -i /path/to/existing/xmlfile.xml' does not open the xml file, but starts basex.
Hi,
Basex772 jar file was installed into a directory /usr/local/basex A symbolic link was created:
cat >> /usr/local/bin/basex java -jar /usr/local/basex/basex772.jar
I guess the link was created by yourself and, if run, it starts the BaseX GUI? In that case, the following Java call should do what you need:
java -cp /usr/local/basex/basex772.jar org.basex.BaseX
You can optionally check out the following Wiki article to see what other startup options may be helpful:
http://docs.basex.org/wiki/Start_Scripts
Those scripts are already shipped with the BaseX ZIP version, which also includes support for building web applications, etc.
Hope this helps, Christian
On 19/12/2013, Christian Grün christian.gruen@gmail.com wrote:
Hi,
Basex772 jar file was installed into a directory /usr/local/basex A symbolic link was created:
cat >> /usr/local/bin/basex java -jar /usr/local/basex/basex772.jar
I guess the link was created by yourself and, if run, it starts the BaseX GUI? In that case, the following Java call should do what you need:
Yes, the gui starts
java -cp /usr/local/basex/basex772.jar org.basex.BaseX
The link was edited to:
#!/bin/bash #exec java -jar /usr/local/basex/basex772.jar exec java -cp /usr/local/basex/basex772.jar org.basex.BaseX
This activates the command terminal:
$ basex BaseX 7.7.2 [Standalone] Try help to get more information.
You can optionally check out the following Wiki article to see what other startup options may be helpful:
Copied the basexhttp, then changed permissions to 'u+x', then tried to activate:
$ basexhttp /usr/local/bin/basexhttp: line 11: cd: /usr/local/../basex: No such file or directory Exception in thread "main" java.lang.NoClassDefFoundError: org/basex/BaseXHTTP Caused by: java.lang.ClassNotFoundException: org.basex.BaseXHTTP at java.net.URLClassLoader$1.run(URLClassLoader.java:217) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at java.lang.ClassLoader.loadClass(ClassLoader.java:321) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) at java.lang.ClassLoader.loadClass(ClassLoader.java:266) Could not find the main class: org.basex.BaseXHTTP. Program will exit.
Then line 11 edited:
BXCORE="$( cd -P "/usr/local/basex" && pwd )"
$ basexhttp Exception in thread "main" java.lang.NoClassDefFoundError: org/basex/BaseXHTTP Caused by: java.lang.ClassNotFoundException: org.basex.BaseXHTTP at java.net.URLClassLoader$1.run(URLClassLoader.java:217) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at java.lang.ClassLoader.loadClass(ClassLoader.java:321) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) at java.lang.ClassLoader.loadClass(ClassLoader.java:266) Could not find the main class: org.basex.BaseXHTTP. Program will exit.
What must I do to solve this error?
…check out the zip distribution, as it’s explained in our Wiki: http://docs.basex.org/wiki/Startup#BaseX_HTTP_Server ___________________________
Dr. Christian Grün DBIS Working Group, Computer Science Room E209, Box 188, D-78457 Konstanz http://www.inf.uni-konstanz.de/~gruen
On Thu, Dec 19, 2013 at 12:19 PM, e-letter inpost@gmail.com wrote:
On 19/12/2013, Christian Grün christian.gruen@gmail.com wrote:
Hi,
Basex772 jar file was installed into a directory /usr/local/basex A symbolic link was created:
cat >> /usr/local/bin/basex java -jar /usr/local/basex/basex772.jar
I guess the link was created by yourself and, if run, it starts the BaseX GUI? In that case, the following Java call should do what you need:
Yes, the gui starts
java -cp /usr/local/basex/basex772.jar org.basex.BaseX
The link was edited to:
#!/bin/bash #exec java -jar /usr/local/basex/basex772.jar exec java -cp /usr/local/basex/basex772.jar org.basex.BaseX
This activates the command terminal:
$ basex BaseX 7.7.2 [Standalone] Try help to get more information.
You can optionally check out the following Wiki article to see what other startup options may be helpful:
Copied the basexhttp, then changed permissions to 'u+x', then tried to activate:
$ basexhttp /usr/local/bin/basexhttp: line 11: cd: /usr/local/../basex: No such file or directory Exception in thread "main" java.lang.NoClassDefFoundError: org/basex/BaseXHTTP Caused by: java.lang.ClassNotFoundException: org.basex.BaseXHTTP at java.net.URLClassLoader$1.run(URLClassLoader.java:217) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at java.lang.ClassLoader.loadClass(ClassLoader.java:321) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) at java.lang.ClassLoader.loadClass(ClassLoader.java:266) Could not find the main class: org.basex.BaseXHTTP. Program will exit.
Then line 11 edited:
BXCORE="$( cd -P "/usr/local/basex" && pwd )"
$ basexhttp Exception in thread "main" java.lang.NoClassDefFoundError: org/basex/BaseXHTTP Caused by: java.lang.ClassNotFoundException: org.basex.BaseXHTTP at java.net.URLClassLoader$1.run(URLClassLoader.java:217) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at java.lang.ClassLoader.loadClass(ClassLoader.java:321) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) at java.lang.ClassLoader.loadClass(ClassLoader.java:266) Could not find the main class: org.basex.BaseXHTTP. Program will exit.
What must I do to solve this error?
basex-talk@mailman.uni-konstanz.de