Comments (5)
Hi Markus,
Many thanks for the quick replies! For now I added a small sh
script to patRoon
based on your last comment. Note that it uses SiriusCLIApplication
instead of SiriusGUIApplication
, took me some time to realize why headless wasn't working ;-) This also seems to work for the GUI release package.
#!/bin/sh
SIRBINPATH="$1"
JAVAPATH="$SIRBINPATH/../lib/runtime/bin/java"
LIBPATH="$SIRBINPATH/../lib"
shift
"$JAVAPATH" -Xms1G -XX:MaxRAMPercentage=85 --illegal-access=permit --add-opens java.base/java.lang=ALL-UNNAMED \
--add-opens java.base/java.net=ALL-UNNAMED -Djava.library.path="$LIBPATH/native" \
"-javaagent:$LIBPATH/app/agents-4.4.8.jar" -cp "$LIBPATH/app/*" \
de.unijena.bioinf.ms.frontend.SiriusCLIApplication $@
The first shell argument should be the path to the bin
directory. The other arguments are directly passed to SIRIUS
.
from sirius.
Version 4.5.1 now contains a shell script for Linux that should work with R.
@rickhelmus The java command has slightly changed, so you might have to adopt to the included script.
from sirius.
Hey,
this is indeed strange. Maybe some character escaping issue when running from R or within docker. I will have a look.
from sirius.
I can reproduce the issue.
from sirius.
I am not sure if I can find out why the binary is not working with R since it is produced by the jpackage tool of the JDK.
Python and other languages I have tested are working fine.
As a quick fix you can simply bypass the binary and run java directly:
The command would be:
system2('/home/rick/Rproj/deps/sirius/lib/runtime/bin/java', args = c('-Xms1G', '-XX:MaxRAMPercentage=85', '--illegal-access=permit', '--add-opens', 'java.base/java.lang=ALL-UNNAMED', '--add-opens', 'java.base/java.net=ALL-UNNAMED', '-Djava.library.path=/home/rick/Rproj/deps/sirius/lib/native', '-javaagent:/home/rick/Rproj/deps/sirius/lib/app/agents-4.4.8.jar', '-cp', '"/home/rick/Rproj/deps/sirius/lib/app/*"', 'de.unijena.bioinf.ms.frontend.SiriusGUIApplication' , '-V'))
I used -V
exemplary for the parameters of SIRIUS.
We can include a bash script launcher that is going to do the same in upcoming versions.
from sirius.
Related Issues (20)
- There is a problem with the network connection. HOT 1
- Unexpected error: java.lang.NullPointerException: Server URL is null! HOT 2
- unexpected error when starting sirius HOT 2
- Unexpected error! HOT 2
- connection error HOT 1
- Custom database HOT 1
- Custom-database CLI HOT 1
- ftree-export does could not parse compounds HOT 1
- formulas in mgf are ignored when running SIRIUS from command line HOT 1
- App crashes on macOS Ventura 13.0 HOT 4
- Email and password printed out in terminal HOT 2
- How to run in CLI mode HOT 4
- Webservice drops HOT 4
- CVE-2022-42889 Vulnerability in commons-text-1.6.jar HOT 1
- Could not load a valid TreeBuilder (ILP solvers), tried ‘[CLP, GUROBI, CPLEX]’. Please read the installation instructions HOT 2
- Export of Tanimoto similarity to structure_candidates.tsv HOT 2
- missing features in Sirius-summary (time-out ?) HOT 2
- some problems with the network service HOT 1
- SIRIUS4 Server Connection Issue HOT 2
- SIRIUS 5.6.3 Structure Names HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sirius.