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 143775 - [65cat] NetBeans should start on java which is the default in path
Summary: [65cat] NetBeans should start on java which is the default in path
Status: RESOLVED FIXED
Alias: None
Product: installer
Classification: Unclassified
Component: NBI (show other bugs)
Version: 6.x
Hardware: All Linux
: P4 blocker (vote)
Assignee: dlipin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-13 15:07 UTC by Unknown
Modified: 2008-08-15 12:07 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
installer icon (3.03 KB, image/png)
2008-08-13 15:08 UTC, Unknown
Details
Running icon (2.51 KB, text/plain)
2008-08-14 15:38 UTC, Unknown
Details
thread dump when canceling the installer (8.45 KB, text/plain)
2008-08-14 16:13 UTC, Unknown
Details
Installer log (34.96 KB, text/plain)
2008-08-14 16:15 UTC, Unknown
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Unknown 2008-08-13 15:07:57 UTC
[ BUILD # : 200808111757 ]
[ JDK VERSION : 1.6.0_07 ]

Product Version: NetBeans IDE 6.5 Beta (Build 200808111757)
Java: 1.6.0_07; Java HotSpot(TM) 64-Bit Server VM 10.0-b23
System: Linux version 2.6.26-1.slh.3-sidux-amd64 running on amd64;
UTF-8; en_US (nb)
Userdir: /home/sasbeb/.netbeans/6.5beta
Attaching a screenshot
Comment 1 Unknown 2008-08-13 15:08:36 UTC
Created attachment 67269 [details]
installer icon
Comment 2 dlipin 2008-08-14 10:06:05 UTC
sasbeb,

is the icon of the running NetBeans IDE transparent?
please attach the similar screenshot.
Comment 3 dlipin 2008-08-14 10:46:28 UTC
I`ve just check.
If Installer is running on JDK6 then the icon is transparent, if it is running on JDK5 - it is not such.
The same about NetBeans IDE itself.

Marking as WONTFIX - looks like JDK5 does not handle transparent .png images correctly.
Comment 4 Unknown 2008-08-14 11:37:47 UTC
I am running 1.6:
Product Version: NetBeans IDE 6.5 Beta (Build 200808111757)
Java: 1.6.0_07; Java HotSpot(TM) 64-Bit Server VM 10.0-b23
System: Linux version 2.6.26-1.slh.3-sidux-amd64 running on amd64;
UTF-8; en_US (nb)
Userdir: /home/sasbeb/.netbeans/6.5beta
Comment 5 Unknown 2008-08-14 11:38:47 UTC
The running icon is transparent.
Do you still want a screenshot?
Comment 6 dlipin 2008-08-14 11:42:51 UTC
Yes, I want the icon of the Installer that is running on JDK6:
netbeans-6.5beta-linux.sh --javahome <path-to-jdk6u7>

Could you please clarify why you reopened the issue? do you disagree that it is JDK issue?
Comment 7 dlipin 2008-08-14 11:47:41 UTC
if you choose JDK5 (if you have it) during NetBeans installation (at the NetBeans configuration panel in installer) 
then the NetBeans IDE running icon would be not transparent.

You can also check it by running
<installdir>/bin/netbeans --jdkhome <path-to-jdk5>

Dmitry
Comment 8 Unknown 2008-08-14 15:37:34 UTC
I reopend the issue because I'm not running jdk1.5.
I'm running jdk1.6

java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) 64-Bit Server VM (build 10.0-b23, mixed mode)
Comment 9 Unknown 2008-08-14 15:38:26 UTC
Created attachment 67423 [details]
Running icon
Comment 10 dlipin 2008-08-14 15:58:50 UTC
could you please attach the latest installation log then ?
it is available at ~/.nbi/log directory.
Comment 11 dlipin 2008-08-14 16:02:18 UTC
even better if you run installer in verbose mode:
sh ./netbeans-6.5beta-linux.sh --verbose --output out.txt
and after the UI is shown please close the installer and attach the resulting out.txt here.
Comment 12 Unknown 2008-08-14 16:12:45 UTC
Attaching a thread dump when I hit cancel on the installer.
Comment 13 Unknown 2008-08-14 16:13:24 UTC
Created attachment 67430 [details]
thread dump when canceling the installer
Comment 14 dlipin 2008-08-14 16:16:28 UTC
Sorry, I don`t need the thread dump.
Just run
sh ./netbeans-6.5beta-linux.sh --verbose --output out.txt
and after the UI is shown please close the installer in the usual manner - by clicking the X or Cancel button.
Comment 15 Unknown 2008-08-14 16:16:29 UTC
Created attachment 67431 [details]
Installer log
Comment 16 Unknown 2008-08-14 16:18:34 UTC
Looking at the log (I had to copy it from the console since cancel hung)
The installer is using jdk1.5 when I have jdk1.6 and 1.5 installed (like you said).
However, the installer is chosing jdk1.5 instead of jdk1.6.  I'd call that a bug.
Comment 17 dlipin 2008-08-14 16:19:48 UTC
So...
Due to the log installer is running on Java5 installed at /usr/lib/jvm/ia32-java-1.5.0-sun/jre.
That`s why the icon is not transparent.
Comment 18 dlipin 2008-08-14 16:20:52 UTC
why do you think that it is a bug?
Comment 19 Unknown 2008-08-14 16:22:18 UTC
The installer is choosing the wrong jdk.
..And there is a bug when the user cancels out of the installer.
I'll file a separate issue.
Comment 20 dlipin 2008-08-14 16:24:05 UTC
The thing is that installer runs on the first JDK that it could find. In your case it is JDK5.

The goal is to have as fast UI showing as possible... we can`t waste time searching for all available JDKs installed on 
the system and choosing the one that it the best... JDK5 is OK. We can run on it and that`s fine.
Comment 21 Unknown 2008-08-14 16:26:09 UTC
OK...
Thanks for the info...
It just seems like the NB installer wouldn't search first.  It seems like it would execute java -[some jar]
If that failed, then do the search.
Comment 22 dlipin 2008-08-14 21:32:42 UTC
I`ll update the unix native launcher to check 'which java' before searching the entire system.
Comment 23 Unknown 2008-08-15 03:48:06 UTC
Cool.
Thanks.
Comment 24 dlipin 2008-08-15 12:07:26 UTC
Fixed.
http://hg.netbeans.org/main/rev/0884704d5bf9