# Error when running raw java file

**URL:** <https://bisq.community/t/error-when-running-raw-java-file/685>\
**Category:** Support\
**Created:** [September 25, 2016, 1:41pm UTC](https://bisq.community/t/error-when-running-raw-java-file/685 "2016-09-25T13:41:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![coinstash](https://bisq.community/user_avatar/bisq.community/coinstash/32/213_2.png) [@coinstash](https://bisq.community/u/coinstash)\
**Post date:** [September 25, 2016, 1:41pm UTC](https://bisq.community/t/error-when-running-raw-java-file/685/1 "2016-09-25T13:41:56Z")

</div>

Hi guys. When I run

java -jar gui/target/shaded.jar

per the instructions in the git repository ([build.md](http://build.md)) I get an error popup:

‘Couldn’t generate key’

Is this related to running in a non-standard location or have a ‘screwed the pooch’ in my build someplace? It seems to run fine after I dismiss the error box.

---

<div class="post-metadata">

**Author:** ![ManfredKarrer](https://bisq.community/user_avatar/bisq.community/manfredkarrer/32/26_2.png) [@ManfredKarrer](https://bisq.community/u/ManfredKarrer)\
**Post date:** [September 25, 2016, 11:55pm UTC](https://bisq.community/t/error-when-running-raw-java-file/685/2 "2016-09-25T23:55:53Z")

</div>

Have you followed all the steps (security files,…) seems the jdk crypto restrictions are not unlocked in your setup.

---

<div class="post-metadata">

**Author:** ![coinstash](https://bisq.community/user_avatar/bisq.community/coinstash/32/213_2.png) [@coinstash](https://bisq.community/u/coinstash)\
**Post date:** [September 26, 2016, 3:19am UTC](https://bisq.community/t/error-when-running-raw-java-file/685/3 "2016-09-26T03:19:28Z")

</div>

Yes, I followed the build instruction to the letter.

OS is Windows 7 Home Premium with all updates (except IE11).

---

<div class="post-metadata">

**Author:** ![coinstash](https://bisq.community/user_avatar/bisq.community/coinstash/32/213_2.png) [@coinstash](https://bisq.community/u/coinstash)\
**Post date:** [September 26, 2016, 5:37am UTC](https://bisq.community/t/error-when-running-raw-java-file/685/4 "2016-09-26T05:37:48Z")

</div>

Doesn’t happen when I install from the newly-built executable. So this is just an artifact of running the java file. Probably can’t find a needed path or something.

---

<div class="post-metadata">

**Author:** ![ManfredKarrer](https://bisq.community/user_avatar/bisq.community/manfredkarrer/32/26_2.png) [@ManfredKarrer](https://bisq.community/u/ManfredKarrer)\
**Post date:** [September 26, 2016, 2:49pm UTC](https://bisq.community/t/error-when-running-raw-java-file/685/5 "2016-09-26T14:49:14Z")

</div>

Then the jdk setup is not done correctly. if run rom exe u use the packeaged jdk, if run the jar file u use the system jdk. maybe u have different jdks installed and JAVA\_HOME points to a wrong one?

---

<div class="post-metadata">

**Author:** ![coinstash](https://bisq.community/user_avatar/bisq.community/coinstash/32/213_2.png) [@coinstash](https://bisq.community/u/coinstash)\
**Post date:** [September 26, 2016, 4:41pm UTC](https://bisq.community/t/error-when-running-raw-java-file/685/6 "2016-09-26T16:41:35Z")

</div>

Only one JDK here, it’s a brand new install of Windows 7 as of last week. But I have a different version, 1.8.0\_101 not 1.8.0\_92

---

<div class="post-metadata">

**Author:** ![ManfredKarrer](https://bisq.community/user_avatar/bisq.community/manfredkarrer/32/26_2.png) [@ManfredKarrer](https://bisq.community/u/ManfredKarrer)\
**Post date:** [September 26, 2016, 5:58pm UTC](https://bisq.community/t/error-when-running-raw-java-file/685/7 "2016-09-26T17:58:04Z")

</div>

type java -version into the console to see which version is used and chekc if the setup was applied there, or change JAVA\_HOME to the newer versin (and apply the setup form the [build.md](http://build.md) there). JAVA\_HOME is set in system vars on windows.

---

<div class="post-metadata">

**Author:** ![coinstash](https://bisq.community/user_avatar/bisq.community/coinstash/32/213_2.png) [@coinstash](https://bisq.community/u/coinstash)\
**Post date:** [September 27, 2016, 8:05am UTC](https://bisq.community/t/error-when-running-raw-java-file/685/8 "2016-09-27T08:05:22Z")

</div>

java -version reports what I said: 1.8.0\_101

I know about JAVA\_HOME and already set it when I installed Java.
