Idea of JNI, and inverse of JNI?

i want to have basic sense before learn JNI.
1. is JNI only used in one direction: from java program to access c/c++, can't be used in another direction: from c/c++ to access java program?
2. how does c/c++ access java program?
thx.

You can load a JVM from within your C++ program (the proper terminology for "running Java from C++" :-) ). This is carried out through the Inovcation API, which, as I understand, is part of JNI. See the link below:
http://java.sun.com/products/jdk/1.2/docs/guide/jni/spec/invocation.doc.html

Similar Messages

  • While creating a project in Garage Band my sample tracks were cut short then overwritten in soundtrack pro. Any ideas why? and how to get my tracks back?

    While creating a project in Garage Band 09 my sample tracks were being cut short- I then discovered they had been overwritten in soundtrack pro.
    Any ideas why? and how to get my tracks back?
    I never opened soundtrack pro to edit the track just Garage band....the track just mysteriously saved as half the track.
    I am running Lion and I upgraded my Garage band to '11 hoping it would resolve the issue...it didn't. Now I can't find that tracks at all.
    The 2 songs having the issue are titled Exotic Yearning and Reunion.
    I am in the process of reinstalling the audio content from my discs. I just don't want to run into this again.
    Any thoughts and help would be greatly appreciated!
    Thanks!

    After spending some time reinstalling the soundtrack pro 3 content I opened the full track called Reunion.
    It showed back up in Garage Band.*It was the full track and wasn't chopped off until I dragged it onto the project. Then it showed up chopped.
    Then I closed Garaged band and opened soundtrack pro 3....The song was again chopped off at the 1:33min mark
    Very Frusterated...:(

  • RSS Feed from rss generator's new app has changed the feed. Now the description of apps is not showing. the rest is the same. Anyone has an idea why ?  and how do I get the description? if I fetch it from itunes pages would that be considered violation of

    RSS Feed from rss generator's new app has changed the feed. Now the description of apps is not showing. the rest is the same. Anyone has an idea why ?  and how do I get the description? if I fetch it from itunes pages would that be considered violation of apple's terms and conditions? Please help

    See this post.
    tt2

  • HT1751 All of my songs have exclamation points (!) next to them but when I go to my iTunes media folder to find the files, there is nothing in the folders.  Any idea what happened and how I can get my music back?

    All of my songs have exclamation points next to them but when I go to my iTunes media folder to find the files, there is nothing in the folders.  Any idea what happened and how I can get my music back?

    I wish I could help. There are numerous threads about missing music but last I looked, no solution. You might want to read through them anyway.

  • I installed my new Apple TV and successfully completed the configuration (Wireless network, Apple ID, and others) yet I am always in the Computers and Setting page- can't move to the main page – any idea on what and how, please?

    Hello, I installed my new Apple TV and successfully completed the configuration (Wireless network, Apple ID, and others) yet I am always in the Computers and Setting page… can’t move to the main page – any idea on what and how, please?

    Welcome to the Apple Community.
    Unfortunately, a number of users appear to have encountered this problem. Some of these users have reported that the problem just disappears the following day or shortly after. Other users have found various other solutions to this problem.
    Firstly, are you receiving any date and time errors when you turn on your Apple TV?
    Check that you are properly connected to the Internet, by ensuring that you have a proper IP address and not one starting with 169. Also check that your location for the iTunes Store is set correctly, if so you might try changing it and then changing it back.
    If the problem persists try restarting the Apple TV by removing ALL the cables for 30 seconds, or resetting it using the reset option under general. You should also try restarting your router, or if this doesn't work you might like to try a restore.

  • I ned in depth information of BPM's , detailed idea of each and every step

    I ned in depth information of BPM's , detailed idea of each and every step.
    For example receive , send , control , transformation, switch.
    And also different bridges like Sync/Async.

    Hi,
    Please look into this link for the STEP types,
    http://help.sap.com/saphelp_nw04/helpdata/en/62/dcef46dae42142911c8f14ca7a7c39/content.htm
    Also would recommend reading this series by Sravya, especially the 3rd blog,
    /people/sravya.talanki2/blog/2006/12/25/aspirant-to-learn-sap-xiyou-won-the-jackpot-if-you-read-this-part-i
    /people/sravya.talanki2/blog/2006/12/26/aspirant-to-learn-sap-xiyou-won-the-jackpot-if-you-read-this-part-ii
    /people/sravya.talanki2/blog/2006/12/27/aspirant-to-learn-sap-xiyou-won-the-jackpot-if-you-read-this-part-iii
    Regards
    Bhavesh
    PS : Please search on SDN with "BPM" + Blogs and you will find multiple blogs for different scenarios.

  • While doing the backup via iTune, my contacts in iPhone AND iPad have been completely wiped out. They are still all available on my Address Book on my Mac. Any idea what happened and how to resolve this ?

    While doing the backup via iTune, my contacts in iPhone AND iPad have been completely wiped out. They are still all available on my Address Book on my Mac. Any idea what happened and how to resolve this ?

    Install ClamXav and run a scan with that. It should pick up any trojans.   
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101

  • Where do I send great ideas for iPhone and iTouch applications??

    I have some great ideas that Apple might be interested, but how do I let them know what they are. I don't want to ring as it would be an expensive international call!
    If anybody working for Apple is moderating these forums could you please contact me and let me know what to do?
    Or if any of you guys know how to speak to them, leave your comment.
    My app ideas are fun and enjoyable, I'm sure you will be downloading them in the near future!

    You can find an app developer and let them know.
    I doubt Apple will accept unsolicited ideas, but you could use their feedback link if you feel compelled to do so.
    http://www.apple.com/feedback/iphone.html

  • All my contacts on my mac and iPhone have disappeared. Any ideas what happened and how to fix it?

    All my contacts on my mac and iPhone have disappeared. Any ideas what happened and how to fix it?

    Do you see them at iCloud.com
    Do you think you could have done anything that might have caused this, if not then it might be best waiting a while in case they just come back.

  • I had no idea my iPhone and iPad were connected and I deleted "notes" I had on phone they also were removed from iPad. Can these notes be retrieved? After this mess I will go downtown to apple store and learn how to use these devices.

    I had no idea my iPhone and iPad were so connected. I deleted notes from iPhone as I had them on iPad.  Well was I surprised to see they were gone from iPad also. Can these be retrieved?

    Because it says it's incompatible when it can't be, I got hope. I get error messages all the time with my iPod and iPhone that it cannot sync and that 'this device is not capapble of connecting to iTunes' stuff. I literally forget that happened, plug it in again and it works, I later realize that iTunes made a mistake, they do that.

  • Calculate frequency response using FFT and inverse FFT

    Hi,
    Attached is the program using FFT and inverse FFT to filter a time domain signal. The frequency response of the LPF can be obtained by using the chirp signal from 0 to 5kHz. However, I don't know why the signal obtained from a sine wave input is so strange. The amplitude is wrong and has a envelope outside. Please help to point out what's wrong with that.
    Bill
    Attachments:
    fft filter.vi ‏87 KB

    If you check the help text for sine wave.vi you'll see that it generates the sine wave based on the following formula:
    yi = a*sin(phase[i])
    for i = 0, 1, 2, …, n – 1 and where
    a is amplitude,
    phase[i] = initial_phase + f*360*i
    This means that when you input a=1, f=0,1 and initial_phase=0 you will get a sine wave that is based on samples at every n*36 degrees; i.e. at 0, 36, 72 etc...due to this sample rate you never see the full amplitude (+/- 90 degrees), the wave is clipped at the top. If you input an initial phase of 64 degrees you will get the full amplitude, but the wave is still deformed due to digitalization...
    The lower the frequency you put in, the closer the digitalized representation will be to the true sine.
    Use the Waveform Generator VIs from the analyze palette if you want to have more control over the wave generation (sample rates etc.). (Not available if you have the base package.)
    MTO

  • Production and inverse production quantity in SPW screen

    Hi
    The production and inverse production quantity entered in T-code O4TSW_PD is not displayed in SPW screen. The date entered in O4TSW_PD is in SPW displayed date range.
    Regards
    S.Senthil

    Hello Senthil,
    Can you share how this has been resolved?

  • Virtual provider and Inverse routine

    Hi guys,
    I have a strange problem.
    I've implemented a virtual provider over data source in ECC
    and it works fine when I filter the query.
    I get the filters in my inverse routine.
    But when I try to restrict the data via restricted key figure,
    I cannot get the restriction in my Inverse routine.
    Any ideas?
    Regards
    Shlomi

    Hi,
    You create inversion routines for virtual provider in order to pass query selection criteria to the source system. This helps to improve your performance.
    In case of restricted Key figures the restrictions will not be passed to the source system, but will be applied to the dataset fetched from the source system for selections given in query selection criteria. Hence you will not see the restrictions in transformations.
    Note:
    Inversion routines are used to pass only the selections provided in query.
    - Geetanjali

  • Java and Inverse

    Hi,
    Im doing a bit of work on BigIntegers in Java and I am trying to calculate:
    k (inverse) mod p
    I have tried:
    BigInteger e = k.modInverse(p);But this does not work, any idea's how I would do this or am I even asking the right question??
    Thanks

    I think we're talking about different kinds of inversion here. Modular versus Multiplicative.
    public class Test
         public static void main(String[] args)
              int test = 11; //k
              int test2 = 13; //p
              System.out.println("K to the negative 1: " +testOne(test));
              System.out.println("1 divided by k: " +testTwo(test)); //mult
              System.out.println("Inverse of k: " +testThree(test, test2)); //mod
         static double testOne(int k)
              return Math.pow(k, -1);
         static double testTwo(int k)
              return 1/k;
         //W*invW % n = 1
         public static double testThree(int w, int n)
              int count = 2;
              while(!(((w*count)%n) == 1))
                   count ++;
              return count;
    }I guess it all depends on what the OP was trying to do. I'm beginning to think I misunderstood the question he was asking so I'll let it go. =)

  • Z10 Product Improvement Ideas: Peak, Flow and Navigation

    Note sure what the best way to get some ideas across to Blackberry but since I've been using my Z10, there are a few ways that I think that navigation and application access can be improved. Sometimes I feel that you need to perform one too many swipes to get to something, often used features are hidden, navigation techniques are inconsistent (i.e. Accessing the hub, calendar and phone) or you have to make one more button press than necessary.
    I've been a BB fan for years and have had many models. Want to see Blackberry succeed. Own stock. Got the Z10 first day. Got 4 coworkers to get the Z10. Big promoter.
    Here are my suggestions and maybe with enough support, we can get a few adjustments made that improve the overall user experience and make us way more efficient. I also think that Blackberry can retain its innovation in peek and flow while still giving us alternative access that we are used across different devices such as our Ipads, playbooks, Desktops, etc. A couple items will be repeated depending on the suggestion type.  
    1. Calendar needs to be a core feature and should always be open and accessible instantly at a click or a swipe. Access to the calendar is not easy as I think it should be. Four ways that Calendar could be more accessible:
    a) Have a calendar button next to phone, search and camera buttons
    b) Support a swipe action of some sort (perhaps upwards and to the left (opposite of the hub))
    c) Add calendar button to the mini-swipe/scroller menu that is available in the active apps or application screen
    d) It should be clickable and launchable on the hub either on the bottom menu or as a hub filter item. Having upcoming events appear by scrolling to the top of my hub items is convenient but not what I am talking about.
    e) Directly from the lock screen. I should be able to click and hold on the calendar event to launch my calendar.
    2. Phone calling is a core feature and needs to be launchable from the hub, the mini-swipe/scroller bar, the applications pages (as an icon) and also from the lock screen similar to the calendar (ie hold the button down). In the hub you can filter on missed/all calls but it only acts to give you a call log and not any other phone feature. Launching through the hub should provide full features.
    3. Phone and Hub should both be accessible from the applications pages as an application icon. This allows me to access hub and phone in a similar manner to my other applications and also reduces the learning curve for those used to the iphone (easier adoption). I can create logical visual organization of my applications and I can essentially put the calendar, phone and hub next to each other. I really like consistent access and behaviour and this would help.
    4.  Hub should be available in the active applications like everything else is. It is the only feature that isn't.
    5. I dislike the fact that the Hub filter opens and closes after I make a selection. I would like to be able to click on the BBM icon and see my BBM messages, then quickly click on my Texts, then my mails. I think the filters should always stay open in the mini mode unless I shrink it. i.e. Click to open filter mode with icons only, drag again to stretch and see the icons with names (I think most of us know what the icons represent anyway) and click or swipe to close the filters menu. With the menu always open, I can view all content types by themselves very quickly.
    6. Hiding the delete button  in the extended menu is not efficient. If I'm looking at a photo, reading and email, reading a text just let me delete immediately. It is an action that I do enough that it should be as available as the back, forward, reply to all buttons. Save me the additional clicks.
    7. When I launch the phone, I want the number keypad open. I don't want to launch the phone and then have to click again to get to the phone pad. The speed dial screen should not be shared with the missed calls. There should be a new screen with a dedicated button.
    8. I've found that once you set up your speed dial or world clocks, you can't edit the order. This means you are stuck with the order that you added the items and have to start from scratch if you want to re-order. This is frustrating. I don't have the ability to think about order that early. Anyone notice that when you add a phone number to speed dial, it might use a different contact than you selected if that other contact has the same number?
    8. We should be able to shortcut phone numbers to the application pages the same way we can shortcut web pages. This gives me the ability to create folders, organize phone numbers and make calls quickly. Again, learning curve for iphone converts and consistency.  
    9. Alarm needs to be accessible easier. It can be an application icon accessible in the applications menu. Clicking on the alarm clock icon on the top should open the alarm clock, similarly, clicking on the wifi should open wifi menu, battery should give me percentage, and maybe a quick Bluetooth on and off. Potentially support a notifications quick menu too.
    10. We should be able to put the phone to sleep with a long swipe from the top. I don't get why you need to get to sleep mode by first locking with the top button, getting to the lock mode and then swiping down the curtain. Is there a way to do this that I'm missing?
    11. When searching in the hub, I have to clear the search to get back to an unfiltered view. Why not a quick swipe to the right? Why when I'm searching in the hub does the bottom menu disappear? I should be able to interact with those items the same way without opening the items.
    12. On the lock screen, I want quicker access to different things through three swipe actions. A swipe up opens my applications page, a swipe left opens the hub, a swipe right opens my applications page. I need to be able to open the calendar from the lock page (long press on the calendar event) and I need to be able to launch the phone (add an icon for the phone (like the camera)). Long press of the voicemail, notifications, emails, bbm or texts opens those screens.
    13. Why iis there no email or missed calls preview from the lock screen like the good old days of the torch. I want to know if I should even need to unlock the phone for the new events (is this a security issue?).
    14. The mini-swipe/scroller bar should appear in the hub, active applications and application pages (currently it is only on the latter two). It is a cool features. As per above, it should include calendar and phone.
    15. Active applications should allow pinning and re-ordering. i.e. I lock an open application in place and then I can re-order through drag and drop. Pinning isn't my idea but I like it a lot.
    16. Cool idea. If we allow users to save the layout of an active applications page, they can essentially launch 8 applications in one go in the future. i.e. You save a layout with a name and then you close the entire layout and reactivate it when you want through a list. Very powerful.
    That's it for now. Would be super happy to see these adopted and interested in seeing who else has ideas, likes these ideas and hopefully with enough support maybe BB will look at these seriously. Hope they look at them.

    Hi Meredith,
    Thought we had everything solved, however the failure to merge to HDR is solved. But the fix causes many problems. Now you can get to the final HDR picture however making small modifications will slow the computer to a crawl. The hourglass blinked for 5 minutes just to make a small highlight change.
    What were the preferences restored by deleting the preference file and having Photoshop reload the defaults. These are the ones I am sure about.
    my settings                           default
    memory usage was 80-85%   now 49%  (834 -838 mb)
    animated zoom was off            now on
    save in background off             now on
    graphic processor on basic      now off
    cursors others precise            now standard
    transparency grid size small    now medium
    By turning up memory to 50% or higher increase (1% or more) the merge to HDR screen opens as a black picture. Progress bar disappears and reappears as loading but Merge to HDR finishes with exception of black picture to start with. Click on 32 bit and.the picture appears. Local Adaption doesn't work !
    Turned ON graphics card on NORMAL ,..memory back to 49% .  Merge to HDR works and local adaption works. Appears not to be slow (graphics card helping now) Process bar turns on and off during Merging to HDR
    Resetting all my preferences except memory (at 49%  838 MB) Merge to HDR works with the exception of a progress bar that disappears and reappears.
    In conclusion with Windows XP 32bit and 4g installed (windows seeing 3g):
    Memory over 49%+ GPU on =fail and progress bars turns on and off
    Memory 49% + GPU off= black window and Local Adaption fails
    Memory 49% + GPU on = Everything works but process bar turns on and off
    GPU On= process bar failure
    GPU off= process bar works but slow
    Memory over 49%=Merge to HDR failure
    Interesting note is that at a 40% memory setting Merge to HDR failed too
    Thanks,
    Meredith

Maybe you are looking for

  • Shared Services Config

    On server one I have EPM 11.1.2.1, except Essbase On server two I have EPM 11.1.2.1 Foundation, with Essbase How does Shared Services get configured so that I can connect from Server One to Server two? I have a native user and I can connect via EAS f

  • HT1296 How can I sync with a new computer without erasing the iphone?

    Or start manually sync without erasing it?

  • Learning Burning ~ playlists in a folder ?

    __Hello gang, . . . ...I'm preparing my 1st data-burn to DVDr, researching w/ the 4th edition of iTunes/iPod Missing Manual, & perhaps boldly, i thought a folder of playlists would work for compiling a good amount for my 1st burn. _In experimenting w

  • Finder hangs after error 36

    i am getting error -36 (some data in "......" could not be read or written.) possibly because of corrupt data that i am trying to copy from a dvd. after i get the error message, the little copying dialogue box ("copying 10 items to ...") continues in

  • SNMP4J- where is processPdu called in the program?

    Hello Everyone, I’ve made the simplest possible agent just to check if it can respond to the PDUs received from the manager. Although I’ve written the following code with the help of the SNMP4J tutorials, I have my doubt as to where is the processPdu