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 155406 - Unsatisfied link error loading library
Summary: Unsatisfied link error loading library
Status: RESOLVED INVALID
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-13 04:52 UTC by ocross
Modified: 2009-09-18 12:03 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 ocross 2008-12-13 04:52:49 UTC
Code run fine without the profiler but when trying to run it with the profiler ClassLoader.loadLibrary0 can't find 
external library.
Comment 1 Petr Cyhelsky 2008-12-13 12:21:18 UTC
Can you please submit more information? We would need at least messages.log or the whole error message and also
information about build/jdk you are using.
Comment 2 ocross 2008-12-22 01:00:33 UTC
This is the error stack

init:
profile-init:
deps-jar:
compile:
profile:
Profiler Agent: Waiting for connection on port 5140, timeout 10 seconds (Protocol version: 8)
Profiler Agent: Established local connection with the tool
java.lang.UnsatisfiedLinkError: D:\VTK 5.05\VTKBin\bin\vtkRenderingJava.dll: Can't find dependent libraries
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
Profiler Agent: Connection with agent closed
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
Profiler Agent: Connection with agent closed
        at java.lang.ClassLoader.loadLibrary(C
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1647)
        at java.lang.Runtime.load0(Runtime.java:770)
        at java.lang.System.load(System.java:1005)
        at papermaterials.Main.<clinit>(Main.java:36)
Profiler Agent: Initializing...
Profiler Agent: Options: >D:\Program Files\NetBeans 6.5\profiler3\lib,5140,10<
Profiler Agent: Initialized succesfully
Exception in thread "main" 
Exception in thread "main" Java Result: 1
BUILD SUCCESSFUL (total time: 2 seconds)

Config is:

Product Version: NetBeans IDE 6.5 (Build 200811100001)
Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b06
System: Windows XP version 5.1 running on x86; Cp1252; en_AU (nb)

Code runs when launched normally and in debug mode. But the profiler is not happy with it. Loaded the lib with both System.load (specifying the full path) as well as System.loadlibrary but I get the same problem.

Comment 3 Petr Cyhelsky 2009-04-27 11:20:05 UTC
Can you please attach the messages log file - from the output we can only see that some exception occurred, but not the
stacktrace...
Comment 4 matusdekanek 2009-09-18 12:03:30 UTC
missing additional information for a few months -> resolving invalid
Reporter: if it is still reproducible, please attach the message.log file and reopen. Thanks