openmolecules.org

 
Home » DataWarrior » Installation Issues » RHEL 7x - DW 6x - Error on open
RHEL 7x - DW 6x - Error on open [message #2170] Tue, 23 April 2024 00:28 Go to next message
dallis11 is currently offline  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 Go to previous messageGo to next message
nbehrnd is currently offline  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 #2189 is a reply to message #2175] Sun, 12 May 2024 12:02 Go to previous messageGo to next message
thomas is currently offline  thomas
Messages: 715
Registered: June 2014
Senior Member
it is difficult to reliably figure out in a cross-platform way the file path of running jar within the running byte code. Therefore, DataWarrior uses hard coded installer paths, which should not be changed, because not only the datawarrior_all.jar and its automatic updates, but also all exmaple files, macros and plugins rely on this path.

I didn't try, but possibly a link at /opt/datawarrior that points to /data/opt/datawarrior could work?!
Re: RHEL 7x - DW 6x - Error on open [message #2304 is a reply to message #2170] Tue, 17 September 2024 16:29 Go to previous messageGo to next message
ak_dev is currently offline  ak_dev
Messages: 8
Registered: July 2024
Junior Member
Hello User,

I am facing simmilar problem while installing DW v6.1.0 at my desired location instead of pre-defined path /opt/datawarrior/ but got no success. Can you please tell me if your are able to install it and resolve the path problem? If yes, can you please help me with the approach or steps taken to install it?

Thanks.
Re: RHEL 7x - DW 6x - Error on open [message #2321 is a reply to message #2304] Tue, 08 October 2024 19:25 Go to previous message
thomas is currently offline  thomas
Messages: 715
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.
Previous Topic: Data Warrior not functional after install
Next Topic: Sequoia 15.0 issues Mac (intel)- DataWarrior (6.1.0) won't open
Goto Forum:
  


Current Time: Sun Nov 24 09:02:16 CET 2024

Total time taken to generate the page: 0.03736 seconds