# Error While Importing the project into eclipse

**URL:** <https://discourse.jabref.org/t/error-while-importing-the-project-into-eclipse/950>\
**Category:** Help\
**Created:** [December 12, 2017, 4:56pm UTC](https://discourse.jabref.org/t/error-while-importing-the-project-into-eclipse/950 "2017-12-12T16:56:41Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![aman](https://avatars.discourse-cdn.com/v4/letter/a/90ced4/32.png) [@aman](https://discourse.jabref.org/u/aman)\
**Post date:** [December 12, 2017, 4:56pm UTC](https://discourse.jabref.org/t/error-while-importing-the-project-into-eclipse/950/1 "2017-12-12T16:56:41Z")

</div>

Hi Jabref Team ,

I am new to JabRef development , I am trying to build jabref from the source , but I am getting errors for imports due to which I am not able o build the project. Kindly Help to take this forward. .

I am getting issues in the below files

File :org.jabref.logic.importer.fileformat  
Import : org.jabref.logic.importer.fileformat.medline  
File :org.jabref.logic.importer.fileformat  
import org.jabref.logic.importer.fileformat.mods.AbstractDefinition(and all the other mods Import)  
File:org.jabref.logic.importer.fileformat.mods.AbstractDefinition  
Issue is at Line 86 :List entries = file.getEntry();

File :org.jabref.logic.exporter  
org.jabref.logic.importer.fileformat.bibtexml  
File : org.jabref.logic.exporter  
import org.jabref.logic.importer.fileformat.mods.AbstractDefinition(and all the other mods Import)

I followed the steps t build jabref from sources from “[https://github.com/JabRef/jabref/wiki](https://github.com/JabRef/jabref/wiki)”.  
I have cloned the project from GIThub and followed the instructions to build the same. I checked , if there was some problem with the cloning , but these files are not present in master branch as well.

Kindly Help for the same.

Thanks and regards

---

<div class="post-metadata">

**Author:** ![Siedlerchr](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/siedlerchr/32/216_2.png) [@Siedlerchr](https://discourse.jabref.org/u/Siedlerchr)\
**Post date:** [December 15, 2017, 7:49pm UTC](https://discourse.jabref.org/t/error-while-importing-the-project-into-eclipse/950/2 "2017-12-15T19:49:42Z")

</div>

Hi,

first of all, thanks for your interest in JabRef Development!  
It should be sufficient if you once run  
`gradlew run` in the project folder, which builds and copies some additionall xml resources which only need to be build once.

Afterwards it is sufficient to run `gradlew eclipse` , it will configure the project and you can start developing.

If you enconter further problems or encounter other issues, please report them here or at github.

Regards  
Christoph

---

<div class="post-metadata">

**Author:** ![aman](https://avatars.discourse-cdn.com/v4/letter/a/90ced4/32.png) [@aman](https://discourse.jabref.org/u/aman)\
**Post date:** [December 17, 2017, 6:20pm UTC](https://discourse.jabref.org/t/error-while-importing-the-project-into-eclipse/950/3 "2017-12-17T18:20:38Z")

</div>

Hi Christof ,

After running the gradlew run , following lines are diplayed

![](https://canada1.discourse-cdn.com/flex030/uploads/jabref/original/1X/1f58c233975bd2179a7f9e9d30ae3487f769947e.png)

And the process does not end. Kindly suggest if this is the expected  
functionality for the build process and I have to kill the process manually.

Thanks and regards  
Aman Kapoor

---

<div class="post-metadata">

**Author:** ![Siedlerchr](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/siedlerchr/32/216_2.png) [@Siedlerchr](https://discourse.jabref.org/u/Siedlerchr)\
**Post date:** [December 17, 2017, 7:51pm UTC](https://discourse.jabref.org/t/error-while-importing-the-project-into-eclipse/950/4 "2017-12-17T19:51:47Z")

</div>

Hi,

at this point JabRef should normally start and display. It might be that the window is in the background somewhere.

If you now want to develop in Eclipse it’s only necessary to run `gradlew eclipse`  
Then you can start the JabRef Main in Eclipse

---

<div class="post-metadata">

**Author:** ![aman](https://avatars.discourse-cdn.com/v4/letter/a/90ced4/32.png) [@aman](https://discourse.jabref.org/u/aman)\
**Post date:** [December 18, 2017, 2:22am UTC](https://discourse.jabref.org/t/error-while-importing-the-project-into-eclipse/950/5 "2017-12-18T02:22:37Z")

</div>

Hi Chritstof .

First of all, thanks for proactive replies.

Yes Christof , it started after that and I could import the project in  
eclipse , after which there were no build-path or import errors errors.

Moving forward , Christof. I have a basic knowledge of , what is the domain  
that jabref covers and how to use it.  
For development purposes ,please assign me some issues witch can be taken  
up at beginner level.That will really be helpful.

Thanks and regards  
Aman Kapoor

---

<div class="post-metadata">

**Author:** ![Siedlerchr](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/siedlerchr/32/216_2.png) [@Siedlerchr](https://discourse.jabref.org/u/Siedlerchr)\
**Post date:** [December 18, 2017, 8:58pm UTC](https://discourse.jabref.org/t/error-while-importing-the-project-into-eclipse/950/6 "2017-12-18T20:58:24Z")

</div>

That’s good news! 🕶

I can’t assign you to any github issue. You can chose one yourself. Have a look at the ones marked with “good first issue”. [Good first issues](https://github.com/JabRef/jabref/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22)  
Just look and see which one sounds good to you. If you then have further questions to a specific issue, just ask there.

To get a general idea where which kind of code is located (e.g. model/logic/gui), have a look at our high level code documentation:  
[High Level Documentation](https://github.com/JabRef/jabref/wiki/High-Level-Documentation)

Happy coding! 💻

---

<div class="post-metadata">

**Author:** ![aman](https://avatars.discourse-cdn.com/v4/letter/a/90ced4/32.png) [@aman](https://discourse.jabref.org/u/aman)\
**Post date:** [December 21, 2017, 4:50pm UTC](https://discourse.jabref.org/t/error-while-importing-the-project-into-eclipse/950/7 "2017-12-21T16:50:06Z")

</div>

Hi Christof ,

Thank you Christof for the motivating mail ad direction for witch issues  
can be picked.

I would like to work on the below issue

> <https://github.com/JabRef/jabref/issues/2961>

As it is marked as an enhancement to the existing product , and since I am  
new to the development , this seems to be an okay requirement to handle.

This is what I have understood for the requirement:

Currently in Jabref , if jabref is closed(or any other crash happens)  
without saving the current bib file , it creates a backup of the file with  
.bak or .sav file before closing it. Every time it loads a file from the  
bib database at startup or open action , It checks for the .bak or .sav  
files and displays the message as mentioned in the issue. I was able to  
simulate the functionality and to handle the same, I figured which part of  
code is checking for the backups , I found the below code in

_Files:_  
JabRefGUi  
OpenDatabaseAction

_Code:_

- if (BackupManager.checkForBackupFile(fileToLoad)) {  
BackupUIManager.showRestoreBackupDialog(frame, fileToLoad); }\*

We have to plugin the code here for the same for the requirement.

Kindly correct me if I am wrong somewhere in understanding the requirement .

I also did some searching, for which libraries can be used to to compute  
the difference in the text files ,  
I found the below library

[https://github.com/dnaumenko/java-diff-utils](https://github.com/dnaumenko/java-diff-utils).

This seems to be an opensource library , which can be used for the  
difference of the files. (Please do suggest if there is any suh part of  
code which is already present in Jabref or any other library that can  
beused.)

Kindly suggest if I am on the right track and if I could continue working  
on the same Moving forward I will be working on this library and try to  
integrate with jabref and see what more is required.

Thanks and regards  
Aman Kapoor

---

<div class="post-metadata">

**Author:** ![tobiasdiez](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/tobiasdiez/32/340_2.png) [@tobiasdiez](https://discourse.jabref.org/u/tobiasdiez)\
**Post date:** [December 21, 2017, 9:54pm UTC](https://discourse.jabref.org/t/error-while-importing-the-project-into-eclipse/950/8 "2017-12-21T21:54:51Z")

</div>

Yes you are right, `BackupUIManager` is the right place to for the changes. While going in the right direction, implementing a full diff display is probably a overkill for this issue. We normally mark issues with “good first issue” if they are relatively easy to fix and only require a few lines of code (so that newcomers can get familiar with the code base and still provide valuable enhancements). In this case at hand, I think, simply giving a bit more details about the file and its backup (like date of change, size) are more then enough. Something along the lines of the Windows “do you really want to replace the file” dialog is more then sufficient. Fortunately, the [ControlsFX library](http://fxexperience.com/controlsfx/features/dialogs/) already contains a template for such dialogs.

Ps: the easiest way to provoke the display of this dialog is to open the file in two instance of JabRef (you need to disable the single instance mode under preferences \> advanced for this to work) or create the `.bak` / `.sav` file by hand.  
 ![windows dialog](https://canada1.discourse-cdn.com/flex030/uploads/jabref/original/1X/1e8e54d8f10cad787f6a8767059246c37fcaad77.png)
