Re: Do you know where to download tools required to build ldapsdk_java-4.17_20020819_src

Rich Megginson <[email protected]>
Newsgroups gmane.comp.mozilla.devel.directory
Message-ID <[email protected]>
wss4j wei wrote:
>     [javac]
> C:\ldapsdk_java-4.17_20020819_src\mozilla\directory\java-sdk\ldap
> jdk\netscape\ldap\LDAPConnection.java:4522: as of release 1.5, 'enum' is a
> keyword, and may not be used as an i
> dentifier
>     [javac] (try -source 1.4 or lower to use 'enum' as an identifier)
>     [javac]             Enumeration enum = m_responseControlTable.keys();
>     [javac]                         ^

That means you will have to use java 1.4 to build ldapjdk.  Please file 
a bug with bugzilla.mozilla.org to support java 1.5 and later.

Do you need to build from source?  There are pre-built jars available 
from several locations e.g. jpackage.org

> 
> On Tue, Nov 25, 2008 at 3:59 PM, Rich Megginson <[email protected]>wrote:
> 
>> wss4j wei wrote:
>>
>>> THanks for your reply and information.
>>> but when I compiled it has error on enum and I did not want to fix. so
>>> thought of this alternative using gmake. otherwise, I need to use jdk 1.4
>>> and below... any good suggestion on here.
>>>
>> Please keep replies on list/group.
>>
>> Which java are you using?  Which ant are you using?  Can you paste the enum
>> error message?
>>
>> If the problem is the java version, I do not think using gmake etc. will
>> help.
>>
>>
>>> On Tue, Nov 25, 2008 at 3:51 PM, Rich Megginson <[email protected]<mailto:
>>> [email protected]>> wrote:
>>>
>>>    wss4j wei wrote:
>>>
>>>        Hi All,
>>>
>>>        Do you know where to download the tools from ... Even though
>>>        it mentioned
>>>        from http://www.mozilla.org/download-mozilla.html but does not
>>>        seem right at
>>>        all. I am not able to get tools in order for me to do a build
>>>        ... is there
>>>        anyone know this anymore ?
>>>
>>>        Tool Requirements:
>>>           Sun Microsystems Java Development Kit (JDK) 1.1.7
>>>             (or a more recent version)
>>>           GNU Tools for Windows (you can find these on the Internet).
>>>             Specifically, you'll need:
>>>               cp.exe
>>>               rm.exe
>>>             Here are some sample download sites to find these:
>>>               Cygnus (http://www.cygnus.com/misc/gnu-win32)
>>>               GNU (http://www.gnu.org/order/ftp.html)
>>>               MIT (ftp://prep.ai.mit.edu/pub/gnu)
>>>             Netscape uses internally modified versions of the
>>>        following tools:
>>>               gmake.exe
>>>               shmsdos.exe
>>>               uname.exe
>>>             You can download them from
>>>        http://www.mozilla.org/download-mozilla.html
>>>             (click the Windows Build Tools link).  When you unzip the
>>>        file, the
>>>             tools will be located in the windows\bin\x86 directory.
>>>
>>>
>>>    I'm not sure about that source tarball, but some time ago ldapjdk
>>>    was converted to be able to build with ant.  If the source tarball
>>>    contains a build.xml somewhere, then you might be able to just use
>>>    ant. Otherwise, check out the latest source code from CVS.
>>>
>>>
>>>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.