Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime Error when selecting Custom location for JDK path #2

Open
iki opened this issue Mar 25, 2015 · 13 comments
Open

Runtime Error when selecting Custom location for JDK path #2

iki opened this issue Mar 25, 2015 · 13 comments

Comments

@iki
Copy link

iki commented Mar 25, 2015

On Win8 x64 with jre-8u40-windows-x64.exe installed in C:\Java, the installer does not find JDK path.

Later, it asks for JDK path with radio selector, and offers a single Custom location choice. After selecting, it reports Runtime Error (at 28:617): Out Of Range.

@iki
Copy link
Author

iki commented Mar 25, 2015

Installing 32bit jre-8u40-windows-i586.exe into C:\Java32 did not change anything.

I'm ready to help with testing further...

@djpowell
Copy link
Owner

Hi,
I haven't tested with Windows 8, but I'm surprised that it doesn't work.
There should be a setup log file at: "%TEMP%\Setup Log yyyy-mm-dd #nnn.txt"

@iki
Copy link
Author

iki commented Mar 27, 2015

The log reads:

2015-03-25 20:43:50.673   Log opened. (Time zone: UTC+01:00)
2015-03-25 20:43:50.673   Setup version: Inno Setup version 5.5.4 (a)
2015-03-25 20:43:50.673   Original Setup EXE: D:\Downloads\dev.cl\leiningen-installer-1.0.exe
2015-03-25 20:43:50.673   Setup command line: /SL5="$770B4C,5716645,56832,D:\Downloads\dev.cl\leiningen-installer-1.0.exe" 
2015-03-25 20:43:50.674   Windows version: 6.2.9200  (NT platform: Yes)
2015-03-25 20:43:50.674   64-bit Windows: Yes
2015-03-25 20:43:50.674   Processor architecture: x64
2015-03-25 20:43:50.674   User privileges: None
2015-03-25 20:43:50.680   64-bit install mode: No
2015-03-25 20:43:50.693   Created temporary directory: C:\Users\iki\AppData\Local\Temp\is-TI6LC.tmp
2015-03-25 20:43:50.815   Message box (Yes/No):
                          An installed Java Development Kit could not be found automatically.

                          Ensure that you have downloaded and installed a JDK from:
                          http://www.oracle.com/technetwork/java/javase/overview/index.html

                          Continue the installation?
2015-03-25 20:43:51.795   User chose Yes.
2015-03-25 20:44:03.437   Exception message:
2015-03-25 20:44:03.438   Message box (OK):
                          Runtime Error (at 28:617):

                          Out Of Range.
2015-03-25 20:44:05.150   User chose OK.
2015-03-25 20:44:06.435   Message box (Yes/No):
                          Setup is not complete. If you exit now, the program will not be installed.

                          You may run Setup again at another time to complete the installation.

                          Exit Setup?
2015-03-25 20:44:07.852   User chose Yes.
2015-03-25 20:44:07.852   Deinitializing Setup.
2015-03-25 20:44:07.884   Log closed.

@iki
Copy link
Author

iki commented Mar 27, 2015

Basically, there are 2 issues:

  1. neither installed jre8 64bit, nor 32bit is detected
  2. when there's no jre detected, installer fails on selecting to specify the path manually (that one could manifest on any platform, try to uninstall your jre)

@djpowell
Copy link
Owner

Ah, I think the problem is that you are using a JRE. The installer is expecting a full JDK to be installed as a pre-requisite. I'm not sure how well Leiningen works with just a JRE - I'd imagine it at least wouldn't be able to compile Java source code in projects.

The error message if you try to manually point to a JRE should be better though.

Does that sound ok? Could you try it again with a full JDK installed?

@gimbiss
Copy link

gimbiss commented Mar 28, 2018

I just had this problem running leiningen win-installer on Windows 10 with the full jdk-9.0.4 installed in the standard location (C:\Program Files\Java, I don't have any other versions of the Java SDK installed on my machine) . Went to bitbucket as per response to another issue with leiningen win installer but could not find where to see or report issues ?

I am trying to get a clojure dev environment running on my machine.
I am new to all this including Java.
But it seems that this is a known problem from previously reported issues, I just can't figure out if it was suppossed to be fixed or not.

My only choice right now is to roll back to the latest version of JDK 8 and see if it resovles the issue.

I would appreciate some clarity though.

I am attching a picture of my Java JDK folders and the installer log file as per instructions above:

javajdkfolders

Setup Log 2018-03-28 #005.txt

@gimbiss
Copy link

gimbiss commented Mar 28, 2018

I installed jdk 8 161 and the leiningen win installer ran to completion.
One onion layer down and ? to go.

@JBeckintosh
Copy link

I tried some different JDK's, and here's what I found.
-> jdk-8u161-windows-x64 is something that the lein installer is able to find
-> jdk-9.0.4_windows-x64_bin is not something that the lein installer can find
-> jdk-10_windows-x64_bin is not something that the lein installer can find

Based on this, either the version of the jdk or the _bin jdk type should be what is preventing lein from finding a JDK to use for installing

@djpowell
Copy link
Owner

djpowell commented Apr 5, 2018 via email

@gimbiss
Copy link

gimbiss commented Apr 9, 2018 via email

@gimbiss
Copy link

gimbiss commented Apr 9, 2018 via email

@rafael-atias
Copy link

Thanks, while looking around I saw a response (I think it was on StackOverflow) that drilled down and explained what the root of the problem is, but I can't find it now. If I do I'll post the link.

Do you mean this thread?

I am having the same issue, but right now I cannot post the content of the log file

@simmranvermaa
Copy link

I am trying to install lein and it keeps running into Runtime Error (at 28:617): Out Of Range while setting the custom location. Using: jdk-13.0.2_windows-x64_bin.exe. Is this issue resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants