Giter Site home page Giter Site logo

Comments (3)

yuuyins avatar yuuyins commented on June 3, 2024 1

I workaround that by making the wrapper cd into opt before running the app.

#! /nix/store/s7r5cnjj4zy41g2nql3vf2ivr09wfm5p-bash-5.1-p16/bin/bash -e
cd '/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt'
_JAVA_OPTIONS=${_JAVA_OPTIONS:+':'$_JAVA_OPTIONS':'}
_JAVA_OPTIONS=${_JAVA_OPTIONS/':''-Dawt.useSystemAAFontSettings=on'':'/':'}
_JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on'$_JAVA_OPTIONS
_JAVA_OPTIONS=${_JAVA_OPTIONS#':'}
_JAVA_OPTIONS=${_JAVA_OPTIONS%':'}
export _JAVA_OPTIONS
exec "/nix/store/ib0l33w15lv6b7bx9czzlywnwmdb9q8j-openjdk-8u322-ga/bin/java"  -Duser.dir=/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt -classpath "/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/animation-1.1.3.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/antlr.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/app-client.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/binding-1.0.3.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/castor.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/castor_2.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/commons-beanutils.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/commons-collections-3.1.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/commons-dbcp-1.2.1.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/commons-digester-1.7.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/commons-digester.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/commons-fileupload.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/commons-io-1.3.1.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/commons-lang-2.6.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/commons-logging-1.1.3.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/commons-logging.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/commons-pool-1.3.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/commons-validator.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/forms-1.0.5.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/helpgui-1.1.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/hsqldb.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/ijtree.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/itext-1.4.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/jackcess-2.1.11.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/jakarta-oro.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/jasperreports-1.3.1.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/javaee.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/jbossall-client.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/jdom.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/jgraph.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/jlfgr-1_1.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/js.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/jtds-1.2.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/log4j.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/looks-2.0.1.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/mail.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/mssql-jdbc-6.4.0.jre7.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/myfaces-all.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/mysql-connector-java-5.1.47-bin.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/odbc.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/ojdbc8-11.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/osupgrade.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/postgresql-8.1-405.jdbc3.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/resources.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/struts.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/ucanaccess-4.0.4.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/validation-1.0.3.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/xalan.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/xerces.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/xercesImpl.jar:/nix/store/rpbx2gy3f3jy6nh31j1ppjnhqanwj8x7-osrmt-unstable-2020-04-24/opt/xml-apis.jar" com.osrmt.appclient.reqmanager.RequirementManagerContr:

from osrmt.

yuuyins avatar yuuyins commented on June 3, 2024

This is happening because I'm running the wrapper in ./result/bin/osrmt. if I cd result/opt and run ./osrmt there's not issue with that.

from osrmt.

yuuyins avatar yuuyins commented on June 3, 2024

https://discourse.nixos.org/t/java-app-expects-files-from-out-opt-so-cant-run-wraper-from-out-bin-only-if-cd-into-out-opt-and-run-wrapper-from-that-how-to-proceed/19056

from osrmt.

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.