Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues running BEAST on linux server #1179

Closed
ViralVerity opened this issue Feb 20, 2025 · 2 comments
Closed

Issues running BEAST on linux server #1179

ViralVerity opened this issue Feb 20, 2025 · 2 comments

Comments

@ViralVerity
Copy link

Hi,

I am trying to run the latest release of BEAST2 on a linux HPC from the command line so that I can increase the memory allotment. I had been trying to build from source originally locally, but then just downloaded the linux build from the release.

When I try to use the launcher.jar to run it (e.g. java -jar beast/lib/launcher.jar -h), the following error appears:

java.lang.ClassNotFoundException: beastfx.app.beast.BeastMain
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:587)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:467)
at beast.pkgmgmt.BEASTClassLoader.forName(Unknown Source)
at beast.pkgmgmt.launcher.BeastLauncher.run(Unknown Source)
at beast.pkgmgmt.launcher.BeastLauncher.main(Unknown Source)

I can't work out why it would be trying to pull from beastfx however?

Java info:
openjdk 17.0.4 2022-07-19
OpenJDK Runtime Environment Temurin-17.0.4+8 (build 17.0.4+8)
OpenJDK 64-Bit Server VM Temurin-17.0.4+8 (build 17.0.4+8, mixed mode, sharing)

Thanks!
Verity

@rbouckaert
Copy link
Member

The recommended way to run BEAST is through the script in beast/bin/beast. It sets up the environment, and (if not already installed) installs the BEAST.base and BEAST.app packages. If you want to change memory requirements, just edit the values of -Xss256m -Xmx8g in the last line in the script.

The BEAST.base package contains basic functionality, but no applications and is maintained in the beast2 repository. The BEAST.app package contains applications like BEAST, BEAUti, etc. and is maintained in the BeastFX repository. Hope that explains why it is referring to beastfx.

@ViralVerity
Copy link
Author

Great, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants