Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: where to locate DLL in Eclipse (RE: [cdt-dev] Windows Registr y Access)

Yes, there is a lot of magic to this. System calls on the class loader, which in this case is a special class loader provided by Eclipse. The Eclipse class loader then looks in the os/<os>/<arch> directory for the library. What I’m not clear on is how System knows which class loader to call and I’m not sure how Eclipse knows which plugin or fragments to look in. But it seems to be based on where the loadLibrary call originates. All I know for sure is that it works and in our case with the loadLibrary call in cdt.core and the DLL in the cdt.core.win32 fragment.

 

Hope this helps,

Doug Schaefer, QNX Software Systems

Eclipse CDT Project Lead, Tools PMC member

http://cdtdoug.blogspot.com

 


From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Ling.5.Wang@xxxxxxxxx
Sent: Thursday, April 06, 2006 6:54 PM
To: cdt-dev@xxxxxxxxxxx
Subject: where to locate DLL in Eclipse (RE: [cdt-dev] Windows Registry Access)

 

Hi, Doug,

 

As to this line in WindowsRegistry.java

    System.loadLibrary("winreg");

How does it know to get the winreg.dll from "c:\eclipse\plugins\org.eclipse.cdt.core.win32_xxx\os\win32\x86" ? As that folder is usually not in the PATH, does Eclipse have its own way of specifying the DLL location ? by a java vm option ?

Thanks.

 

-- Ling

 


From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of ext Doug Schaefer
Sent: Monday, April 03, 2006 8:18 AM
To: CDT General developers list.
Subject: [cdt-dev] Windows Registry Access

Hey gang,

 

I have implemented a utility to get at the Windows registry in a class called WindowsRegistry (of course) in the cdt.core. Right now I’ve only implemented access to HKEY_LOCAL_MACHINE. But it’s a simple matter to add other ones. I have also only implemented read-access. We could do write as well but there are better Eclipse ways of doing such things (e.g. preference scopes).

 

The idea is to find out install information for various tools that we need to integrate with, e.g. cygwin, mingw, msvc. Please feel free to make use of it where you can. One good place is the cygwin entry in the PATH variable for managed build where we currently do a shell call to regedit.

 

Doug Schaefer, QNX Software Systems

Eclipse CDT Project Lead, Tools PMC member

http://cdtdoug.blogspot.com

 

 


Back to the top