To add the JNI dll to the jar file and use the dll inside the jar file

Hi to everybody,
I am new to java.
I want to add the JNI dll to the jar file and use it in the java class.
How can I achieve it.
Please help me.
Thanks in advance.
Regards,
M.Sivadhas.

can't be done because none of the known operating systems support reading binary libraries from .jar files ... you can add the binary to the jar but then you have to extract it...
besides, mixing platform specific and platfrom independent components is not a very good idea, i'd keep the dll out of the jar to begin with

Similar Messages

  • Add jar files and use those classes at the runtime

    Hi All,
    I need to add some jar files at the runtime depends on which the user selects where the jar file is located and i need to import those classes in other class for some functionalities . I could add jar files by using the URLClassLoader and Class.forName("myjar.myclassname") is also succeeded and i have no clue how to use those classes with in the jar file as i couldn't import those classes also in the source because the jar files are being added at the runtime(This leads to class not found exception at the compile time).
    I had found a complicated way of using those classes after being added at the run time as below.
       Class clazz = Class.forName(myClass);
                final Method method = clazz.getDeclaredMethod(requiredMethod, new Class[]{URL.class});
                final Object returned = method.invoke(clazz.newInstance(), new Object[]{request}); but, its really pain to use in this way in all the places.
    Does any of you have simpler suggestions on how to achieve this?
    Thanks,
    Venky.

    Thanks jschell. Yes, you are right. I had found that using reflection API is the only way to load classes at the run time. But according to our application using reflection makes the application little complex, so while start of the application or during other modifications, i am overwriting my jar file to the latest one using FileChannel class as below
          FileChannel ic = new FileInputStream("new.jar").getChannel();
          FileChannel oc = new FileOutputStream("old.jar").getChannel();
          ic.transferTo(0, ic.size(), oc);
          ic.close();
          oc.close();After this code is executed, our application totally uses the new jar file.It is little fast than using reflection. Is this a good idea?

  • When I add a new contact number to my iphone 5c  and I try to select the iphone choice is not showing up; and it was working fine the day before. ?

    when I add a new contact number to my iphone 5c  and I try to select the iphone choice is not showing up; and it was working fine the day before. ?Also when I try to send an imessage is not going trough as an imessage, it makes me send it as a message.

    You're using Exchange Active Sync to synchronize contacts and calendars with your company Exchange Server. If the default calendar/address books are set to the Exchange account, it will sync automatically. This is normal.
    Go to Settings>Mail, Contacts, Calendars to change the default address book and calendars to a something else, iCloud or something synced from your home computer instead.

  • Replaced HD yesterday  Was able to restore from Time Machine Now, it won't back up to Time Machine.  I removed the TM and tried to add it- the error is "The disk image for "computername.sparsebundle" is in use.  Try ejecting the disk image - How do I do?

    Replaced HD yesterday  Was able to restore from Time Machine Now, it won't back up to Time Machine.  I removed the TM and tried to add it- the error is "The disk image for "computername.sparsebundle" is in use.  Try ejecting the disk image - How do I do?

    Hello jfilbey,
    Thanks for using Apple Support Communities.
    Power cycle the disk Time Machine is backing up to.
    For more information on this, take a look at:
    Time Machine: Troubleshooting backup issues
    http://support.apple.com/kb/HT3275?viewlocale=en_US&locale=en_US
    Best of luck,
    Mario

  • When i open an mp3 file from a source other than apple, does itunes create it's own file and can I then delete the original mp3?

    when I open a music file from a source other than apple, does itunes create it's own file and can I then delete the original mp3?

    If you use iTunes' default settings then when you add a file to iTunes it places a copy of the file in the iTunes media folder and it leaves the original in place.  The exception is when you drag it to the Automatically Add To iTunes folder.
    It does not convert the file.  You can delete the original if you wish.

  • I'm relatively new to Mac and want to try and get the most out of the new MacBook Air.   My wife and I have been sharing the same Apple ID. We both have iPhones - she has a 5 and I've got a 4S.   We only have one copy of iTunes and we have been sharing t

    I'm relatively new to Mac and want to try and get the most out of the new MacBook Air.
    My wife and I have been sharing the same Apple ID. We both have iPhones - she has a 5 and I've got a 4S.
    We only have one copy of iTunes and we have been sharing the account. (She doesn't really use the computer for anything beyond writing the odd weekend assignment.)
    Would I be better off setting her up with her own and making her as a separate user on the computer? Would this require much work?
    In recent times with updates, we have a few problems with the duplication of texts and that sort of thing. Both of our texts are stored on the computer and that sort of thing. Also, sometimes texts I send her are sent through to me  from her, if that makes any sense.
    Anyway, I don't really want to overly complicate matters when it comes to accounts etc, but I wanted to know if a fresh Apple ID would be the best thing or even a new user?
    Any tips etc would be greatly appreciated
    Thanks in advance
    MacBook
    I have this question too (0) Reply

    Your question is almost too much a personal one, begging the question "do we (husband and wife) feel comfy sharing one account on the Mac"   maybe thats why nobody answered you.
    It doesnt complicate anything, but it adds steps for switching accounts on the Mac/ purchases etc. of course
    since your question is mostly personal, ..I wont answer THAT part of it, but creating a new account is easy.....messing with switching back and forth is also a personal preference 'issue' as well.   I prefer to keep things simple, but...........you and yours,  I dont know.......
    http://support.apple.com/kb/PH11468

  • How do i reset my mac completely? I have parental controls and cant seem to get to time machine cause i bought the computer with parental controls on it and they did not have the password. How do i completely reset my macbook pro?

    how do i reset my mac completely? I have parental controls and cant seem to get to time machine cause i bought the computer with parental controls on it and they did not have the password. How do i completely reset my macbook pro?

    If you have a rescue email address (which is not the same thing as an alternate email address) on your account then the steps on this page will give you a reset link on your account : http://support.apple.com/kb/HT6170
    If you don't have a rescue email address (you won't be able to add one until you can answer your questions) then you will need to contact Support in your country to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset (and if you don't already have a rescue email address) you can then use the steps on this page to add a rescue email address for potential future use : http://support.apple.com/kb/HT5620
    Or, if it's available in your country, you could change to 2-step verification : http://support.apple.com/kb/HT5570

  • Creating variables in Process Flows and using thse variables in the filter

    Hi,
    I am new to OWB and in learing stage. Need to information.
    *1. as to how pass/create/use variables to OWB mapping ?*
    *2. Creating variables in Process Flows and using thse variables in the filter operator of the OWB mapping?*
    *3. Other mechanisms of how to create/use variables within OWB mapping itself ?*
    can you please provide the above details and guide me / help me in this regard.
    Thanks,
    skms.

    1. Add parameters to your mapping using the MAPPING INPUT PARAMETER from the pallette.
    2. Add parameters to the START operator in the process flow. Bind the process flow parameter to the Mapping parameter.
    3. May be appropriate to use CONSTANTS instead of parameters.
    Regards
    Si

  • How to use multi queries inside the RTF file

    Hi all,
    I develope a data source in report developer 10g, and use it to create the RTF files... I have some files wich contains more than 1 query. how can I refer to the fileds in the other queries in side the RTF file, because it's bring the filed from the first query by default??
    ThanX in advance

    ThankX DD
    But that wont work for my case. the problem that I have actually is in RTF.
    for example:
    I have 3 qeuries. A,B & C. A: contains the employee data. B: his Earnings and C: his Deductions.
    in the RTF file it shows me only A contents. wich means it's not entring B & C loops, notice I add <?for-each:B_GROUP_NAME?> and same for C also.
    all my other reports wich have single qeury worked fine.
    Regards to all,
    Message was edited by:
    Adam Ali

  • Unable to make changes to a jpg file and then save it without the program trying to change it to a psd [was: What a Pile of Crap!]

    Can't even make changes to a jpg file and then save it without the program trying to change it to a psd!!!!!  No wonder nobody like Adobe anymore.

    Do you mean that PSD comes as a default option or that JPEG is not available no matter what?
    Did you add a layer?  Did you change the bit depth?  Did you add transparency?   The JPEG format does not support layers, nor 16-bit images, nor transparency.
    Due to the current unavailability of clairvoyants and mind-readers in the forum, we respectfully request you supply sensible, complete details.
    BOILERPLATE TEXT:
    Note that this is boilerplate text.
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    A screen shot of your settings or of the image could be very helpful too,
    etc.,
    someone may be able to help you (not necessarily this poster, who is not a Windows user).
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • I recently converted from my Blackberry Torch to the Z10.  I travel a lot and use the VZ Access manager through my Torch.  Can I do the same thing through my new Z10?  I don't see that as an option on the software sight.

    I recently converted from my Blackberry Torch to the Z10.  I travel a lot and use the VZ Access manager through my Torch.  Can I do the same thing through my new Z10?  I don't see that as an option on the software sight.

        Hi Atepastt,
    Congrats on your new Z10! I know having the right features is important. The Z10 uses Blackberry link software. The device uses the mobile hotspot feature to non-cord tether the device. The mobile hotspot feature is an additional cost. You can add this feature online http://vz.to/1di2TlT .
    Thanks,
    PamelaF_VZW
    Tweet us @vzwsupport

  • Which Mac Pro? More cores=slower speeds? And most of us know the speed matters or FPU for music and I don't understand the faster is for the least amount of procs. And while I get the whole rendering thing and why it makes sense.

    Which Mac Pro? More cores=slower speeds? And most of us know the speed matters or FPU for music and I don't understand the faster is for the least amount of procs. And while I get the whole rendering thing and why it makes sense.
    The above is what the bar says. It's been a while and wondered, maybe Apple changed the format for forums. Then got this nice big blank canvas to air my concerns. Went to school for Computer Science, BSEE, even worked at Analog Devices in Newton Massachusetts, where they make something for apple. 
    The bottom line is fast CPU = more FPU = more headroom and still can't figure out why the more cores= the slower it gets unless it's to get us in to a 6 core then come out with faster cores down the road or a newer Mac that uses the GPU. Also. Few. I'm the guy who said a few years ago Mac has an FCP that looks like iMovie on Steroids. Having said that I called the campus one day to ask them something and while I used to work for Apple, I think she thought I still did as she asked me, "HOW ARE THE 32 CORES/1DYE COMING ALONG? Not wanting to embarrass her I said fine, fine and then hung up.  Makes the most sense as I never quite got the 2,6,12 cores when for years everything from memory to CPU's have been, in sets of 2 to the 2nd power.  2,4,8,16,32,64,120,256,512, 1024, 2048,4196,8192, 72,768.  Wow. W-O-W and will be using whatever I get with Apollo Quad. 
    Peace to all and hope someone can point us in THE RIGHT DIRECTION.  THANK YOU

    Thanks for your reply via email/msg. He wrote:
    If you are interested in the actual design data for the Xeon processor, go to the Intel site and the actual CPU part numbers are:
    Xeon 4 core - E5.1620v2
    Xeon 6 core - E5.1650v2
    Xeon 8 core - E5.1680v2
    Xeon 12 core - E5.2697v2
    I read that the CPU is easy to swap out but am sure something goes wrong at a certain point - even if solderedon they make material to absorb the solder, making your work area VERY clean.
    My Question now is this, get an 8 core, then replace with 2 3.7 QUAD CHIPS, what would happen?
    I also noticed that the 8 core Mac Pro is 3.0 when in fact they do have a 3.4 8 core chip, so 2 =16? Or if correct, wouldn't you be able to replace a QUAD CHIP WITH THAT?  I;M SURE THEY ARE UO TO SOMETHING AS 1) WE HAVE SEEN NO AUDIO FPU OR PERHAPS I SHOULD CHECK OUT PC MAKERS WINDOWS machines for Sisoft Sandra "B-E-N-C-H-M-A-R-K-S" -
    SOMETHINGS UP AND AM SURE WE'LL ALL BE PLEASED, AS the mac pro      was announced Last year, barely made the December mark, then pushed to January, then February and now April.
    Would rather wait and have it done correct than released to early only to have it benchmarked in audio and found to be slower in a few areas- - - the logical part of my brain is wondering what else I would have to swap out as I am sure it would run, and fine for a while, then, poof....
    PEACE===AM SURE APPLE WILL BLOW US AWAY - they have to figure out how to increase the power for 150 watts or make the GPU work which in regard to FPU, I thought was NVIDIA?

  • I am trying to download a variety of files and when it is finished, the Mac freezes up and the task bar continues to blink on and off. I have to go into Firefox and actually quit the application to continue. Any help is very much appreciated

    I am trying to download a variety of files and when it is finished, the Mac freezes up and the task bar continue to blink on and off.
    I have to go into Firefox and actually quit the application to continue. Any help is very much appreciated.

    are you backing up files, or doing a Time machine backup, either way, the Time machine will STOP when finished and show "last backup at XXXXXX"  meaning its done...... OR if when transferring files, it will show a progress bar on your desktop and vanish when files are copied.
    Open up the Hitachi drive (your G drive is made by Hitachi, and the best made by the way).....and see if the files are there.
    a MORE VISUAL way is to open the hard drive file, and drag and drop files INTO the Gdrive and you can see them visually be copied there as you do it.
    To see your HD on your desktop GOTO  FINDER......PREFERENCES....then GENERAL TAB.........check the box marked HARD DRIVES.........then your Gdrive will appear on your desktop........open it from there,  and DRAG and drop files from anywhere INTO the Gdrive....... easy visual way to see the files being copied into the Gdrive.

  • I have problem with Itunes losing where podcasts and some purchased music is located. Don't know how Itunes losing the locations of the files and I can't find the files on my hard drive. What can I do to stop Itunes losing location and restore my files?

    I have problem with Itunes losing where podcasts and some purchased music is located. Don't know how Itunes losing the locations of the files and I can't find the files on my hard drive. What can I do to stop Itunes losing location and restore my files?

    Try assigning Queen as the Album Artist on the compilations in iTunes on your computer.

  • My dad gave me an iPhone 3G to use as an ipod touch but it's not picking up wifi. ive tried everything to like resetting the network settings turning wi fi off and on mutable times, turned the phone off on and on. What do i do?

    My dad gave me an iPhone 3G to use as an ipod touch but it's not picking up wifi. ive tried everything to like reseting the network settings turning wi fi off and on mutable times, turned the phone off on and on. What do i do?
    the iphone never really picked up wi fi when it was used as a phone and it didnt really matter because he had unlimited internet but it still wont go on wi fi. does any one know why it is doing this?
    The iphone works fine other wise i just really want it to go on wi fi. We just got new wi fi too and all of our other apple products go on the wi fi just fine. I dont know if its because its newer or what but my brothers 1st gen ipod goes on wi fi just fine.
    The iphone is updated to the latest ios too
    WHAT SHOULD I DO!!!!!!!!!!!???????

    This might help
    http://support.apple.com/kb/ht3406

Maybe you are looking for

  • Unable to load rdbnet.dll

    Hello, I'm trying to use the provider Oracle.DataAccess.Rdb.dll with the following statement in c# RdbConnection connection = new RdbConnection(); connection.ConnectionString = string.Format("User Id={0};Password={1};Server={2};Database={3};",login,p

  • Adobe Media Encoder CC 2014 not sending sequence to encoder

    I've been using Adobe Premiere CC and the CC encoder, but today all of a sudden it will no longer send sequences out of the export settings window of Premiere and into Encoder. any ideas?

  • HT201401 iphone 4S not playing sound from itunes or videos

    iphone 4S not playing music or sound through videos, it will ring, sometimes have the sound for keyboard clicks, have turned it off, reset, complete reset, no change, it seems to think it is on a dock connector and even switches back to dock connecto

  • Custom home screen icon for a webapp.. just like Google - How?

    I noticed that when you add Google to your home screen it displays a custom icon.. not an image of the website like other sites. I am trying to figure out if there is a way to do this for my own webapps. I searched through the Google.com source code

  • About thread in New to Materials Management / Warehouse Management?  in MM

    Hi forum experts,, in  New to Materials Management / Warehouse Management?  there is a thread on CIN  by Mohammad Arif INDIA business scenario / CIN I am not able to open the link. can anybody try why it is not opening or alternatively give the addre