Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

adding an Existing Framework to a JNI library



OK,

i have a Framework that is in Obj C and i would like to load it into a
JNI library for calling in java. In XCode i created a JNI target
application and let it default all the settings. i have:

foo.c now that holds the NON java calls that will be implemented. if i
include bar.Framework it builds fine. trying to include or import any
files from my framework however causes a spew of errors with @ tokens
in files like NSObject.h!!!

i.e.:
/usr/bin/gcc-3.3 -c
-F/Developer/projects/Rosewoodblues/BroadJam/Software/JNI/MacRipper/
build
-F/Developer/projects/Rosewoodblues/BroadJam/Software/Frameworks/
BroadjamCD/build
-I/Developer/projects/Rosewoodblues/BroadJam/Software/JNI/MacRipper/
build/include
-I/Developer/projects/Rosewoodblues/BroadJam/Software/JNI/MacRipper/
build/Headers -I/System/Library/Frameworks/JavaVM.framework/Headers
-arch ppc -fno-common -fpascal-strings -Os -Wmost
-Wno-four-char-constants -Wno-unknown-pragmas -pipe
"-fmessage-length=0" -g
-Wp,-header-mapfile,/Developer/projects/Rosewoodblues/BroadJam/
Software/JNI/MacRipper/build/MacRipper.build/JNILib.build/
libMacRipper.jnilib.hmap MacRipperjnilib.c -o
/Developer/projects/Rosewoodblues/BroadJam/Software/JNI/MacRipper/
build/MacRipper.build/JNILib.build/Objects-normal/ppc/MacRipperjnilib.o
In file included from
/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:9,
from
/Developer/projects/Rosewoodblues/BroadJam/Software/Frameworks/
BroadjamCD/build/BroadjamCD.framework/Headers/CDRipper.h:12,
from MacRipperjnilib.c:10:
/System/Library/Frameworks/Foundation.framework/Headers/
NSObjCRuntime.h:56: error: syntax error at '@' token
/System/Library/Frameworks/Foundation.framework/Headers/
NSObjCRuntime.h:56: error: parse error before "NSString"
/System/Library/Frameworks/Foundation.framework/Headers/
NSObjCRuntime.h:58: error: parse error before '*' token
/System/Library/Frameworks/Foundation.framework/Headers/
NSObjCRuntime.h:59: error: parse error before '*' token
/System/Library/Frameworks/Foundation.framework/Headers/
NSObjCRuntime.h:60: error: parse error before '*' token
/System/Library/Frameworks/Foundation.framework/Headers/
NSObjCRuntime.h:61: error: parse error before '*' token
/System/Library/Frameworks/Foundation.framework/Headers/
NSObjCRuntime.h:64: error: parse error before '*' token
/System/Library/Frameworks/Foundation.framework/Headers/
NSObjCRuntime.h:65: error: parse error before '*' token


weird!

anyone have a sampling of how you can add existing Frameworks and wrap
them with JNI calls?

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




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.