Re: import regex -> can't instantiate Java class any more
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: Wed, 25 Feb 2004 19:24:02 +0000
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.
_______________________________________________
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.