This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 255871 - Wrong path for installing JRE
Summary: Wrong path for installing JRE
Status: RESOLVED FIXED
Alias: None
Product: installer
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P1 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords: 81_HR_FIX
: 253417 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-10-12 12:07 UTC by legitalk
Modified: 2015-10-19 13:22 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (38.56 KB, text/plain)
2015-10-12 12:07 UTC, legitalk
Details
Installer log of last nightly build (2.26 MB, application/octet-stream)
2015-10-12 13:39 UTC, legitalk
Details
messages.log (12.83 KB, text/plain)
2015-10-16 10:02 UTC, soldatov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description legitalk 2015-10-12 12:07:03 UTC
Product Version = NetBeans IDE Dev (Build 201510120002)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.8.0_60
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.60-b23

Reproducibility: Happens every time

When I am installing NB, and choose different path to install, f.e "c:\Program Files\NetBeans", it install NB to this folder, but it will install Java JRE to default folder, f.e "c:\Program Files\NetBeans Dev 201510120002\bin\jre", or "c:\Program Files\NetBeans 8.0.1\bin\jre".

I want to have JRE in the folder "c:\Program Files\NetBeans\bin\jre".

I think, this is the bug, because I chose to install it to this folder, not to the predefined folder.

I tried this in 8.0.1, 8.1.0 and two latest DEV nightly builds
Comment 1 legitalk 2015-10-12 12:07:09 UTC
Created attachment 156667 [details]
IDE log
Comment 2 Libor Fischmeistr 2015-10-12 12:14:28 UTC
Thanks for the report, could you please attach the installer log?

http://wiki.netbeans.org/NBIFAQ#What_information_is_needed_for_a_successful_bug_report.
Comment 3 legitalk 2015-10-12 13:39:24 UTC
Created attachment 156672 [details]
Installer log of last nightly build
Comment 4 soldatov 2015-10-13 11:18:39 UTC
same problem I described in issue 253417
Comment 5 Libor Fischmeistr 2015-10-15 12:55:30 UTC
*** Bug 253417 has been marked as a duplicate of this bug. ***
Comment 6 Libor Fischmeistr 2015-10-15 13:42:33 UTC
Fix - http://hg.netbeans.org/core-main/rev/de9c4db8e0cc

Also fixed multiple installation of same nested JRE with different version of NB.
Comment 7 Quality Engineering 2015-10-16 01:25:04 UTC
Integrated into 'main-silver', will be available in build *201510160002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/de9c4db8e0cc
User: Libor Fischmeistr <lfischmeistr@netbeans.org>
Log: #255871: Wrong path for installing JRE
Comment 8 Libor Fischmeistr 2015-10-16 09:45:45 UTC
The fix is in daily build. Guys, could you please verify it? It would really help us.

Thanks
Comment 9 legitalk 2015-10-16 09:47:11 UTC
I just verified it in *201510160002*, now its OK. Thanks :-)
Comment 10 soldatov 2015-10-16 10:01:04 UTC
I can install and uninstall NetBeans correctly. But now I can't launch NetBeans.
Comment 11 soldatov 2015-10-16 10:02:09 UTC
Created attachment 156758 [details]
messages.log
Comment 12 Libor Fischmeistr 2015-10-16 10:38:48 UTC
(In reply to legitalk from comment #9)
> I just verified it in *201510160002*, now its OK. Thanks :-)

Thank you very much.
Comment 13 Libor Fischmeistr 2015-10-16 10:39:54 UTC
(In reply to soldatov from comment #10)
> I can install and uninstall NetBeans correctly. But now I can't launch
> NetBeans.
Thank you for verifying. Could you please try to launch with clear userdir and cachedir?
Comment 14 soldatov 2015-10-16 11:28:21 UTC
Every time I use --userdir and new path. Build 20151015 works nicely, but I can't launch build 20151016 on my Oracle Linux 7 machine.
Comment 15 Libor Fischmeistr 2015-10-16 14:04:23 UTC
(In reply to soldatov from comment #14)
> Every time I use --userdir and new path. Build 20151015 works nicely, but I
> can't launch build 20151016 on my Oracle Linux 7 machin

What I see in the log, it doesn't look like the issue of the installer.

Try HTML or PHP disto please.
Comment 16 soldatov 2015-10-16 14:51:45 UTC
Same problem with PHP distro
Comment 17 soldatov 2015-10-16 14:58:51 UTC
But I can launch "OS Independent" zip archive
Comment 18 soldatov 2015-10-16 15:31:53 UTC
I can't launch internal NetBeans 8.1 build too.

>Log Session: Friday, October 16, 2015 1:19:53 AM MSK
>System Info: 
  Product Version         = NetBeans IDE 8.1 (Build 201510160140) (#16689d1bda6b)
  Operating System        = Linux version 3.8.13-68.3.2.el7uek.x86_64 running on amd64
  Java; VM; Vendor        = 1.8.0_60; Java HotSpot(TM) 64-Bit Server VM 25.60-b2
Comment 19 soldatov 2015-10-16 15:50:50 UTC
I found my problem. In comment 18 I see "Log Session: Friday, October 16, 2015 1:19:53 AM MSK"
I synchronized time in my virtual machine and now I can launch, install and uninstall both builds.
Comment 20 Libor Fischmeistr 2015-10-17 06:24:37 UTC
(In reply to soldatov from comment #19)
> I found my problem. In comment 18 I see "Log Session: Friday, October 16,
> 2015 1:19:53 AM MSK"
> I synchronized time in my virtual machine and now I can launch, install and
> uninstall both builds.

So, can I consider it verified by you?
Comment 21 soldatov 2015-10-17 09:11:30 UTC
(In reply to Libor Fischmeistr from comment #20)
> (In reply to soldatov from comment #19)
> > I found my problem. In comment 18 I see "Log Session: Friday, October 16,
> > 2015 1:19:53 AM MSK"
> > I synchronized time in my virtual machine and now I can launch, install and
> > uninstall both builds.
> 
> So, can I consider it verified by you?
Yes.
Comment 22 Jiri Kovalsky 2015-10-19 12:29:41 UTC
We have also found no issues with the fix. Libore, please transplant the fix into release81 branch. Thanks.
Comment 23 Libor Fischmeistr 2015-10-19 13:22:59 UTC
(In reply to Jiri Kovalsky from comment #22)
> We have also found no issues with the fix. Libore, please transplant the fix
> into release81 branch. Thanks.

Thank you!

Fix transplanted - http://hg.netbeans.org/releases/rev/0bf9104c866d