Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 47900 invoked from network); 29 Nov 2006 17:33:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Nov 2006 17:33:38 -0000 Received: (qmail 56607 invoked by uid 500); 29 Nov 2006 17:33:40 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 56573 invoked by uid 500); 29 Nov 2006 17:33:40 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 56562 invoked by uid 99); 29 Nov 2006 17:33:39 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Nov 2006 09:33:39 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [199.228.142.115] (HELO plmler8.mail.eds.com) (199.228.142.115) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Nov 2006 09:33:25 -0800 Received: from plmlir5.mail.eds.com (plmlir5-2.mail.eds.com [199.228.142.135]) by plmler8.mail.eds.com (8.13.8/8.12.10) with ESMTP id kATHX3Cx003566 for ; Wed, 29 Nov 2006 11:33:04 -0600 Received: from plmlir5.mail.eds.com (localhost [127.0.0.1]) by plmlir5.mail.eds.com (8.13.8/8.12.10) with ESMTP id kATHWadI005896 for ; Wed, 29 Nov 2006 11:32:36 -0600 Received: from usplm016.amer.corp.eds.com ([148.94.166.9]) by plmlir5.mail.eds.com (8.13.8/8.12.10) with ESMTP id kATHWZMt005783 for ; Wed, 29 Nov 2006 11:32:36 -0600 Received: from usahm208.amer.corp.eds.com ([130.175.198.40]) by usplm016.amer.corp.eds.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 29 Nov 2006 11:32:36 -0600 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Syns2Index utility: version of Lucene and Java Date: Wed, 29 Nov 2006 12:32:34 -0500 Message-ID: <25736CAEA4C6E24DB98D768458C898E0367C92@usahm208.amer.corp.eds.com> In-reply-to: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Syns2Index utility: version of Lucene and Java Thread-Index: AccTH2FilLjWRg6WRc2F5ZkNA7fWTwAupyCg From: "Risov, Maria" To: X-OriginalArrivalTime: 29 Nov 2006 17:32:36.0256 (UTC) FILETIME=[5C1E2200:01C713DC] X-Virus-Checked: Checked by ClamAV on apache.org Chris, Thanks so much both for the pointer and the sanity check! Oddly enough, I read the same Syns2Index piece of documentation as you suggested very early in the search process. What I did get wrong was the actual download package, not realizing that *.java and *.class files would not be packaged together. (Typical newbie problem!). By that time, I already had the Syns2Index.java file, but downloaded from a different site (http://www.tropo.com/techno/java/lucene/wordnet.html ) and did not catch that they were not of the same version. So this time, I found the Syns2Index.class that came with the latest Lucene package (http://www.apache.org/dyn/closer.cgi/lucene/java/ ), made sure it ran with the corresponding Lucene library...and it worked! I am still not sure what happened to my Java environment, but it may takes some time to figure out. For the rest of my project, I successfully use the Lucene.Net port and C#, but it was great to get my feet wet in the Java case. Thanks again! -marie -----Original Message----- From: Chris Hostetter [mailto:hossman_lucene@fucit.org]=20 Sent: Tuesday, November 28, 2006 1:57 PM To: java-user@lucene.apache.org Subject: Re: Syns2Index utility: version of Lucene and Java 1) I don't really know anything about Syns2Index - but the errors you cited don't seem to have anything to do with Lucene ... your compiler appears to be complaining about assert statements within the core java system classes ... which is a little strainge. you said you are psat the HellowWorld stage ... have you tried compiling a HellowWorld app in this current environment (ie: delete the lucene code youv'e got and put a simple HelloWorld class in the same directory and compile it hte same way) ??? 2) the first link i saw when searching for Syns2Index to see what it was is... www.netlikon.de/docs/lucene-2.0.0/docs/api/org/apache/lucene/wordnet/Syn s2Index.html ...which is how i discovered that Syns2Index is part of the wordnet contrib and ships with Lucene ... so you shouldn't need to compile anything ... just use the wordnet jar that comes with your lucene-2.0 distribution. : Date: Sun, 26 Nov 2006 23:21:45 -0500 : From: "Risov, Maria" : Reply-To: java-user@lucene.apache.org : To: java-user@lucene.apache.org : Subject: Syns2Index utility: version of Lucene and Java : : I am trying to use Syns2Index utility to convert the WordNet into a Lucene index. First I downloaded the latest JDK and Lucene 2.0, but soon realized that both were too new for compiling Syns2Index.java. Next, got down to j2sdk1.4.2_13 and Lucene 1.4.3. by deciphering error messages. (I am running XP SP2) : : I have copied the java\org\apache\lucene directory in the same folder as the Syns2Index.java file. I have a feeling that my classpath is most likely set right (or at least close), but I get a huge amount of identical compile errors. : : Command used: : : D:\InfringeDetector\JavaLucene>javac -classpath "D:\Project\JavaLucene; : C:\j2sdk1.4.2_13" D:\Project\JavaLucene\org\apache\lucene\wordnet\Syns2 : Index.java : : Compile results (posting just a few from the bottom of my screen): : : ^ : C:\j2sdk1.4.2_13\java\nio\DirectByteBuffer.java:843: cannot resolve symbol : symbol : method assert (boolean) : location: class java.nio.DirectByteBuffer : assert (off <=3D lim); : ^ : C:\j2sdk1.4.2_13\java\nio\DirectByteBuffer.java:934: cannot resolve symbol : symbol : method assert (boolean) : location: class java.nio.DirectByteBuffer : assert (off <=3D lim); : ^ : C:\j2sdk1.4.2_13\java\nio\Bits.java:642: cannot resolve symbol : symbol : method assert (boolean) : location: class java.nio.Bits : assert (reservedMemory > -1); : ^ : C:\j2sdk1.4.2_13\java\lang\CharacterDataLatin1.java:284: cannot resolve symbol : symbol : method assert (boolean) : location: class java.lang.CharacterDataLatin1 : assert (data.length =3D=3D (256 * 2)); : ^ : C:\j2sdk1.4.2_13\java\lang\CharacterData.java:956: cannot resolve symbol : symbol : method assert (boolean) : location: class java.lang.CharacterData : assert (data.length =3D=3D (678 * 2)); : ^ : C:\j2sdk1.4.2_13\java\nio\DirectByteBufferR.java:165: cannot resolve symbol : symbol : method assert (boolean) : location: class java.nio.DirectByteBufferR : assert (pos <=3D lim); : ^ : C:\j2sdk1.4.2_13\java\nio\DirectByteBufferR.java:479: cannot resolve symbol : symbol : method assert (boolean) : location: class java.nio.DirectByteBufferR : assert (off <=3D lim); : ^ : Note: Some input files use or override a deprecated API. : Note: Recompile with -deprecation for details. : 100 errors : 206 warnings : : I have to admit that I am fairly new to Java, but past the HelloWorld setups. I have been banging my head against the wall and Google for 10 hours. Please help!!! : : -marie : : -Hoss --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org