Dear all,
I am trying to use a specific java (the one provided with the download) for an analysis running on a cluster but I found that even in a Desktop machines the combination of launching beast through java -jar + starbeast2 doesn't seem to work.
I must add, a simple analysis with one gene runs with either /bin/beast, java -jar or ./jre1.8.0_161/bin/java -jar . Any of the three options run.
For this analysis, I started to step up everything in a Desktop machine.
I added the starbeast2 package with
./bin/packagemanager -add starbeast2
I tried to add it with
./jre1.8.0_161/bin/java -cp ./lib/beast.jar beast.util.AddOnManager
But I got this error
Error: Could not find or load main class beast.util.AddOnManager
When I try to run the xmleither giving the path of the java jre or just the java already installed on the machine I get this error
./jre1.8.0_161/bin/java -jar ./lib/beast.jar demo.xml
Random number seed: 1528930050464
File: demo.xml seed: 1528930050464 threads: 1
Error 1017 parsing the xml input file
Class could not be found. Did you mean beast.evolution.speciation.SpeciesTreePrior?
Error detected about here:
<beast>
<run id='mcmc' spec='MCMC'>
<state id='state'>
<stateNode id='Tree.t:Species' spec='starbeast2.SpeciesTree'>
When I run
./bin/beast demo.xml
It runs fine.
Please find attached a file I used to recreate the error.
I am using Ubuntu 16.04, the latest beast2 and starbeast2 add on.
Thanks for your help
Cheers