Code Monkey home page Code Monkey logo

Comments (5)

rickhelmus avatar rickhelmus commented on June 13, 2024 1

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.

mfleisch avatar mfleisch commented on June 13, 2024 1

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.

mfleisch avatar mfleisch commented on June 13, 2024

Hey,
this is indeed strange. Maybe some character escaping issue when running from R or within docker. I will have a look.

from sirius.

mfleisch avatar mfleisch commented on June 13, 2024

I can reproduce the issue.

from sirius.

mfleisch avatar mfleisch commented on June 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.