# Java isn't installed - Do you want to install it - Error

**URL:** <https://talk.jelurida.com/t/java-isnt-installed-do-you-want-to-install-it-error/301>\
**Category:** Developers\
**Created:** [25 April 2021 15:36 UTC](https://talk.jelurida.com/t/java-isnt-installed-do-you-want-to-install-it-error/301 "2021-04-25T15:36:07Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandoche](https://talk.jelurida.com/user_avatar/talk.jelurida.com/sandoche/32/89_2.png) [@sandoche](https://talk.jelurida.com/u/sandoche)\
**Post date:** [25 April 2021 15:36 UTC](https://talk.jelurida.com/t/java-isnt-installed-do-you-want-to-install-it-error/301/1 "2021-04-25T15:36:08Z")

</div>

Hi,

I am building a windows installer for a blockchain based on nxt-clone-starter.

I managed to build it thanks to the help of @lior.yaffe in this topic: [win-release-package.sh creates a corrupted nxt-client-1.12.2.jar file - #15 by lior.yaffe](https://talk.jelurida.com/t/win-release-package-sh-creates-a-corrupted-nxt-client-1-12-2-jar-file/296/15)

It works good in my laptop, where Java is installed. But when someone else without java tries he gets this error message:

 ![image](https://talk.jelurida.com/uploads/default/original/1X/6ffec137fc0af75e73098d9f8b3dbfead22c3cd2.png)

It happens when opening the main `exe` file. I checked the installed folder it has `jdk` and `javafx-sdk` in it.

If you want to give a try here is the installer:

> **[Release VcashPay Wallet 1.12.2 · lucidddreams/VcashPay-core](https://github.com/lucidddreams/VcashPay-core/releases/tag/1.12.2)**
>
> VcashPay - Digital money for the modern world. Contribute to lucidddreams/VcashPay-core development by creating an account on GitHub.

Best regards,

---

<div class="post-metadata">

**Author:** ![manieqq](https://talk.jelurida.com/letter_avatar_proxy/v4/letter/m/4491bb/32.png) [@manieqq](https://talk.jelurida.com/u/manieqq)\
**Post date:** [25 April 2021 19:08 UTC](https://talk.jelurida.com/t/java-isnt-installed-do-you-want-to-install-it-error/301/2 "2021-04-25T19:08:30Z")

</div>

HELLO  
try this

> <https://github.com/sandoche/Proof-of-Stake-Cryptocurrency-generator/blob/master/BUILD-README.md>

---

<div class="post-metadata">

**Author:** ![sandoche](https://talk.jelurida.com/user_avatar/talk.jelurida.com/sandoche/32/89_2.png) [@sandoche](https://talk.jelurida.com/u/sandoche)\
**Post date:** [26 April 2021 18:02 UTC](https://talk.jelurida.com/t/java-isnt-installed-do-you-want-to-install-it-error/301/3 "2021-04-26T18:02:17Z")

</div>

Hi @manieqq

I did follow this and even the advices of @lior.yaffe since some of this instructions have slightly changed in the version 1.12.2.

I managed to create the installer, nevertheless the final executable after installation gives this error (in someone's computer that does not have Java, it works in mine).

---

<div class="post-metadata">

**Author:** ![lior.yaffe](https://talk.jelurida.com/letter_avatar_proxy/v4/letter/l/ecb155/32.png) [@lior.yaffe](https://talk.jelurida.com/u/lior.yaffe)\
**Post date:** [28 April 2021 05:51 UTC](https://talk.jelurida.com/t/java-isnt-installed-do-you-want-to-install-it-error/301/4 "2021-04-28T05:51:01Z")

</div>

Open the command line cmd.exe and cd to your installation folder (C:\Program Files\NXT or similar)

From there issue the command  
`jdk\bin\java -Dnxt.runtime.mode=desktop -jar nxt.jar`

Your node should start correctly and after loading the genesis block start the wallet.

Now, stop the node by pressing Ctrl+C

Then run nxt.exe from the same command line.

Does it start the node?

---

<div class="post-metadata">

**Author:** ![sandoche](https://talk.jelurida.com/user_avatar/talk.jelurida.com/sandoche/32/89_2.png) [@sandoche](https://talk.jelurida.com/u/sandoche)\
**Post date:** [28 April 2021 11:19 UTC](https://talk.jelurida.com/t/java-isnt-installed-do-you-want-to-install-it-error/301/6 "2021-04-28T11:19:57Z")

</div>

This works

```auto
jdk\bin\java -Dnxt.runtime.mode=desktop -jar VcashPay.jar

```

But running VcashPay.exe directly from the terminal gives the error below.

 ![photo_2021-04-28_12-18-24](https://talk.jelurida.com/uploads/default/original/1X/7df1902d87ac8939d330fc2c6a1da52b9bf444aa.jpeg)

And running this also:

```auto
C:\Program Files\VCP>jdk\bin\java -Dnxt.runtime.mode=desktop .\VcashPay.exe
Error: Could not find or load main class .\VcashPay.exe
Caused by: java.lang.ClassNotFoundException: /\VcashPay/exe

```

Am I doing it wrong?

---

<div class="post-metadata">

**Author:** ![sandoche](https://talk.jelurida.com/user_avatar/talk.jelurida.com/sandoche/32/89_2.png) [@sandoche](https://talk.jelurida.com/u/sandoche)\
**Post date:** [30 April 2021 09:14 UTC](https://talk.jelurida.com/t/java-isnt-installed-do-you-want-to-install-it-error/301/7 "2021-04-30T09:14:50Z")

</div>

@lior.yaffe any insight on it?

---

<div class="post-metadata">

**Author:** ![lior.yaffe](https://talk.jelurida.com/letter_avatar_proxy/v4/letter/l/ecb155/32.png) [@lior.yaffe](https://talk.jelurida.com/u/lior.yaffe)\
**Post date:** [2 May 2021 12:49 UTC](https://talk.jelurida.com/t/java-isnt-installed-do-you-want-to-install-it-error/301/8 "2021-05-02T12:49:51Z")

</div>

> [@sandoche](#):
>
> `VcashPay`

Rename resource\nxt.properties to resource\VcashPay.properties  
i.e. the name of the properties file in the resource folder must match the name of the exe file.

---

<div class="post-metadata">

**Author:** ![sandoche](https://talk.jelurida.com/user_avatar/talk.jelurida.com/sandoche/32/89_2.png) [@sandoche](https://talk.jelurida.com/u/sandoche)\
**Post date:** [4 May 2021 17:59 UTC](https://talk.jelurida.com/t/java-isnt-installed-do-you-want-to-install-it-error/301/9 "2021-05-04T17:59:21Z")

</div>

Hi,

I tried on my laptop where it worked already, when I rename it VcashPay.properties it doesn't work it says something like JVM not found. With nxt it works on my laptop. But it didn't work on my client's laptop. Same error than above.

I am not sure what to do 😕

Thanks,

---

<div class="post-metadata">

**Author:** ![sandoche](https://talk.jelurida.com/user_avatar/talk.jelurida.com/sandoche/32/89_2.png) [@sandoche](https://talk.jelurida.com/u/sandoche)\
**Post date:** [5 May 2021 21:25 UTC](https://talk.jelurida.com/t/java-isnt-installed-do-you-want-to-install-it-error/301/10 "2021-05-05T21:25:17Z")

</div>

I also tried, to copy paste the jdk and javafx-jdk folders from the NXT installed wallet to the VcashPay folder and it didn't resolve the issue.

Renaming the files as you suggested didn't solve the issue.  
I tried to find in the code where the resource\nxt.properties file is called to check/change it but couldn't find it.

Do you have any other idea of how to fix this issue?  
In case you need the sourcecode of the wallet is here: [GitHub - regedittap/VcashPay-core: VcashPay blockchain](https://github.com/regedittap/VcashPay-core)

---

<div class="post-metadata">

**Author:** ![sandoche](https://talk.jelurida.com/user_avatar/talk.jelurida.com/sandoche/32/89_2.png) [@sandoche](https://talk.jelurida.com/u/sandoche)\
**Post date:** [5 May 2021 21:35 UTC](https://talk.jelurida.com/t/java-isnt-installed-do-you-want-to-install-it-error/301/11 "2021-05-05T21:35:53Z")

</div>

> [@lior.yaffe](#):
>
> Rename resource\nxt.properties to resource\VcashPay.properties

When you say this do you mean before compiling the wallet?  
I only tried to rename once the wallet installed.

---

<div class="post-metadata">

**Author:** ![sandoche](https://talk.jelurida.com/user_avatar/talk.jelurida.com/sandoche/32/89_2.png) [@sandoche](https://talk.jelurida.com/u/sandoche)\
**Post date:** [8 May 2021 12:42 UTC](https://talk.jelurida.com/t/java-isnt-installed-do-you-want-to-install-it-error/301/12 "2021-05-08T12:42:01Z")

</div>

A bit of progress, basically it seems that renaming `resource\nxt.properties` to `resource\VcashPay.properties` made some progress. I am working on a VM to test directly.

The problem now, is now the same as here with the NXT wallet:  
[win-release-package.sh creates a corrupted nxt-client-1.12.2.jar file - #8 by sandoche](https://talk.jelurida.com/t/win-release-package-sh-creates-a-corrupted-nxt-client-1-12-2-jar-file/296/8) "Can't run the JVM"

---

<div class="post-metadata">

**Author:** ![sandoche](https://talk.jelurida.com/user_avatar/talk.jelurida.com/sandoche/32/89_2.png) [@sandoche](https://talk.jelurida.com/u/sandoche)\
**Post date:** [8 May 2021 12:57 UTC](https://talk.jelurida.com/t/java-isnt-installed-do-you-want-to-install-it-error/301/13 "2021-05-08T12:57:06Z")

</div>

Actually by replacing the `jdk` and `javafx-sdk` by the ones found in the nxt installer it seems to work. I still have another issue compiling I need to figure out that now.
