openmolecules.org

 
Home » DataWarrior » Functionality » Jar file from Linux build (replacing the original datawarrior.jar file with the freshly built one)
Jar file from Linux build [message #1747] Tue, 11 October 2022 03:02 Go to next message
nats is currently offline  nats
Messages: 6
Registered: August 2021
Junior Member
I have downloaded the source code on a linux machine and built the code. The application runs when using buildDataWarrior and runDataWarrior however when replacing the original datawarrior.jar file from the datawarrior_linux installer with the freshly built one it won't run. Is there something I'm doing wrong?

I get a sketchy Data Warrior logo then nothing.

AWS Amazon Linux 2.

Should I be using a different version of linux?
Re: Jar file from Linux build [message #1748 is a reply to message #1747] Tue, 11 October 2022 09:13 Go to previous messageGo to next message
nbehrnd is currently offline  nbehrnd
Messages: 224
Registered: June 2019
Senior Member
Dear nats,

I would suggest to select either a) to use one of the installers the download page[1] offers (since you mention Linux, the one available specific for Linux[2]), or to build the DataWarrior executable with the source code provided by the GitHub page.[3] To use the installer in the first place goes beyond convenience of (typically) «everything on board», because it includes a Java Runtime Environment known to support the application. In case of a local installation of DW e.g., in Linux Debian 12/bookworm (or earlier Xubuntu 18.04LTS), this creates a short cut in the program pull-down menu (section «office»). Since AWS equally offers instances in Debian and Ubuntu, I would try to use these OSes. Preference would be given to use a light desktop environment/a minimal installation (e.g., `sudo apt-get install --no-install-recommends xubuntu-desktop`) to keep the footprint (CPU/RAM, hardware space) of programs not related to your work with DataWarrior small.

The installers however provide DW as published in April 2021. Subsequent improvements of the program are available by archives to update an already existing and functional installation. Except to remove bugs, these archives are released about once all 15 days and are available from the same address after you acknowledge the fine print. There is one .zip for Linux and MacOS in common.[4] So, while DataWarrior is closed, decompress this smaller archive (ca 20MB) and move all its content into /opt/datawarrior to overwrite some of the files put there by the installer -- the later requires elevated privileges of a superuser/root. Then restart the program.

Though it is not necessary, I supplemented the installation by definition of an alias in the ~/.bashrc file

alias dw="/opt/datawarrior/datawarrior"
This allows to launch DW by typing `dw` on the terminal. For an activation, run

$ source ~/.bashrc
once ~/.bashrc was edited and closed.

With regards,

Norwid

[1] https://openmolecules.org/datawarrior/download.html
[2] https://openmolecules.org/datawarrior/datawarrior550.tar_gz
[3] https://github.com/thsa/datawarrior
[4] https://openmolecules.org/datawarrior/dw550x.zip

[Updated on: Tue, 11 October 2022 09:14]

Report message to a moderator

Re: Jar file from Linux build [message #1749 is a reply to message #1747] Wed, 12 October 2022 01:37 Go to previous message
nats is currently offline  nats
Messages: 6
Registered: August 2021
Junior Member
Thank you - All it took was copying the other jar files over and I'm up and running.
Previous Topic: update/recalculation of all computed array data
Next Topic: Feature Request
Goto Forum:
  


Current Time: Mon Nov 25 04:08:17 CET 2024

Total time taken to generate the page: 0.03795 seconds