m new to the development of ocap ri application. we are trying to call xlet function
from c++ through JNI. but in JNI, it does not worked.
Can anyone give me a way to do this.
thaks in advance!
n java, i am using ocap RI Stack classes. i need to create object of ArgParser.java.
this java class , i will be executing thru c ucing JNI.
for JNI, i need .jar files. but i could not find .jar file that will have
access to argparser.java. i tried using ocap-stub.jar, ocap-base.jar etc.
what .jar files i can use?
PFA for hellowolrd.java-->here, i am tying to create object of argparser.java.
thanks in advance!
Are you trying to invoke java native methods from an OCAP xlet?
I believe that is no recommended (if not allowed) by the spec.
Invocation of native method from the OCAP xlet execution context in
the stack will probably fail.
Ca you provide sample code of you application and the errors you are getting?
Thnax for the reply.
I am trying to call initXlet() function from c++ thru JNI. JNI works on jar file.
n in OCAP project , we can create .jar file but it does not include features of xlet so we cannot access ocap APIs from JNI.
Hi - given the scarcity of details, I would suggest a JNI tutorial, such as the following:
Hope this helps -
i have downloaded source code of OCAP consisting of middleware APIs. it has main.c as a stating point. and ri_platform_init() function which starts the platform an then application.
Now i ahve a seperate c project in which i am loading the required .dll file. n i want to call this ri_platform_init() function.
can anyone help me in this ?
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.