Under this condition, can I use JNI?

Hi everyone,
I am planning to use JNI for a project, but I only have several DLLs (no source code for them, but only have header file for these DLLs). Can I use JNI to invoke methods in these DLLs directly? Examples in internet are making me believe that I have to use javah to create a header first, and compile this header with C/C++ source code into new DLLs, and then my methods in Java can use methods in DLLs. Am I right?

O, getting understand that I have to write a C/C++ wrapper to make it work. Is there any one who has a small sample to show me how to write a C++ wrapper? Thanks a lot!

Similar Messages

  • Can I use JNI in my xlet?

    Can I use JNI in my xlet? Is there any security issues?

    The JavaTV specification doesn't prevent you using JNI, but the MHP and OCAP specifications do.
    Apart from the security risks (code running outside the Java sandbox and potentially subverting all of the MHP/OCAP security and resource management), the problem is that there are so many different hardware and software platforms. You need to compile the native code for a particular STB, and you simply have no idea which platforms will be deployed. This makes JNI impractical except on very tightly controlled networks.
    Steve.

  • My itunes comes up with this when i try to download purchased songs: this devise is already associated with an apple id. this devise can be used with another apple id in 82 days. i need help to see if i can fix this problem please.

    i have an iphone 4s i signed out of my itunes on the devise and my friend signed herself into ituned but i signed her out an myself back in but my purchased songs and tones cannot download. it gives me a message of:this device is already associated with an apple id. this device can be used with another apple id in 82 days! is there anyway for me to fix this or override something. im freaking out!!

    Sorry: once a device has been authorised for a particular iTunes account you can't change it to another until 90 days have passed. This is to prevent people cirumventing the restrictions of purchases to one account from consteantly swopping between accounts. You will have to wait for the 82 remaining days, and there is no workaround.

  • When i try to watch one of my movies in the cloud it says "this computer is already associated with an apple ID.You can download past purchases on this computer with just one Apple ID every 90 days. This computer can be used with a different Apple ID"

    my mom used my computer to sign into her itunes account and then i logged back into mine and tried to watch one of my movies and it said "this computer is already associated with an apple ID.You can download past purchases on this computer with just one Apple ID every 90 days. This computer can be used with a different Apple ID in 68 days"  What do i do?

    You do what it says.

  • Is there a way to get around the pop up, "this device is already associated with an Apple ID. You can download past purchases on this device with just one Apple ID every 90 days. This device can be used with another Apple ID in 13 days."Someonehelp please

    Is there a way to get around the pop up, "this device is already associated with an Apple ID. You can download past purchases on this device with just one Apple ID every 90 days. This device can be used with another Apple ID in 13 days."Someonehelp please!

    What exactly are you trying to do?

  • You can download past purchases on this computer with just one Apple ID every 90 days. This computer can be used with a different Apple ID in 71 days. Whats the deal???

    You can download past purchases on this computer with just one Apple ID every 90 days. This computer can be used with a different Apple ID in 71 days. Whats the deal???

    You can use multiple AppleIDs to purchase new music but you are limited as to how frequently you can change authorizations for re-downloading  past purchases.  It may well be a measure to deter piracy by stopping a group of people from going around to a friend's computer and downloading purchases on the other person's computer.  It is easy to avoid by making sure you have backup copies on drives at home so you never need to redownload anything.

  • You can download past purchases on this computer with just one Apple ID every 90 days. This computer can be used with a different Apple ID in 60 days. This is the message I get when trying to view purchased material!  My ID hasn't changed!

    I can't pull up purchased content without this - You can download past purchases on this computer with just one Apple ID every 90 days. This computer can be used with a different Apple ID in 60 days. - my ID hasn't changed

    You can use multiple AppleIDs to purchase new music but you are limited as to how frequently you can change authorizations for re-downloading  past purchases.  It may well be a measure to deter piracy by stopping a group of people from going around to a friend's computer and downloading purchases on the other person's computer.  It is easy to avoid by making sure you have backup copies on drives at home so you never need to redownload anything.

  • TS1424 How to fix iTunes when you get this you can download past purchases on this computer with just one apple ID every 90 days. This computer can be used with a different apple iD in 50 days

    How to fix iTunes when you get this you can download past purchases on this computer with just one apple ID every 90 days. This computer can be used with a different apple iD in 50 days

    hi i dont know if this will work for anyone but i had not been on itunes for sometime but today i went on to watch a new episode of walking dead but it said i still had to wait 36 days out of the 90days , i managed to get my episode to download load by clicking my apple id in itunes going to account and at the very bottom off the page there is a button that says reset all warnings for buying and downloading i pressed this then it let me download hope this works for you worked for me

  • I have airport extreme and just purchased a D-Link DCS-932L home network camera.  D-Link says I need UpNp but the extreme doesn't support this.  Can I use port mapping?  if so anyone know how to set that up?  thanks

    I have airport extreme and just purchased a D-Link DCS-932L home network camera.  D-Link says I need UpNp but the extreme doesn't support this.  Can I use port mapping?  if so anyone know how to set that up?  thanks

    Since the D-Link DCS-932L is accessible on the local network via a web browser, you should be able to access this camera from the Internet if your router has a publically accessible Public IP address. If your ISP provides you with a dynamic Public IP address, you may want to use a DDNS service to make it easier for you to locate your camera whenever your ISP changes your IP address.
    Start the AirPort Utility > Select the 802.11n AirPort Extreme Base Station (AEBSn).
    Select Manual Setup.
    Verify that Connection Sharing = Share a public IP address is selected on the Internet > Internet Connection tab.
    Select Advanced, and then, select the Port Mapping tab.
    Click the plus sign to add a new port mapping.
    For Service, leave the default; this will change to "Custom" once you start entering port values.
    In the Public UDP Port(s) and Public TCP Port(s) boxes, type in a 4-digit port number (e.g., 8888) that you choose. In the Private IP Address box, type the internal IP address of your camera. In the Private UDP Port(s) and Private TCP Port(s) boxes, enter the appropriate port values that should have been provided to you by the camera manufacturer. Click Continue.
    In the Description box, type a descriptive name like "Internet Camera Access," and then, click Done.
    Click on Update.
    To connect to the shared Camera from a remote location using a Mac or PC:
    Start your favorite web browser.
    Enter either your Public IP address or DDNS-provided Domain Name, followed by a colon and the Public port number that you choose in step 7 of the previous procedure. For example: http://123.123.123.123:8888 or http://www.mydtdnsdomainname.com:8888

  • HT4913 how to remove this ?  You can use iTunes Match on this computer with just one Apple ID every 90 days. This computer can be used with a different Apple ID in 85 days.

    hello i ad my girlfriend profile and her itune library on my macbook and now i have this warning in my l itunes library, how can i resolve the problem ?
    You can use iTunes Match on this computer with just one Apple ID every 90 days. This computer can be used with a different Apple ID in 85 days.

    If a computer has been associated with a device (as well as iTunes Matct, it can become associated via automatic downloads or re-downloading past purchases) then you will either need to wait until the 90 days have completed : http://support.apple.com/kb/HT4627
    Or you can try contacting iTunes Support and see if they can remove the association : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page

  • You can use iTunes Match on this computer with just one Apple ID every 90 days. This computer can be used with a different Apple ID in 86 days. What do I do?

    You can use iTunes Match on this computer with just one Apple ID every 90 days. This computer can be used with a different Apple ID in 86 days. What do I do?

    Unless you really only have one AppleID that you use with the iTunes Store there's really nothing you can do. In the case of having only one AppleID you should contact iTunes Store support, since that would be a server-side problem.

  • I just tried to connect and sync my iTouch (4G) to iTunes and I got an error message that said :This iPod can'be used because  Apple Mobile Device service is not started". I tried searching my PC for the program and no luck. Any suggestions?

    I just tried to connect and sync my iTouch 4G to iTunes and got this error message: " This iPod can't be used because Apple Mobile Device service is not started". I just did the upgrade fo Safari and iCloud.   Any suggestions?
    Thanks!
    Dan Farrell

    I corrected the link in the previous post you responded to, but here is the correct link again.
    http://support.apple.com/kb/ts1567
    B-rockt

  • How can I use JNI in JDeveloper???

    hi
    I have a native mathod,it can work very well use JCreator or JDK's Java command.
    But it can't work in Jdeveloper with the errors :
    java.lang.UnsatisfiedLinkError: no JniConvert in java.library.path
    void java.lang.ClassLoader.loadLibrary(java.lang.Class, java.lang.String, boolean)
    void java.lang.Runtime.loadLibrary0(java.lang.Class, java.lang.String)
    void java.lang.System.loadLibrary(java.lang.String)
    void myInterMediaPackage.ArithmaticBean.<clinit>()
    void DrawTest.init()
    void DrawTest.main(java.lang.String[])
    Who have used JNI in JDeveloper or can help me?
    I appreciate anyone's help;

    Dennis ,
    Thank you very much.
    I have resolved that question according to your second option.
    thank you again!
    Good luck.
    2 options, that I know of (windoze, right?):
    1. Add "-Djava.library.path=c:\<blah>\" (the location of your native DLL) to the "Java Options:" field in the "Project Settings/Configurations/Development/Runner" window. OR
    2. Put your DLL in a folder that is on your PATH (e.g., c:\winnt\system32).
    If you deploy it to a jar, and put the DLL in there, I'd think it would see it - but I haven't gotten THERE, yet! :-P
    Later.
    Dennis

  • Can I use JNI with C#?

    Hi,
    I read many tutorials about using JNI with C or C++. Now, I wonder if actually JNI can also be used with C#? I have my machine installed with C# and Java. I really wanna learn about JNI but don't think to install C or C++.
    If it's possible, can someone provide me some examples?
    Regards,

    I think you would need to write a JNI bridge in C++ that would call your C# code. If your C# code is exposed in .Net web services you could use that avenue instead.

  • How do I exit a java program based on condition can i use system.exit

    I have java program that is called by another program that I dont have control on. My program returns a bigdecimal... but if the ordernumber is empty in my program i dont wnat to do anything.. does system.exit work in that condition... i put it int he else if ordernumber is empty condition.. but i dont think that is the right approach..

    When software module is expected to bring some result, it should bring the result, positive or negative. I think you should check what your counterpart software expects as positive or negative result. And then implement your software this way. You can use System.exit, but this call is employed usually to indicate status with the software after it's completion and not to return any resulting value.
    http://java.sun.com/j2se/1.4.2/docs/api/java/lang/System.html#exit(int)

Maybe you are looking for

  • I can only see a small section of the text in the url bar, the rest is cut off.

    Recently my url bar only displays the first handful of letters in my url. If I use the arrow keys I can see all the text is there, and hitting enter brings up the right page, so it's not cutting off the text, just the display. Approximately the first

  • Cannot get screws out of 4s

    I changed the back of my iPhone a while back and the screws came out and went back in perfectly. The back smashed today, I have the original back that is in great condition and I need to change it (preferably without taking it in to the apple store).

  • Need to save mails in Deleted Items on E72

    It is though Ovi mail has gone beserk, sending me messages I have already deleted. So I need to empty my intray online and on the two E72s I am using. But before I delete all, I have found some delted messages I want to keep, but can't find a way to

  • AppleScript and Mail

    Hi, I am trying to write an Apple-Mail rule and AppleScript combination to print the content of email messages that meet the criterion specified by the rule. When an email arrives that meet the criterion, the rule runs and in-turn runs the AppleScrip

  • Ways to securely connect to remote machine - own lan

    hi, I just wondered which possibilities you have to securely connect to another machine in your own lan, with java. I want to connect to it, then when the connection is established (encrypted traffic of course) I want to be able to read some data of