gitblit-org / gitblit

pure java git solution
http://gitblit.com
Apache License 2.0
2.27k stars 670 forks source link

How can I specify the JDK version when Gitblit Starts? #1462

Open chenhua23 opened 8 months ago

chenhua23 commented 8 months ago

As we know,the latest version gitblit-1.9.3 not support JDK17,i have jdk8 and jdk17 on my pc, can we find a way to specify the JDK version when we start it?

chenhua23 commented 8 months ago

can i add this @SET JAVA_HOME=C:\develop\java\xxx\jdk1.8.0_252 in gitblit.cmd to resolve it?

flaix commented 8 months ago

Yes, setting JAVA_HOME will set which Java is used.