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

Cannot run JabRef from Source #6685

Closed
DaniloMurer opened this issue Jul 13, 2020 · 20 comments
Closed

Cannot run JabRef from Source #6685

DaniloMurer opened this issue Jul 13, 2020 · 20 comments

Comments

@DaniloMurer
Copy link

Hello together,

I wanted to run JabRef from source following the documentation: https://devdocs.jabref.org/getting-into-the-code/guidelines-for-setting-up-a-local-workspace.

Everything builds correctly with gradle except that if I'm trying to run it, I get an error.
The error looks like following:

2020-07-13 19_59_58-JabRef – JabRefMain java  JabRef main  IntelliJ IDEA

I've no clue why this happens, does anyone have similar issues?

Thanks in advance!

@Siedlerchr
Copy link
Member

Hm, that looks like some intellij stuff. Does a ./gradlew run on the command line in the folder work?
And we recently noticed that some people had problems with jdk versions that do not contain a javafx installation. In that case we recommend the liberica jdk:
https://bell-sw.com/pages/downloads/?version=java-14&package=jdk-full

@DaniloMurer
Copy link
Author

Hello @Siedlerchr,

With the gradlew run command everything worked. Is there a fix so I can run it with Intellij?
Otherwise I think it doesn't matter.

Thank you very much.

Greetings from Switzerland

@Siedlerchr
Copy link
Member

Another use recently had the same issue, maybe this screenshot help : #6678 (comment)
cc @koppor

@koppor
Copy link
Member

koppor commented Jul 14, 2020

What does git status output? Was the run command modified in some way?

@DaniloMurer
Copy link
Author

DaniloMurer commented Jul 15, 2020

@koppor I did run git status on the master branch, I didn't modify anything on the run configuration. It just won't work when I'm running it through Intellij. The gradlew run command does work though.

@koppor
Copy link
Member

koppor commented Jul 15, 2020

This is Oracle JDK, isn't it? Quick fix: Change the runner to Gradle in IntelliJ.

Other fix: Install LibericaJDKFull (the "full" is important! - choco install libericajdk-full). This is what Christoph meant in #6685 (comment).

@DaniloMurer
Copy link
Author

@koppor I used the Oracle Open JDK 14 with JavaFx installed via Jmods. I'll try to change the runner to Gradle.

Greetings

@DaniloMurer
Copy link
Author

So I found a fix to my little problem.

So if someone also has these problems follow the following steps:

First make sure that everything is set up according to the documentation: https://devdocs.jabref.org/getting-into-the-code/guidelines-for-setting-up-a-local-workspace.

After that create a new Gradle run configuration in intellij:
SNAG-0786

After that you should be able to run and debug the application from Intellij.

Regards from Switzerland

@koppor
Copy link
Member

koppor commented Jul 15, 2020

Thank you for the update.

I can see that you can handle IntellIj settings with ease. May I ask whether you cold spend some time to install LibericaJDKFull alongside the OpenJDK and configure IntelliJ to use it? That way, I would be enabled to claim that following the workspace setup guideline really includes setting up LibericaJDKFull.

The other reason I'm asking is that development speed significantly increases in case the built in Java Compiler of IntelliJ is used. Reason: At each test run, that tool chain is invoked. If Gradle is used, the startup time is increased by a few seconds. This adds up. See also cococomo turnaround time. I would like to avoid that 😅

@DaniloMurer
Copy link
Author

@koppor Yes I can give it a try this evening and give some feedback how it worked out.

@tobiasdiez
Copy link
Member

tobiasdiez commented Jul 16, 2020

Also the Console View should have a more detailed output of what actually went wrong (the screenshot above doesn't include any information about the error).

@stefan-kolb stefan-kolb added the status: waiting-for-feedback The submitter or other users need to provide more information about the issue label Jul 22, 2020
@Siedlerchr
Copy link
Member

@DaniloMurer any news on this?

@koppor
Copy link
Member

koppor commented Aug 4, 2020

Somehow refs #6378

@DaniloMurer
Copy link
Author

Hello together,

Sorry if im answering this late but I was on a longer vacation so I hadn't the time to look at this closer. Today Im trying with LibericaJDK to see if this works out better.

Regards

@DaniloMurer
Copy link
Author

Hello together, I stumbled across a new problem, in this one the class "EasyBind" misses the method "listBind()". I don't know were this problem came from, I tested it on the master.

Regards

@DaniloMurer
Copy link
Author

Here is the screenshot for further investigation.

grafik

@Siedlerchr
Copy link
Member

@DaniloMurer Please try again. First mege the latest upstream/master and then rerun gradlew run to process the updated dependencies

@calixtus
Copy link
Member

Any updates here?

@koppor
Copy link
Member

koppor commented Aug 26, 2020

Does the update at #6794 help?

@koppor
Copy link
Member

koppor commented Sep 15, 2020

We think the issue is solved. If not, please comment.

@koppor koppor closed this as completed Sep 15, 2020
@koppor koppor removed the status: waiting-for-feedback The submitter or other users need to provide more information about the issue label Sep 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants