I am trying to work with a few...
Articles and Tips: qna
01 Oct 2001
Q.
I am trying to work with a few sample code items from the Novell Web site and am having difficulty in setting up my environment. I am new to Java so I am learning as I go.
I have downloaded the LDAP Class Libraries for Java (NetWare and Windows). When trying to compile a program sample errors are generated stating that it can't find the package to import, ie. com.novell.ldap.. After running the install, I do not see the directories required. I have been looking at the developer site for set up help but can't seem to locate anything. Do you have any documentation on how to setup a environment to use the class libraries?
A.
Yes, we can provide you with information. Please see http://developer.novell.com/ndk/readme/jldap.txt
under the Installation section.Are you building in a Win32 environment or on a NetWare server?
After installing the LDAP Class Libraries for Java you should get a directory \novell\ndk\ndssdk\java\lib containing ldap.jar. On a server it is sys:\java\lib\ldap.jar If you got that, you need to include drive:\novell\ndk\java\lib\ldap.jar in your CLASSPATH. On NetWare if you are building there, use envset to set the classpath.
If the install did not do this for you, then please go to http://developer.novell.com/ndk/jldap.htm. Select the "download" button that is under "Software" to get the file jldap.exe. Use the "traditional download" option. Run this executable using the defaults. Good Luck!
* Originally published in Novell AppNotes
Disclaimer
The origin of this information may be internal or external to Novell. While Novell makes all reasonable efforts to verify this information, Novell does not make explicit or implied claims to its validity.