Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tool to check the environment for Jabref #3073

Closed
jonasstein opened this issue Aug 3, 2017 · 7 comments
Closed

Tool to check the environment for Jabref #3073

jonasstein opened this issue Aug 3, 2017 · 7 comments

Comments

@jonasstein
Copy link

jonasstein commented Aug 3, 2017

I suggest to prepare a tool jabref-tester.jar which just tests and reports, if the environment is fine for Jabref-4.x

Reason:

The tool could print something like

Jabreftester version 4.123 compiled 2017-08-07 
Environment test from 2017-08-09 12:30
JDK:     FAILED  Required 8.x    found 9.1234 
OpenFX:  PASSED  Required 1.8x   found 1.82

@lenhard
Copy link
Member

lenhard commented Aug 3, 2017

Since all of the dev team is solely focused on fixing bugs right now, I see little chance of this happening unfortunately. But such a tool would be a good idea.

@jonasstein Given your knowledge on the required setup, could you step in and write this tool?

@jonasstein
Copy link
Author

jonasstein commented Aug 3, 2017

Unfortunately, I can not develop this, but I volunteer to test it on different machines. I am finding out the requirements on the hard way at the moment. If there is an up to date dependency list, can we link it here?
I saw on the stderr, that Jabref expects a newer FX library than available on the latest *buntu and Mint distributions. I think this should be one of the early features of this tool, because it affects many (nearly all Linux) users.

@koppor
Copy link
Member

koppor commented Aug 3, 2017 via email

@Siedlerchr
Copy link
Member

I think it would be easiest to write a shell script to test for java version and the openjfx version:
https://stackoverflow.com/questions/23263826/how-to-find-out-javafx-version

AFAIK the problem only exists with linux, as the windows installer installs the libs in the right folder I suggest. For linux all libs have to be on the classpath. See my workaround I describe ed in the other issue

For linux: Why don't we use install4j to create linux versions as well?

@tobiasdiez
Copy link
Member

I second the suggestion that instead of a tool that checks all the requirements an installer that actually installs these required packages is preferable.

@jonasstein
Copy link
Author

jonasstein commented Aug 3, 2017

An installer would probably ignore the package management of the distribution. Many installer are blackboxes, nobody knows what they do. I would prefer a solution which distributions can use.
A script can be used even before the compilation or installation. A bash script sounds fine, but note that packages are named differently on distributions. Can't Java just run with try-exception some tests and report?

@lenhard
Copy link
Member

lenhard commented Aug 4, 2017

Well, Java can't do that out-of-the-box, at least not that I know. A Java version of such a tool would be no more than a bash script in Java syntax and packaged as a jar. We would still have to check the current OS and know the names of the packages for every distro.

@lenhard lenhard changed the title FR: tool to check the environment for Jabref Tool to check the environment for Jabref Aug 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants