Click here to Skip to main content
Page 1 of 2
Page Size: 10 · 25 · 50


Tag filtered by:  JNI [x]
Article 22 Apr 2013   license: CPOL
How to invoke Java methods from a .NET application.
Question 16 Mar 2013   license: CPOL
I have a test case where I am trying to access the C code from my JAVA program using JNI. Steps involved are as follows : 1. A JAVA program calling the native methods : public class RunnerClass{ public native void win32_svc_install(); static{ System.loadLibrary("testDll"); ...
Answer 19 Feb 2013   license: CPOL
You have to link with JVM's library (add some reference to libjvm.a to the tcc's command line).If you don't have a precompiled jvm.lib file for TurboC++, there is another option - link with the jvm.dll file and export all the methods from JVM manually. This uses the...
Question 19 Feb 2013   license: CPOL
JNI_CreateJavaVM(&jvm, (void **)&env, &args);tcc C:\TurboC++\Disk\TurboC3\BIN\CTest.c -I "C:\Program Files\Java\jdk1.6.0_16\include" -I "C:\Program Files\Java\jdk1.6.0_16\include\win32" -I "C:\Program Files\Java\jdk1.6.0_16\lib" -shared -o CTest.dllError: tcc: undefined symbol...
Question 11 Feb 2013   license: CPOL
I have to return a array of structure values from c++ (jni) to java. I have the c++ struture as followsMyCStructure{byte *Data;int dataLength;int width;int height;}mycstr;And i have my java structure aspublic class MyJavaStructure{ public byte[] Data; public...
Question 3 Dec 2012   license: CPOL
Hi all,Does anyone know how to resolve this exception.## A fatal error has been detected by the Java Runtime Environment:## EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d7a83f0, pid=6320, tid=6328## JRE version: 7.0_05-b05# Java VM: Java HotSpot(TM) Client VM (23.1-b03...
Article 4 Nov 2012   license: Apache
An android game using ndk jni and java .............
Answer 24 Sep 2012   license: CPOL
What about checking out and modifying existing code? How to Call Java Functions from C Using JNI[^]
Question 24 Sep 2012   license: CPOL
Hey hi. This is sandeep.I am also trying to do the similar kind of work you are doing, like calling a java method inside c. I have lot of errors. Can you please correct me where i am wrong.Errors mainly in the lines (CALLBACK *fpCJV)(JavaVM**, void**, JavaVMInitArgs*); HINSTANCE...
Question 11 Sep 2012   license: CPOL
Hi All,I am working on a project similar to embedding opengl inside java in which a an animated figure is drawn into an AWT canvas using JNI and AWT native interface. I have a third party application software whose method for live video is providing the same functionality. I have played...
Answer 11 Sep 2012   license: CPOL
for the System.loadLibrary() call the dll file should be in path of java i.e system32 but i would recommend System.load() instead by which you would be able to give full path of the dll file and use it in any other java app usin that jar
Catalog 20 Aug 2012   license: Limited Time Trial
OpenMake Meister® delivers an intelligent, accelerated and highly adaptable build management solution that is dynamic and can quickly adapt to changing development demands.
Answer 20 Aug 2012   license: CPOL
You're a developer, why not write a program to download the files, or even better, use an FTP program. How is this a programming question ?
Question 20 Aug 2012   license: CPOL
i got a linkhttp://source-android.frandroid.com/[^]but i can't download folder by folder i want a zip file for the whole source code
Question 20 Aug 2012   license: CPOL
i was trying to run dumpsys.cpp in android ndk using JNI interface i got the source code of dumsys from the following link "http://source-android.frandroid.com/frameworks/base/cmds/dumpsys/dumpsys.cpp"when i run the code i am getting following errors:-error: utils/Log.h: No such file or...
Answer 8 Aug 2012   license: CPOL
since u want to create a A.dll and call B.dll from A.dll, so i would recommend u to jst create the B.lib and put it inside A.dll then u will be able to call the functions of both class A&B hope this will work........All the best.......
Answer 6 Aug 2012   license: CPOL
Also I hade found this one http://code.google.com/p/android-cpp-sdk/[^]
Answer 6 Aug 2012   license: CPOL
Did you try this one:http://www.teamdev.com/jniwrapper/[^],http://www.teamdev.com/jniwrapper/documentation/[^]?By documentation, it looks good, but unfortunately, it's commercial. And I never tried it.—SA
Answer 6 Aug 2012   license: CPOL
Hi Sergey,You can see the SWIG (Simplified Wrapper and Interface Generator):http://www.swig.org/tutorial.html[^]http://www.swig.org/Doc2.0/SWIGDocumentation.html[^]I hope this will help you
Question 6 Aug 2012   license: CPOL
I want to start a small project on C++ for android. I don't like that ugly c-style JNI. Is there some good C++ wrappers ?
Question 2 Aug 2012   license: CPOL
i am creating an application in android using ndk and jni.In my app i have requirement to parse xml data.for which i have used libxml2.when i am making a static library of libxml2 and use,it works fine.But when i am trying to make a shared library and use it in my application i am...
Question 2 Aug 2012   license: CPOL
i have created an android application,here most of my code is in c so i have created it using jni. i have to create socket.so file, in which i have to use the libtest.so.while using the libtest.so in socket.so i get the error:undefined reference to function(). my function() is present inside...
Answer 23 Jul 2012   license: CPOL
it was a silly thing...replace ' with \\' ,not with\'....thn rest are same as it was...
Question 23 Jul 2012   license: CPOL
i have created an app in android using JNI,NDKand phonegap Plugin fr android.Here i am calling the java script functions from the java native code using the function sendJavascript(SendJS);and the SendJS is made as follows:SendJS = "javascript:" + SuccessCallBack + "('" +...
Answer 23 Jul 2012   license: CPOL
just add the line LOCAL_EXPORT_C_INCLUDES := pathto/folder (where my file resides) above theinclude $(PREBUILT_STATIC_LIBRARY)and my final .mk file became like this:LOCAL_PATH := $(call my-dir)include $(CLEAR_VARS)LOCAL_MODULE := libtestLOCAL_SRC_FILES :=...
Answer 22 Jul 2012   license: CPOL
since there is no prebuilt libxml.so/.a file for libxml parser, so we need to create the library (either .so/.a) and use that in ur application u have to download all the .c/.h/android.mk/Application.mk and just build the libxml library(either .so/.a)
Question 19 Jul 2012   license: CPOL
I'm trying to use a .a file in my C code to use in Java (sorry for my bad English). I created myself a static library named libtest.a. now when i include files present in that library in gives me error as no such file or directory.i have put the libtest.a in the same folder where my...
Question 18 Jul 2012   license: CPOL
I have created an app in android using JNI(as major part of my code is in C). Now i am having a requirement to parse xml in my application.As I have chosen libxml2 for my application, can any one please tell me how to use libxml2 in my android application ?
Question 27 Jun 2012   license: CPOL
We have developed a dll which contains APIs to take camera snap using DirectShow( windows). It uses COM(component object model) for accessing directshow API's and its working fine using in VS2008 MFC application. Then we created JNI wrapper functions to call above dll functions from Java. But...
Question 16 May 2012   license: CPOL
HiI m trying to create a header file for a sample helloworld program calling a native funtion from native dll to be made with the help of this header file.I have compiled the java file but now when i m creating the header file m getting an error...error: cannot access HelloWorldclass...
JNI
Article 14 May 2012   license: CPOL
This article shows how to create a Java Swing GUI application in Netbeans and interface it with JNI DLL.
Answer 28 Apr 2012   license: CPOL
Take a look here :http://www.haskell.org/haskellwiki/Applications_and_libraries/Interfacing_other_languages#Java[^]You could create a webservice also :http://stackoverflow.com/questions/6663888/web-service-frameworks-in-haskell[^]
Question 28 Apr 2012   license: CPOL
I googled and got some answers that communication between Java and Haskell can be done by GCJNI(Now the site is down) and LambdaVM.. To use the LambdaVM/GCJNI, whether I need to download any build tools? Where can I know more about them, since I don't find much resources on online?I want to...
Answer 27 Dec 2011   license: CPOL
If you do not have the dll in the default directory then you should add the full path to your System.loadLibrary() call.
Question 27 Dec 2011   license: CPOL
Hi, every body i have developed a java class named A that uses another class named B , both of them is in package com.kkp ,the class B have some native methods that implemented in B.cpp & B.hi have used g++ for compiling the cpp file and creating a dll (B.dll).til here every things is...
Answer 5 Oct 2011   license: CPOL
My apologies but I was compiling as C++, which does not work for standard C. Modify the code between the lines #ifdef JNI_VERSION_1_2 and #else as follows:#ifdef JNI_VERSION_1_2// definitions required to get the proc address HINSTANCE hVM; typedef jint (CALLBACK *fpCJV)(JavaVM**,...
Answer 5 Oct 2011   license: CPOL
It's customary to locate the java runtime trough settings from the registry, and then load the dll dynamically.Have look at:Jace[^]Jace offers some additional features you might find interesting too.[Update]The _imp__ prefix indicates that you have a problem with your library - I...
Question 4 Oct 2011   license: CPOL
Hi, I am new to JNI and I have been trying to write a simple program to call Java code from C++. I am facing problem in creating the JavaVM from C and am getting the Linker error. I have tried changing the GNU library files in dev C++ (I am using Dev c++ compiler) but no luck so far....
Answer 4 Oct 2011   license: CPOL
I don't know why this happens BUT:In your C code, if you replace the line:res = JNI_CreateJavaVM(&jvm, (void**)&env, &vm_args);with// this should contain the path to the JVM DLL fileHINSTANCE hVM = LoadLibrary("C:\\Program Files (x86)\\Java\\jre6\\bin\\client\\jvm.dll");if (hVM...
Answer 3 Oct 2011   license: CPOL
See here[^] to check your code is following the correct rules. Also, make sure you have defined your JNI calls within extern "C" {} blocks, to prevent name mangling by the compiler.
Question 3 Aug 2011   license: CPOL
sir I have added one own menu item in window menu using jni,vc++,java. sir I want to handle event on that item using jni.how it can be possible. sir this can be done by jinvoke package in java.This package contain user32 class.so it can be done by jinvoke package. But sir I can't use this...
Answer 31 Jul 2011   license: CPOL
I don't think you can do this, all events will be handled by the JVM so your wndproc procedure will not get called. Espen has given a great explanation of this.
Answer 31 Jul 2011   license: CPOL
You'll find the JNI code here:SWT: The Standard Widget Toolkit[^]I know SWT is not Swing - but SWT has the required JNI code.Remember that Swing is built on top of the original objects and framework of AWT.Inside the $(JDK)\include folder you'll find jawt.hInside the...
Question 30 Jul 2011   license: CPOL
I am new to java .I add one extra menu on system menu now I want to handle an event on the system menu in java swings application i prepare a dll for that in c++ and i am unable to handle the event on system menu through dll using wndproc method through JNI if there any one who helps me to do this.
Answer 13 Jul 2011   license: CPOL
Look at the libraries specified in the linker options of the functioning code and make sure that all those are also specified in the linker options of the code giving you the errors. Like Richard mentioned, this looks like you're missing .libs.
Question 12 Jul 2011   license: CPOL
Hi every one.I have read a document from nist website (http://csrc.nist.gov/groups/ST/toolkit/rng/documentation_software.html) in this document said that" With minor modifications, source code may be ported to different platforms. The NIST source code was ported to a Windows XP system running...
Answer 3 Feb 2011   license: CPOL
JNI is javas native interface and was meant to integrate system specific processes with the java world. Since programs\libraries that are used on one OS can't be directly used on another OS, I would say that you would have to port the library/program from windows to whatever OS you're planning...
Question 2 Feb 2011   license: CPOL
Hi,I have written a Java program that uses jni in windows.Now I want to know, if this program is portable and if I can run it in another OS?

Page 1 of 2
1 2


Advertise | Privacy | Mobile
Web03 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid