# Trouble with ZIP Installation & custom Java

**URL:** <https://help.ganttproject.biz/t/trouble-with-zip-installation-custom-java/2006>\
**Category:** GanttProject Desktop Support\
**Created:** [June 12, 2020, 2:41pm UTC](https://help.ganttproject.biz/t/trouble-with-zip-installation-custom-java/2006 "2020-06-12T14:41:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![JohnDuff71](https://help.ganttproject.biz/letter_avatar_proxy/v4/letter/j/71e660/32.png) [@JohnDuff71](https://help.ganttproject.biz/u/JohnDuff71)\
**Post date:** [June 12, 2020, 2:41pm UTC](https://help.ganttproject.biz/t/trouble-with-zip-installation-custom-java/2006/1 "2020-06-12T14:41:33Z")

</div>

Hello there,

Thank you for the fantastic app that I use on my work notebook for scheduling my tasks and projects.

So far, I have been able to use 2.8.11.2396 without problem (portable ZIP since I can’t install anything on my work notebook).

Then I wanted to try the 2.99 beta version, just to give it a look.

I’ve downloaded ZIP version here:

[2.99 ZIP Version](https://www.dropbox.com/sh/ijzr7s7ozxqexls/AADlRUGq667XQjEK8j4StEp2a?dl=0)

and extracted it there: C:\ganttproject-2.99-r2903

Since this notebook does not have Java RE with FX, i’ve downloaded Liberica 11 full JDK, also in ZIP format, here:

[Liberica Full 11 JDK](https://bell-sw.com/pages/downloads/#/java-11-lts)

and extracted it in the same folder as above: C:\ganttproject-2.99-r2903

I’ve changed path to new JRE on the bat file as below:

_@echo off_  
_ **SET “JAVA\_HOME=C:\ganttproject-2.99-r2903\jdk-11.0.7-full”** _  
_SET “GP\_HOME=C:\ganttproject-2.99-r2903”_  
_SET “JAVA\_COMMAND=%JAVA\_HOME%\bin\java.exe”_  
_IF “%JAVA\_HOME%”==“” SET JAVA\_COMMAND=java_  
_SET LOCAL\_CLASSPATH=%GP\_HOME%\eclipsito.jar;%GP\_HOME%_  
_SET CONFIGURATION\_FILE=–verbosity 4 --version-dirs plugins --app net.sourceforge.ganttproject.GanttProject_  
_SET BOOT\_CLASS=com.bardsoftware.eclipsito.Launch_  
_“%JAVA\_COMMAND%” -Xmx512m -classpath “%CLASSPATH%;%LOCAL\_CLASSPATH%” -ea -Dsun.java2d.d3d=false %BOOT\_CLASS% “%CONFIGURATION\_FILE%” – -log true %1 %2 %3 %4 %5 %6_  
_if %ERRORLEVEL% EQU 9009 goto ERROR\_NO\_JAVA_  
_goto END_  
_:ERROR\_NO\_JAVA_  
_echo “Please set up JAVA\_HOME variable”_  
_:END_

Now when opening that bat file in cmd, I get the following errors:

**Exception in thread “main” java.lang.NullPointerException**  
**at com.bardsoftware.eclipsito.Launch.getVersionLayerStoreDirs(Launch.java:128)**  
**at com.bardsoftware.eclipsito.Launch.main(Launch.java:81)**

And, of course, I can’t open GanttProject since it can’t recognize the correct JRE:  
 ![image](https://help.ganttproject.biz/uploads/default/original/1X/5006f362dfbdf902fdf7eea6bea73b842289adc9.png)

What am I doing wrong?

**My OS: Windows 10 Enterprise 1803**

Please help!

Thanks!

---

<div class="post-metadata">

**Author:** ![JohnDuff71](https://help.ganttproject.biz/letter_avatar_proxy/v4/letter/j/71e660/32.png) [@JohnDuff71](https://help.ganttproject.biz/u/JohnDuff71)\
**Post date:** [June 12, 2020, 2:47pm UTC](https://help.ganttproject.biz/t/trouble-with-zip-installation-custom-java/2006/2 "2020-06-12T14:47:14Z")

</div>

PS:

I get same errors using full JRE zip package from Liberica.

---

<div class="post-metadata">

**Author:** ![DmitryBarashev](https://help.ganttproject.biz/user_avatar/help.ganttproject.biz/dmitrybarashev/32/406_2.png) [@DmitryBarashev](https://help.ganttproject.biz/u/DmitryBarashev)\
**Post date:** [June 14, 2020, 11:01pm UTC](https://help.ganttproject.biz/t/trouble-with-zip-installation-custom-java/2006/3 "2020-06-14T23:01:32Z")

</div>

Yes, it seems that bat is not working properly. You may try surrounding the right-hand side of this assignment with double quotes:

```auto
SET CONFIGURATION_FILE="–verbosity 4 --version-dirs plugins --app net.sourceforge.ganttproject.GanttProject"

```

`ganttproject.exe` may work if you rename your Java Runtime directory to `runtime`.

---

<div class="post-metadata">

**Author:** ![JohnDuff71](https://help.ganttproject.biz/letter_avatar_proxy/v4/letter/j/71e660/32.png) [@JohnDuff71](https://help.ganttproject.biz/u/JohnDuff71)\
**Post date:** [June 15, 2020, 11:31am UTC](https://help.ganttproject.biz/t/trouble-with-zip-installation-custom-java/2006/4 "2020-06-15T11:31:22Z")

</div>

Hello Dmitry,

It worked like a charm, many thanks!

---

<div class="post-metadata">

**Author:** ![DmitryBarashev](https://help.ganttproject.biz/user_avatar/help.ganttproject.biz/dmitrybarashev/32/406_2.png) [@DmitryBarashev](https://help.ganttproject.biz/u/DmitryBarashev)\
**Post date:** [June 15, 2020, 8:29pm UTC](https://help.ganttproject.biz/t/trouble-with-zip-installation-custom-java/2006/5 "2020-06-15T20:29:17Z")

</div>

Closed on June 15, 2020, 8:29pm UTC


