# Java Error on JabRef

**URL:** <https://discourse.jabref.org/t/java-error-on-jabref/974>\
**Category:** Help\
**Created:** [December 30, 2017, 2:15am UTC](https://discourse.jabref.org/t/java-error-on-jabref/974 "2017-12-30T02:15:10Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmurphy8289](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/jmurphy8289/32/322_2.png) [@jmurphy8289](https://discourse.jabref.org/u/jmurphy8289)\
**Post date:** [December 30, 2017, 2:15am UTC](https://discourse.jabref.org/t/java-error-on-jabref/974/1 "2017-12-30T02:15:10Z")

</div>

I am having some difficulty with Java on JabRef since the update to JabRef 4.1. I get the following error message when I open the program:

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

What’s odd about this is the Java version I have on my machine is 8.0\_151, so I am not sure where JabRef is pulling from with this outdated version or how to update it.

Thanks in advance for any help!

---

<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 31, 2017, 2:47pm UTC](https://discourse.jabref.org/t/java-error-on-jabref/974/2 "2017-12-31T14:47:07Z")

</div>

Sometimes Java installs a new version but does not remove the old one. You can, however, manually remove the old versions and then this warning message should disappear.

---

<div class="post-metadata">

**Author:** ![JonasBjorklund](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/jonasbjorklund/32/337_2.png) [@JonasBjorklund](https://discourse.jabref.org/u/JonasBjorklund)\
**Post date:** [January 9, 2018, 9:29am UTC](https://discourse.jabref.org/t/java-error-on-jabref/974/3 "2018-01-09T09:29:58Z")

</div>

Hi,

So, I have this exact problem as well, and I have tried removing all Java-stuff on the computer, both using their version check/uninstall utility and manually, and the problem still persists. I have also updated/reinstalled JabRef.

I also get some bugs which might be related to this somehow - one being that sometimes when I add a new entry to my library, all fields, for all entries, disappear in the GUI. I have to restart the program for this to be reset.

I am running Windows 10 Enterprise v. 1709 build 16299.192.

Thanks  
//Jonas

---

<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:** [January 9, 2018, 5:33pm UTC](https://discourse.jabref.org/t/java-error-on-jabref/974/4 "2018-01-09T17:33:14Z")

</div>

Hi,

you should check your (system) environment variables if there is still a JAVA\_HOME (from an old installation left).  
Since a while Oracle java installation are added to the PATH variable as C:\ProgramData\Oracle\Java\javapath  
If the cleanup does not work, you can still add the folder point to the \bin subdir from the current java installation.

Just a note: Java 9 is not yet supported

Regards  
Christoph

---

<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:** [January 10, 2018, 12:04am UTC](https://discourse.jabref.org/t/java-error-on-jabref/974/5 "2018-01-10T00:04:40Z")

</div>

@jmurphy8289 @JonasBjorklund

I improved the error dialog and it should now display the Java installation directory. You can download the new version here: [https://builds.jabref.org/master/](https://builds.jabref.org/master/)

---

<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:** [January 10, 2018, 10:24am UTC](https://discourse.jabref.org/t/java-error-on-jabref/974/6 "2018-01-10T10:24:40Z")

</div>

Update: it is now included in the current development version [https://builds.jabref.org/master/](https://builds.jabref.org/master/)

---

<div class="post-metadata">

**Author:** ![Dorothea](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@Dorothea](https://discourse.jabref.org/u/Dorothea)\
**Post date:** [January 25, 2018, 7:07am UTC](https://discourse.jabref.org/t/java-error-on-jabref/974/7 "2018-01-25T07:07:15Z")

</div>

Hey,  
I had the same problem after the update like @jmurphy8289. Ich followed the advices and not I got this: ![FehlerJavaJabref](https://canada1.discourse-cdn.com/flex030/uploads/jabref/original/1X/3cf8a2deee2a7b2b9f3e89c79693603327deacfb.JPG)  
Actually, I remove Java and Jab, install both following your webside. But nothing change. Only i got the olf error massage, like @jmurphy8289 showed at the beginng.  
Thanks for help

---

<div class="post-metadata">

**Author:** ![Dorothea](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@Dorothea](https://discourse.jabref.org/u/Dorothea)\
**Post date:** [January 25, 2018, 7:30am UTC](https://discourse.jabref.org/t/java-error-on-jabref/974/8 "2018-01-25T07:30:11Z")

</div>

Hey,  
I just wann update: I follow the path and, look, there was an old version of Java (2016). I delete everything (old version, Java 8 and Jabref) and install it again. Problem solved.

---

<div class="post-metadata">

**Author:** ![DanWang1230](https://avatars.discourse-cdn.com/v4/letter/d/76d3ee/32.png) [@DanWang1230](https://discourse.jabref.org/u/DanWang1230)\
**Post date:** [February 5, 2018, 11:42pm UTC](https://discourse.jabref.org/t/java-error-on-jabref/974/9 "2018-02-05T23:42:17Z")

</div>

I solved the same problem by:  
Step 1. Trying to install the latest version of Jabref provided by Tobias and then deleting the old version of Java showed in the installation directory (in the error dialog).  
Step 2. Installing a newer version of Java Runtime Environment in:  
[[http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html](http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html)]  
Step 3. Installing Jabref again, and there you go!  
Hope it helps.
