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 91431 - NetBeans CND (C/C++ Dev. Pack) installer fails without useful message "Verifying JVM"
Summary: NetBeans CND (C/C++ Dev. Pack) installer fails without useful message "Verify...
Status: RESOLVED DUPLICATE of bug 90700
Alias: None
Product: installer
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Michal Zlamal
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-21 18:11 UTC by bugbridge
Modified: 2006-12-22 09:14 UTC (History)
2 users (show)

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 bugbridge 2006-12-21 18:11:07 UTC
Straight installation (./netbeans-cnd-5_5-solaris-sparc.bin) fails with
following output:
----
          Initializing InstallShield Wizard........
          Verifying JVM.
----
(exit code 3)

From analysis, default behaviour in event that JVM not appropriate seems to be
to fail with error code 3 but no message indicating the problem.  On default
setup Solaris (with /bin/java use), it fails to guess the Java home and exits
without explanation.

To discern above cause, one must use the non-guessable help flag (-is:help) to
find the 'log' option (-is:log <filename>) which, once enabled,
both indicates JVM problems and suggests using the already enabled 'log' option
to view errors!? (see below for full details)

----
Log file created by MultiPlatform installer @Wed Dec 20 12:51:40 GMT 2006
INSTALLER_PATH=/var/tmp/netbeans-cnd-5_5-solaris-sparc.bin
Checking the environment variables specifed in the JVM files to find the JVM...
Verifying... /bin/java  -cp  /tmp/istemp4602354125140/Verify.jar Verify 
java.vendor java.specification.version
$JDK_HOME is not defined in the shell environment specifed in the JVM FILE
jdk16unix_sun.jvm
$JDKHOME is not defined in the shell environment specifed in the JVM FILE
jdk16unix_sun.jvm
$JAVA_PATH is not defined in the shell environment specifed in the JVM FILE
jdk16unix_sun.jvm
$JAVA_HOME is not defined in the shell environment specifed in the JVM FILE
jdk16unix_sun.jvm
Verifying... /bin/java  -cp  /tmp/istemp4602354125140/Verify.jar Verify 
java.vendor java.specification.version
Verification passed for /bin/java using the JVM file
/tmp/istemp4602354125140/jdk15unix_sun.jvm.
JavaHome is not resolved correctly in the jvm file
/tmp/istemp4602354125140/jdk15unix_sun.jvm. Failed to launch the application
.
Launch Script can't not be resolved. Run the installer with -is:log <logfile> to
view the errors.
----

Workaround:
Modify PATH environmental variable to include a default-style JVM install
before "/bin" or "/usr/bin".

Details:

1. Determine path to an appropriate installed JDK
 (e.g. "/usr/jdk/instances/jdk1.6.0" -- hint: check where "ls -ld /usr/java"
links to)

2. Prepend to the PATH environmental variable per your shell's syntax, e.g:

 Non-CSH (sh, ksh, bash, etc):
         PATH=<path to JDK>/bin:$PATH ; export PATH
 CSH
         setenv PATH <path to JDK>/bin:$PATH
Comment 1 artibee 2006-12-21 18:19:25 UTC
See also issue 91432 submitted by this user.
Comment 2 mslama 2006-12-22 09:11:50 UTC
It is known issue. It is caused again by missing patch in installer launcher for
Solaris. Passing to RE. I think it should be updated.
Comment 3 mslama 2006-12-22 09:14:05 UTC

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