• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Lucene from Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Lucene from Cocoa


  • Subject: Lucene from Cocoa
  • From: Ronald Jaramillo <email@hidden>
  • Date: Thu, 17 Jul 2003 10:34:34 +0200

Hi list,
I'm trying to use Jakarta lucene from cocoa with no luck.
Here is what I have:
The lucene jar is part of my project. I have a java file "LuceneTest.java" with a method:
public void testingLucene()
To begin with testingLucene writes to stdout "hello test"

From Objective-C I instantiate LuceneTest with
id t = [[NSClassFromString(@"LuceneTest") alloc] init];
And when calling testingLucene it does what it's supose to do, writes "hello test"
[t testingLucene];

Now to the problem. If I tried to instantiate an IndexWriter ( as seen in the code snip below ) nothing will happen. The program will compile without problems, and when I call testingLucene nothing will be written to stdout. I know that the Java part works. I have tried to compile it with javac and it run from the command line just fine.

--code snip--
try {
System.out.println(" before indexWriter--");
IndexWriter writer = new IndexWriter("index", new StandardAnalyzer(), true);
System.out.println(" after indexWriter--");

} catch (Exception e) {
System.out.println(" caught a " + e.getClass() +
"\n with message: " + e.getMessage());
}

--/code snip--

My question is how can I debug this? Is it possible to step trough the Java code in PB?
Is there anybody who's manage to use Lucene from Cocoa?
If somebody is interested I can send you the project files for examination

/thanks
Ronald Jaramillo
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Lucene from Cocoa
      • From: Daryl Thachuk <email@hidden>
  • Prev by Date: Synching window titles
  • Next by Date: URLwithString: relativeToURL problems
  • Previous by thread: Synching window titles
  • Next by thread: Re: Lucene from Cocoa
  • Index(es):
    • Date
    • Thread