RHEL 7x - DW 6x - Error on open [message #2170] |
Tue, 23 April 2024 00:28 |
dallis11
Messages: 1 Registered: April 2024
|
Junior Member |
|
|
I am trying to install dw on an NFS resource - under /data/opt/datawarrior as opposed to /opt/datawarrior locally.
I have changed the ref's in the install files yet on open is giving "data warrior application cannot be found - /opt/datawarrior/datawarrior_all.jar.
My datawarrior file:
#!/bin/bash
DWJAR="/data/opt/datawarrior"
# increase -Xms and -Xmx options, if you have plenty of memory
# insert "-Ddpifactor=1.5" (without quotes) after -X options to manually define UI element scaling to 150% for HiDPI monitors
# insert " -Ddatapath=/home/username/data/datawarrior:/home/username/da ta/mydata " (without quotes) after -X options to define commonly used data directories
/data/opt/datawarrior/jre/bin/java -Xms4096m -Xmx512g -splash:/data/opt/datawarrior/loading.png --add-exports java.base/jdk.internal.module=ALL-UNNAMED -Dfile.encoding=UTF-8 -cp $DWJAR/datawarriorlauncher.jar:$DWJAR/capka.jar org.openmolecules.datawarrior.launcher.DataWarriorLauncher $*
Seems to be still looking under /opt as opposed to /data/opt. Is there somewhere else it could be looking? Thanks!
|
|
|
Re: RHEL 7x - DW 6x - Error on open [message #2175 is a reply to message #2170] |
Tue, 23 April 2024 22:59 |
nbehrnd
Messages: 224 Registered: June 2019
|
Senior Member |
|
|
Hello dallis,
while I have no experience with calling DW via a NFS, I set an alias in my `~/.bashrc` file, i.e.
```
alias dw="/opt/datawarrior/datawarrior"
```
to launch the program equally from the CLI by a brief `dw` (in Linux Debian). Could a similar link -- adjusted to the address of the executable in your setup -- work?
Norwid
[Updated on: Tue, 23 April 2024 22:59] Report message to a moderator
|
|
|
|
|
Re: RHEL 7x - DW 6x - Error on open [message #2321 is a reply to message #2304] |
Tue, 08 October 2024 19:25 |
thomas
Messages: 709 Registered: June 2014
|
Senior Member |
|
|
It should work to set a Java system property 'rootpath' when launching DataWarrior, e.g. put the following into the bash file that is supposed to launch DataWarrior:
DWJAR="/somepath/datawarrior"
/someJRE21withFX/bin/java -Xms4096m -Xmx512g -Drootpath=$DWJAR -splash:$DWJAR/loading.png --add-exports java.base/jdk.internal.module=ALL-UNNAMED -Dfile.encoding=UTF-8 -cp $DWJAR/datawarrior.jar:$DWJAR/capka.jar com.actelion.research.datawarrior.DataWarrior $*
Note: this way you bypass the DataWarrior launcher and directly start the datawarrior application. The launcher does nothing else than finding the newest datawarrior jar file within an 'update' folder and then launching it. Therefore, you probably want to update once in a while the datawarrior jar file manually. You can check for the newest version at https://dwversion.openmolecules.org/?what=properties. From the information you get you can construct an URL to download the newest available update, currently https://openmolecules.org/datawarrior/update/datawarrior_v06 .02.05.jar. After downloading it you need to rename it to 'datawarrior.jar', put it into 'somepath/datawarrior'. Your bash script will then launch the updated jar next time.
|
|
|