…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 <[email protected]> wrote:
> On 19/12/2013, Christian Grün <[email protected]> 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:
>>
>>   http://docs.basex.org/wiki/Start_Scripts
>>
>
> 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 mailing list
[email protected]
https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk

Reply via email to