So, bumping up to the xindice-1.1b4 directory and building there, javac
tells me things like "enum is no longer allowed as an identifier
beginning version 1.5".

Okay, okay, I've learned my lesson. I'll keep Java 1.5 in its own little
sandbox, so to speak, for a while, and warn my boss.

On Thu, 08 Jul 2004 18:23:00 +0900
Joel <[EMAIL PROTECTED]> wrote

> Tried ant in the xindice-1.1b4\java\examples directory. 
> 
> Got lots of complaints that the encode(java.lang.String) method for
> java.net.URLEncoder is deprecated: 
> 
> DBConnection.java:67
> AddContact.java:74
> DeleteContact.java:69
> EditContact.java:81
> ListContacts.java:75
> SearchContacts.java:94
> SearchContacts.java:140
> Task.java:149
> 
> It says to use the -Xlint:unchecked option and recompile.
> 
> Then (translated from the Japanese that MSWxp spits out at me), 
> 
>     [javac] Compiling 8 source files to 
> D:\Program_Files\apache\xindice-1.1b4\build\guide-classes
>     [javac] 
> xindice-1.1b4\java\examples\guide\src\org\apache\xindice\examples\AbstractExample.java:21:
>         package org.apache.xindice.util does not exist
>     [javac] import org.apache.xindice.util.XindiceException;
>     [javac]                                ^
>     [javac] 
> xindice-1.1b4\java\examples\guide\src\org\apache\xindice\examples\AbstractExample.java:51:
>  
>         can't find symbol
>     [javac] symbol:class XindiceException
>     [javac] location : class org.apache.xindice.examples.AbstractExample 
>     [javac]                XMLDBException, XindiceException {
>     [javac]                                ^
>     [javac] 
> xindice-1.1b4\java\examples\guide\src\org\apache\xindice\examples\CreateCollection.java:21:
>  
>         package org.apache.xindice.client.xmldb.services does not exist
>     [javac] import org.apache.xindice.client.xmldb.services.CollectionManager;
>     [javac]                                                 ^
>     [javac] 
> xindice-1.1b4\java\examples\guide\src\org\apache\xindice\examples\CreateCollection.java:22:
>  
>         package org.apache.xindice.xml.dom does not exist
>     [javac] import org.apache.xindice.xml.dom.DOMParser;
>     [javac]                                   ^
>     [javac] 
> D:\Program_Files\apache\xindice-1.1b4\java\examples\guide\src\org\apache\xindice\examples\AbstractExample.java:56:
>  
>         can't find symbol
>     [javac] symbol:class XindiceException
>     [javac] location : class org.apache.xindice.examples.AbstractExample 
>     [javac]             throw new 
> XindiceException("DatabaseManager.getCollection(" + collectionUri + ") 
> returned null.");
>     [javac]                       ^
>     [javac] 
> xindice-1.1b4\java\examples\guide\src\org\apache\xindice\examples\CreateCollection.java:41:
>  
>         can't find symbol
>     [javac] symbol:class CollectionManager
>     [javac] location : class org.apache.xindice.examples.CreateCollection 
>     [javac]             CollectionManager service = (CollectionManager) 
> collection.getService("CollectionManager", "1.0");
>     [javac]             ^
>     [javac] 
> xindice-1.1b4\java\examples\guide\src\org\apache\xindice\examples\CreateCollection.java:41:
>  
>         can't find symbol
>     [javac] symbol:class CollectionManager
>     [javac] location : class org.apache.xindice.examples.CreateCollection
>     [javac]             CollectionManager service = (CollectionManager) 
> collection.getService("CollectionManager", "1.0");
>     [javac]                                          ^
>     
> [javac]xindice-1.1b4\java\examples\guide\src\org\apache\xindice\examples\CreateCollection.java:57:
>  
>         can't find symbol
>     [javac] symbol : variable DOMParser
>     [javac] location : class org.apache.xindice.examples.CreateCollection
>     [javac]             service.createCollection(COLLECTION_NAME, 
> DOMParser.toDocument(collectionConfig));
>     [javac]                                                       ^
>     [javac] 8 errors
> 
> BUILD FAILED
> D:\Program_Files\apache\xindice-1.1b4\java\examples\build.xml:158: Compile 
> failed; see the compiler error output for details.
> 
> Java 1.5 beta with Tomcat 5. 
> 
> Xindice war version installed by just dropping it into the tomcat
> webapps directory. XINDICE_HOME set to
> 
>     %CATALINA_HOME%\webapps/xindice/WEB-INF.
> 
> Xindice source unzipped outside the tomcat directory structure, and
> trying to build the examples in there. (And I'm sure it's not gonna work.)
> 
> I think I'll archive this monstrosity, back Java down to 1.4, and start
> over, making sure things build as I go.
> 
> -- 
> Joel <[EMAIL PROTECTED]>
>     Why does this OS called MSWindows always make me feel
>     like I'm flying instrument rules?
> 
> 


-- 
Joel <[EMAIL PROTECTED]>

Reply via email to