• 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
Re: import regex -> can't instantiate Java class any more
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: import regex -> can't instantiate Java class any more


  • Subject: Re: import regex -> can't instantiate Java class any more
  • From: David Reitter <email@hidden>
  • Date: Wed, 25 Feb 2004 22:09:06 +0000

Allan:


I have absolutely no experience with Cocoa and Java combined, but: could it be that "bla" is using NSString when you compile for Cocoa (instead of Java's own String class)? And if so, probably the problem is that the regex is made for String and not NSString.

Perhaps you could try to call some Java native methods on a string object (but perhaps the bridge does add many of these to NSString).

Creative idea, but wouldn't you get compiler error rather than a runtime error then?

(The actual problem was that it was compiled with Java 1.4, but the runtime VM was 1.3, which was missing the regex functions.)

Thanks for helping
Dave
_______________________________________________
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.


References: 
 >import regex -> can't instantiate Java class any more (From: David Reitter <email@hidden>)
 >Re: import regex -> can't instantiate Java class any more (From: Allan Odgaard <email@hidden>)

  • Prev by Date: Re: import regex -> can't instantiate Java class any more
  • Next by Date: Re: unichar for hyperlink?
  • Previous by thread: Re: import regex -> can't instantiate Java class any more
  • Next by thread: Re: import regex -> can't instantiate Java class any more
  • Index(es):
    • Date
    • Thread