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 106142 - ZIP Distribution - finding default JRE
Summary: ZIP Distribution - finding default JRE
Status: RESOLVED DUPLICATE of bug 74497
Alias: None
Product: apisupport
Classification: Unclassified
Component: Harness (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: _ rkubacki
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-08 16:26 UTC by nicholeuf
Modified: 2007-06-25 15:15 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nicholeuf 2007-06-08 16:26:47 UTC
It appears that an application built on the netbeans platform and bundled in a
ZIP distribution (by selecting 'Build ZIP Distribution') requires the user to
modify the 'etc/app.conf' file's jdkhome property in order for the application
to even run.  I DO NOT think that it is user friendly for a windows user to be
required to run app.exe on the command line with the jdkhome switch set or to
modify this property.  The user expects to be able to double click on the exe
after unbundling the distribution.

Rather than requiring the jdkhome property to be set, why not look for the
JAVA_HOME property or check which java is currently on the user's path?
Comment 1 Jesse Glick 2007-06-25 14:54:59 UTC
Radim do you still work on Win32 launchers?

On Unix, the harness' generated script does not set $jdkhome, but nbexec looks for Java in the path if necessary.
Perhaps nbexec.exe works differently for some reason?
Comment 2 _ rkubacki 2007-06-25 15:15:32 UTC
I did a few changes in nbexec.exe for NB6 and some of them are related - #74497 and later fixed #106357. Basically the
latest JDK/JRE (at least 1.5 version) is now used if valid jdkhome is not specified in .conf file or passed through
command line.

*** This issue has been marked as a duplicate of 74497 ***