Problem accessing Java Class from legacy framework
Problem accessing Java Class from legacy framework
- Subject: Problem accessing Java Class from legacy framework
- From: Richard Van Deren <email@hidden>
- Date: Tue, 28 Sep 2004 17:43:25 -0400
I am working out a problem that is unique to me, but, who knows maybe
there is someone out there that can advice me.
My goal. Use Apache FOP, "formatting objects, xlst" in an objective-c
cocoa application.
I have done this successfully, however, I continually have problems
with new versions, Java, Cocoa, Xcode and the sparse and multiple
versions of the documentation on how to use the Java Bridge.
The now ancient update of Java, Java 1.4.2 update 1, caused FOP to stop
working. It complained that you could not start AWT from the main
application thread.
The solution for this problem is to use a detached thread call FOP from
there. It worked find after I learned all about starting detached
threads and the connection between threads.
Previously, I compiled my java classes in a system service. In this
rewrite I decided that the service was not necessary and that I should
use a framework.
I built my framework, however, my java class is not found. I am using
Xcode 1.5 and I am forced to use a legacy framework target because
Xcode still does not know how to compile java classes in a native
target.
In my FOP system service I used NSClassFromString to find my java
classes. That worked fine. The same code does not work in the
embedded framework.
I am currently trying the NSJava... functions to see if I can not find
my classes.
There are so many versions here and so many things to check. I do not
know what is wrong. I am sure I will get it working.
You are welcome to comment if I am calling FOP the right way.
________________________________________________________
Rich Van Deren
http://homepage.mac.com/rvanderen/WhereIsRich.html
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden