• 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: Moray Taylor <email@hidden>
  • Date: Thu, 26 Feb 2004 19:16:34 +0000

Dave,

I had this exact same problem, you need to specify 1.4 in about 187 different places. I also found it helped to delete the 'build' folder in your project and do a clean build.

Cheers

Moray

Moray,

thanks, that sounds reasonable and probably caused my problem. However, I was getting strange error messages when I ran my app (unknown Controller classes from nib file, used NSObject instead etc etc).
This was due to a missing Java 1.4 "Target VM" configuration in "Pure Java Specific" settings. Looks like you have to keep three settings in sync.

merci beaucoup
Dave

I'm pretty sure XCode/Project Builder uses Java 1.3 by default, you need to select 1.4 in the Target Settings if the Java stuff you are using is only available in 1.4.

Cheers

Moray

Hello,

I have a Cocoa/Java class that is supposed to make use of Pattern/
Matcher. The project runs fine without the use of Java 1.4's regular
expressions, but if I

import java.util.regex.*;

and, in one of the methods,

Pattern p = Pattern.compile("aa");
Matcher m = p.matcher("aaaaa");

the application won't load. The error message I am getting isn't very
helpful:

ObjCJava WARNING:
jobjc_jvm_newObject(): constructor with signature ()V on class
DialogueManagerController failed (should morph the java exception)
2004-02-22 22:36:03.014 Mumo[11248] AppKitJava: uncaught exception
OBJCJava_RUNTIME_EXCEPTION ((null))
2004-02-22 22:36:03.015 Mumo[11248] AppKitJava: exception = (null
description)

I tried to trace the error in the XCode debugger, which showed that
there is a ClassNotFoundException for java.lang.CharSequence and then a
PrivilegedActionException.

Btw, a small java app to test the regular expressions (without Cocoa
layer) works as intended. I should probably add that I'm trying to do the above in a class that is instantiated in a Controller class controlled by some Cocoa code.

That's where I'm stuck. I would very much appreciate the help of someone
who's a little more knowledgeable with this stuff than I am..

I very much appreciate your help.

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.




--
David Reitter
Research Fellow. Adaptive Speech Interfaces.
MEDIA LAB EUROPE www.mle.media.mit.edu

Being me. Seeing me. http://davids-world.com
_______________________________________________
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.
_______________________________________________
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: Moray Taylor <email@hidden>)
 >Re: import regex -> can't instantiate Java class any more (From: David Reitter <email@hidden>)

  • Prev by Date: Re: Extending NSMutableDictionary what am I doing wrong?
  • Next by Date: Accepting url drags directly from safari
  • Previous by thread: Re: import regex -> can't instantiate Java class any more
  • Next by thread: Re: Sample/Example PreferencePane
  • Index(es):
    • Date
    • Thread