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 213687 - No drag image support when using jdk7 on Linux
Summary: No drag image support when using jdk7 on Linux
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 7.2
Hardware: PC Linux
: P2 normal with 2 votes (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
: 213600 (view as bug list)
Depends on:
Blocks: 216043
  Show dependency tree
 
Reported: 2012-06-06 17:34 UTC by mgoe
Modified: 2012-10-11 10:25 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Modified Netbeans start script fixing the problem. (7.50 KB, patch)
2012-06-06 17:37 UTC, mgoe
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description mgoe 2012-06-06 17:34:34 UTC
When using jdk7 on Linux (I'm using jdk7u4 64bit) to execute Netbeans, a drag image (small copy of the window content) is not displayed when dragging for example an editor window. Instead of the drag image the normal drag cursor is used.

I think the problem is that the native code libraries of jdk7 are no longer in the LD_LIBRARY_PATH. The problem can be fixed by inserting the following lines in the Netbeans start shell script (<NB_INST_DIR>/bin/netbeans) at line 245:

# Make sure native code libraries of jdk7 are found
JDK_DIR="${netbeans_jdkhome}"
export LD_LIBRARY_PATH=${JDK_DIR}/jre/lib/amd64:${JDK_DIR}/jre/lib/i386:${LD_LIBRARY_PATH}

Best regards,
Martin

PS: Applications based on the Netbeans platform are affected as well. Setting the LD_LIBRARY_PATH helps too.
Comment 1 mgoe 2012-06-06 17:37:08 UTC
Created attachment 120443 [details]
Modified Netbeans start script fixing the problem.
Comment 2 Stanislav Aubrecht 2012-06-11 10:01:51 UTC
*** Bug 213600 has been marked as a duplicate of this bug. ***
Comment 3 Stanislav Aubrecht 2012-06-11 11:07:22 UTC
Thanks for the patch but it's a bit too risky now when 7.2 is about to be released.
It'll be fixed in the 7.2.1 patch later on.
Comment 4 mgoe 2012-06-11 15:31:57 UTC
If it is not planned to fix this problem in the jdk (bring back the behavior as it was in jdk5 and jdk6) you should not forget to fix the start scripts created for applications based on the Netbeans platform as well.

Best regards,
Martin
Comment 5 Stanislav Aubrecht 2012-06-26 13:18:02 UTC
core-main d7b420b2932f
Comment 6 Quality Engineering 2012-06-28 04:54:31 UTC
Integrated into 'main-golden', will be available in build *201206280002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/d7b420b2932f
User: S. Aubrecht <saubrecht@netbeans.org>
Log: #213687 - Make sure native code libraries of jdk7 are found
Comment 7 Jiri Rechtacek 2012-07-27 11:45:15 UTC
The regression issue 216043 caused by http://hg.netbeans.org/main-golden/rev/d7b420b2932f was fixed http://hg.netbeans.org/core-main/rev/47e19c46040b

So it's necessary to do backport both changesets together. Note: patching nbexec launcher is still a bit risky and must be tested well on all affected platforms.
Comment 8 Jiri Rechtacek 2012-07-27 11:49:15 UTC
(In reply to comment #7)
> The regression issue 216043 caused by
> http://hg.netbeans.org/main-golden/rev/d7b420b2932f was fixed
> http://hg.netbeans.org/core-main/rev/47e19c46040b
> 
> So it's necessary to do backport both changesets together. Note: patching
> nbexec launcher is still a bit risky and must be tested well on all affected
> platforms.
More precise, delivering patches nbexec via auto update might be risky and must be tested well, incl. IDE installed as admin vs IDE installed as user.
Comment 9 Marian Mirilovic 2012-08-02 15:17:18 UTC
Because we will distribute Patch 1 just through an UCs,  I propose to move this into the next patch.
Comment 10 Tomas Danek 2012-10-05 08:52:54 UTC
verified. PLease backport together w/ issue 216043
Comment 11 Stanislav Aubrecht 2012-10-05 10:05:59 UTC
transplanted to release72 branch as db4a4ed9ecc4 and 6581fdd67f92
Comment 12 Quality Engineering 2012-10-10 14:15:44 UTC
Integrated into 'releases', will be available in build *201210100934* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/6581fdd67f92
User: S. Aubrecht <saubrecht@netbeans.org>
Log: #213687 - Make sure native code libraries of jdk7 are found
(transplanted from d7b420b2932f5ae2ca46ad9e930625adca21e59f)
Comment 13 Tomas Danek 2012-10-11 10:25:24 UTC
nbexec contains correct code. Functionality of this code was verified previously in trunk.