Gereon Kaiping
unread,Jul 20, 2018, 8:55:33 AM7/20/18Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to beast...@googlegroups.com
Hi,
SUMMARY
I want to run an analysis with a Pseudo-Dollo Covarion model. It works
fine in Eclipse, but cannot find the class when running Beast from the
command line. How do I debug Beast's package loading?
DETAILED DESCRIPTION
I have created an XML file to run cognate inference on a tree using
the new Pseudo-Dollo Covarion model from the Babel package. Because I
wasn't sure how well Beast 2.5 support for some packages had come (and
because Babel is not in CBAN yet anyway), I cloned beast2, BEASTLabs
and Babel from their repositories on Github and loaded them as Eclipse
projects. After fixing the Java library paths in the obvious manner,
Eclipse runs the beast for my pDC analysis without issues.
I then tried to build and install the packages. Compilation using ant
went fine without issues (apart from some JUnit tests running the
Beauti GUI on my ideosyncratic X setup, which failed) and produced
dist directories or zip files of the packages, which I unpacked or
copied to ~/.beast/2.5
Initially, I built BEASTLabs in version 1.7, and Babel complained that
it needed BEASTLabs at least version 1.8, which I take as indication
that the installation in this way worked in principle.
When I run
java -jar ~/.beast/2.5/beast2/lib/beast2.jar
on a file without a pDC model, it works fine. However, when I run it
on my pDC.xml, Beast dies with the message "Class not found, did you
mean ...BinaryCovarionModel?"
OTHER THINGS I HAVE TRIED
I have tried passing any of the Babel ja files (addon and source) to
the `java` call as `-classpath` argument.
I have checked the spec= attribute for typos and copied it from a
Beauti template and added the dotted package name before the class
name and verified that all of this runs out of Eclipse.
I have copied the .jar file to various folders and variant file names
in ~/.beast/2.5/
I have checked that both Babel jar files contain a file for the class,
a .class file for Babel.addon.jar and a .java file for
Babel.source.jar.
The error persists. What should I do?
WHAT I HAVE NOT TRIED
I haven't tried using classes from BEASTLabs (which I installed
manually, as desribed above), or any other package (including anything
could install using packagemanager), because I did not have XML files
that should work out of the box.
I have not tried running Beauti to see whether BEASTLabs or Babel
options appear.
--
Gereon