JNI_CreateJavaVM does not load the JVM

I'm trying to load the JVM from my C++ code in order to invoke existing Java API. Here is the code that I'm using to do it.
#define JAVAHOME "C:\\jdk1.5.0_03" /* Java 1.5.0 install directory */
#define HOME_DIR "M:"
#define ADMINAPI_HOME HOME_DIR "\\obj\\w32ud\\apps\\shared\\3rdparty\\admin\\lib"
#define DEFAULT_CLASSES "."
#define JAVA_CLASSES JAVAHOME "\\jre\\lib\\rt.jar" /* Standard Java Classes jar */
#define ADMIN_CLASSES ADMINAPI_HOME "\\admin.jar"
#define JAVA_WRAPPER HOME_DIR "\\classes\\AdminWrapper.jar"
this->m_VMArgs.version = JNI_VERSION_1_4;
this->m_VMArgs.nOptions = 3;
this->m_JVMOptions[0].optionString = "-Djava.class.path=" DEFAULT_CLASSES ";" JAVA_CLASSES ";" ADMIN_CLASSES ";" JAVA_WRAPPER;
this->m_JVMOptions[1].optionString = "-Djava.compiler=NONE"; /* disable JIT */
this->m_JVMOptions[2].optionString = "-Djava.home=" JAVAHOME; /* Specify Java Home directory location */
this->m_VMArgs.options = m_JVMOptions;
this->m_VMArgs.ignoreUnrecognized = JNI_FALSE;
JNI_CreateJavaVM (&m_pJVM, (void **)&m_pEnv, &m_VMArgs);
However, upon execution of the above server code, both m_pJVM as well as m_pEnv are NULL. What is the reason? I had this code (with directory path changes) work on a local machine but when I port it to the server (where M: is a mapped drive). I'm curious to know how does JNI_CreateJavaVM discovers the JVM and loads it?
Help is appreciated.
Thanks,
Suhas.

You will never get that to run if you use hardcoded values.
As you are on win try to query the registry :
HKEY_LOCAL_MACHINE,"SOFTWARE\\JavaSoft\\Java Runtime Environment"
and query current version and installation path.
btw: I hope you did not really place your jars at the root (/) of you server... :)

Similar Messages

  • Firefox does not fully load Barclaycard Authentication site. It loads as far as asking for certain letters in my pasword but does not load the "Submit" button so I cannot continue with my purchase and have to switch to IE8 browser to purchase anything ov

    Firefox does not fully load Barclaycard Authentication site. It loads as far as asking for certain letters in my pasword but does not load the "Submit" button so I cannot continue with my purchase and have to switch to IE8 browser to purchase anything over the internet. Any clues?
    == This happened ==
    A few times a week
    == Couple of weeks ago

    Your UserAgent string in Firefox is totally messed up by another program that you installed, and Barclays doesn't know you are using Firefox 3.6.6 - it probably looks like IE 6.0 to that website.
    [http://en.wikipedia.org/wiki/User_Agent]
    type '''about:config''' in the URL bar and hit Enter
    ''If you see the warning, you can confirm that you want to access that page.''
    Filter = '''general.useragent.'''
    Right-click the preferences that are '''bold''', one line at a time, and select '''''Reset''''',
    Then restart Firefox

  • TS1702 My app store does not load the featured apps, also in charts. Everytime i open the app store, the screen remains blank. Im using ipad3, ios6.

    My app store does not load the featured apps. The screen remains empty everytime I open it.

    Saw this on another post.
    Applecare Senior Advisor Txx Bxxx (I have his contact info in an email he just sent) just confirmed with me that the problem people are having with the App Store not loading is an apple issue with there servers, ITS NOT YOUR IPAD so don't go restoring it!   It's not happening to everyone however but they are looking into it, its really hit or miss.
    In the meantime ...........
    The Complete Guide to Using the iTunes Store
    http://www.ilounge.com/index.php/articles/comments/the-complete-guide-to-using-t he-itunes-store/
    Can't connect to the iTunes Store
    http://support.apple.com/kb/TS1368
    iTunes: Advanced iTunes Store troubleshooting
    http://support.apple.com/kb/TS3297
    Best Fixes for ‘Cannot Connect to iTunes Store’ Errors
    http://ipadinsight.com/ipad-tips-tricks/best-fixes-for-cannot-connect-to-itunes- store-errors/
    Try this first - Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
    This works for some users. Not sure why.
    Go to Settings>General>Date and Time> Set Automatically>Off. Set the date ahead by about a year.Then see if you can connect to the store.
     Cheers, Tom

  • Mail does not load the mail after opening with 10.10.3 on macbook air

    Mail does not load the mail after opening with 10.10.3 on macbook air

    Under Window in the Menu bar select Connection doctor. You will see green to indicate a connection and red to show there is a problem. Except for iCloud account you'll see two entries for each account 1) receiving and 2 SMTP for sending.
    If it's red, this usually means it's missing the password.
    For Incoming messages, set in the account window, under Account Information tab.
    For Outgoing (SMTP) messages, follow these steps:
    EDIT SMTP SETTINGS
    In Accounts window > Outgoing Mail Server SMTP:  select to Edit SMTP Server list... from popup.
    Select account in the list.(It's not uncommon to find extra SMTP servers listed. When you remove account, Mail does not delete the smtp info. You might need to do some clean up in the list to remove the extras.)
    Under Advanced Tab:
    Apple defaults to the default ports (25,465, 587) but some servers prefer a custom port. Check to see what port they recommend. Gmail for example likes 465, Outlook.com 587.
    Verify if your server require SSL.
    User Name. Enter full email address  eg.  [email protected]
    Add password if it is blank.(If you have two step authentication setup, you'll need to get an app specific password  more info)
    Open Connection Doctor under Window in the Menu bar.
    Do you see green light now for your account SMTP?

  • Safari does not load the website

    Hi,
    I am running MAC OS X 10.4.7 using Safari Version 2.0.4 (419.3).
    Ever since I started using this computer (1 week back) Safari just does not load the pages. The website that I am trying to load is http://www.apple.com/startpage/ or the default page of Safari as installed. This also happens with many other pages.
    The browser starts loading the page and the blue bar just stops mid way and nothing happens post that. I have waited for almost 20mins for it to load, however that never loads. If I press the Stop button, I do see the partial HTML thats loaded in the browser, but the page never loads completely.
    My internet connection is fast, since I am able to load the same page or any other page in FireFox with no problems.
    Can you please support me with what to look at to resolve this problem?
    Mac Book Pro   Mac OS X (10.4.7)  

    Hi! Yes I have experienced similar difficulty with Safari 1.3.2 (v312.6). Although I am using Safari to browse this site now, it does seem prone to reject some sites. When it works it work beautifully. There must be a gremlin glitch in there somewhere!
    All I can suggest that that you switch to another browser such as Netscape 7.2 or Firefox to resolve this issue as and when it happens.
    Happy surfing!
    Technoapple.

  • Swf does not load the images on the web

    I made a swf that works perfectly on my computer.
    The swf does not load the images, cal with the buttons, when I use the swf on the web.
    I think the problem is due to the fact that the web changes the path of the file, that is called with the following variable:
    var ImmageUrl: String = "MyFolder2 /" +  MynamePic +  ".jpg";
    The path is C:/MyFolder1 "(with the swf)" /MyFolder2 "(with the pics)"
    Any hint ?
    Thank you.

    When you place an swf in a web page, any files that the swf loads have to be targeted as if the swf is sitting in the same folder as the html page.  If you have the swf in a different folder than the html page, then you need to adjust the paths for the files it loads so that it acts as if it is in the html page's folder.

  • Sometimes when I open a link in a new tab, the new tab does not load the link.

    Sometimes when I open a link in a new tab, the new tab does not load the link. This seems to be random.
    Win 7 64
    FF 4.0.1

    This issue can be caused by an extension that isn't working properly.
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • My computer says it is connected to internet but it does not load the webpage

    my computer says it is connected to the internet, full bars but it does not load the webpage when i click on safari

    If you are connected wirelessly it is possible to have full bars, but your wireless router connection to the Internet could be the problem.  Try restart your router. 

  • Firefox 26 does not load the home page. Instead, it loads the previous session (and that includes all the tabs). It does not matter how Firefox is closed.

    Firefox 26 does not load the home page. Instead, it loads the previous session, irrespective of what has been entered in "Options". The browser is running in Win 7.0 64-bit; Norton Internet Suite 21 provides the security functions. There are certain "cloud" solutions also running such as Google Drive, Box, Skydrive and Cubby. The browser behaves similarly in all my machines (the setup and OS is similar to the one described above) and no amount of resetting of "Options" seems to affect it . Nor is it affected by the manner Firefox is closed. It is obviously a bug that needs to be fixed.

    u wait for firefox next update
    otherwise
    1. go to firefox tab .
    2. click on help ->trouble shooting information.
    3. reset ur browser .
    ur problem is solved

  • Since updating to Firefox 22 Twitch.tv does not load the player anymore

    I just updated to Firefox 22 and no Twitch.tv's player simply does not load anymore. Just a black rectangle where the player is supposed to be and if I rightclick in that area, I get the same context menu as everywhere else, meaning that the player definitly did not load. Youtube works fine though.

    This gotta be the worst ff upgrade ever, every single thing breaks

  • Application based on JMF does not load the complete Video

    Hi folks!
    I programmed a small application using the JMF. Among other things, this application should load an play video files. But it does not load big video files completly.
    One of my video files (MJPG, 720x576, FrameRate=25.0, Length=999424 28 extra bytes) is 10 minutes long and is pretty huge. It takes 2,1 gigabyte disk space.
    My application loads and plays only 5 minutes of this video. But the VLC media player, windows media player and other video player does play the complete video.
    However, the JMStudio has the same problem.
    Any ideas?
    I'm looking forward to your replies!

    It's taken quite a long time for me to get a resolution. I have a feeling each situation is unique. I tried many of the solutions offered both in this forum and in other ones found online, including Flashplayer forums.
    It didn't make sense that I can view videos from virtually everywhere but I could not from Fox News and CBS. Something was in conflict but I couldn't figure out what.
    It turns out I had an issue with Doubleclick.net. In Internet Options - Security - Trusted Sites - Sites is where you need to go. If you find this is a restricted site - remove it. In my case, it was not there but I added the following to my trusted sites - https://*.Doubleclick.net and low and behold all is well. I watched a number of Foxnews videos and I finally got to see CSI from CBS online.
    How this happened I'm not sure but sometime ago, I had this crazy notion of opting out of advertising via AOL. A number of email accounts are through AOL and I suspect something got corrupted as a result.
    I hope this can resolve this issue for some of you who have this problem but looking at internet options via your control panel appears to be the least aggravating area to start!

  • Windows 7 does not load the ipad bluetooth drivers

    I am trying to connect my ipad 2 to a windows 7 computer and the computer will not load the ipad blutooth drivers so a connection is never made.

    Hi Phil,
    It's funny that you say that Reflector runs on Wifi and not Bluetooth. I thought the same thing and that's why I was having a difficult time with getting this to work...on top of the bluetooth drivers not installing properly.
    When you initially connct your iPad device to your computer through bluetooth, your PC installs bluetooth drivers...you can see this by the little notifictaion you get that says this. Setting up your device...installing drivers. So you can't tell me that there are no iPad bluetooth drivers.
    You have to enable bluetooth on your ipad to get to the mirroring icon. (double tap your home button and scroll to the left. The mirroring icon should be visible and only visible if you have bluetooth turned on. Now if you run Reflector, then you should see the name of your PC that you shared through Reflector. Then you click on the mirroring app on your iPad and select the shared name on your PC and slide the mirroring toggle button to turn it on.
    I have tested this on another laptop running Windows 7 and everything installed perfectly fine...even the bluetooth drivers.
    So my conlusion is that it is the bluetooth drivers at fault here, since they didnt install properly. No matter how many times I remove the device and readd it, the bluetooth drivers do not install and I see red x's beside them.
    Not sure what is keeping the drivers from being installed.
    BTW...thanks for your reply Phil...see posting to this year old thread did me some good as you replied
    cheers,
    Tom

  • Back button on IE 11 does not load the dropdown selections from previous form

    We have a site in clasic ASP. There is a search criteria form with a few drop downs and a few radio buttons. While working in IE 11, When this form filled and submitted, the results show up. When the back button is hit, the previous form loads but the selections
    are lost. This works perfectly fine in IE 9. What has changed in IE 11 that this does not work. 
    Is there some setting that can get this feature back.
    Arun 

    Hi,
    your question would be better answered in a developers forum. Include with your question a link to your website so that it can be tested.
    usually the query parameters from a get request are used to populate a form with previously entered values. You may have coded your page to always refresh from the server.
    IE documentation for developers can be found here -
    http://msdn.microsoft.com/en-us/ie/ - there are no MSDN support forums for classic asp.
    Questions regarding Internet Explorer 8, 9 and 10 and Internet Explorer 11 for the IT Pro Audience. Topics covered are: Installation, Deployment, Configuration, Security, Group Policy, Management questions. If you are a consumer looking for answers or to
    raise a question, it's highly recommended you head on over to http://answers.microsoft.com/en-us
    Rob^_^

  • Since the weekend my Firefox 10.0.2 does not load the content of the frames when I connet to Facebook

    I can log in and out of Facebook. The heading at the top of the home page loads, and so does the thin blue frame in which the content should be displayed. The page however stays blank. The same happens if I connect to a friend's profile. I also cannot search of display my profile wall of whatever.
    My very old version of Microsoft Internet Explorer works perfectly, although it displays a warning about being outdated.
    Google's Crome browser have the same problem as Firefox i.e. a blank screen.
    I tried deleting cookies and cach. I tried reïnstalling Firefox. I even removed it completely, with al personal settings and stuff (and thus lost tweaks which I have been using for years) I the reïnstalled it... to no avail. I have tried using an old version (9.0.1) but it also just displays a blank screen.
    If I DISable Javascript in Firefox my Facebook homepage loads, but the none of the buttons (eg "see more" , "display al nn comment" work. "See more" does not do anything and "disply all nn comments" displays a blank page.

    I have found a solution to the problem on a Google Chrome forum where people were discussing the same problem in that browser. If you connect to
    https://www.facebook.com (NOTE THE "S" which indicates a secure connection) Facebook wil display correctly.
    The only problem is that you have to keep pasting the "https" in front of every link you follow. To make it permanent do the following. I paste from the site
    (http://www.google.com/support/forum/p/Chrome/thread?tid=1ce2eceab414b310&hl=en)
    SammieKay08
    Level 1
    8/20/11
    Problem solved:
    1. Login to your Facebook account in your browser.
    2. Click on the Account on your top-right and select Account Settings from the drop down list.
    3. Click on the Change link in front of the Account Security.
    4. Put a checkmark in the checkbox labeled Browser Facebook on a secure connection (https).
    5. Click on the blue Save button to save the settings.
    Voila! Permanent https (secure browsing) on facebook and no more having to type in the "s" every time. :)
    8 of 14 people found this answer helpful. Did you?

  • Java FX linechart reloading does not load the category axis in sorted order

    We are reloading the different data in Java FX line chart for . First time it loads with sorted order and looks good but we try to reload again and again the category axis sorting messed up and does not display in order. I did try even with Number axis but no luck.
    Any pointers why the first time able to load but not later....
    I am removing the series and recreating the series instance before loading the chart but no luck.
    lineChart.getData().removeAll(series1)
    Appreciate for any pointers.

    Please supply an executable sample

Maybe you are looking for

  • Stopping a Query taking more time to execute in runtime in Oracle Forms.

    Hi, In the present application one of the oracle form screen is taking long time to execute a query, user wanted an option to stop the query in between and browse the result (whatever has been fetched before stopping the query). We have tried three a

  • Why am I asked for developers key in ctbw ?

    Hello all, I have used ctbw in my dev box and created characteristics. I re-did the same procedure in QA box of R/3 as well ( did not transport but re created the datasources) and now I am trying to do the same thing in the production box and this ti

  • TA26589 iphone 4s sort order for number in contacts

    iphone 4s How to sort order for numbers in contacts ? Like First - mobile Second - office Third - work Four - home It differs as you enter while as you enter / update. Can any one guide me. Thanks.

  • My aperture library is empty after photos merge

    After my update to photos, my aperture library is empty.  I understand I am still supposed to see all my photos in aperture. Have tried to restore library to no avail.  Also having problems uploading from my canon d40  With aperture it was fast and e

  • Reducing physical RAM consumption by oracle instance in my laptop

    I wanted to reduce the amount of RAM consumed by my Oracle Instance in my machine. OS: Windows Server 2003 DB version: 10GR2.So i tried to reduce the sga_max_size to 200mb then restarted the instance. But sga_max_size remains the same. What am i doin