Help with JNI using C in Visual Studio

Hi,
I need help in passing arguments such as "-Djava.class.path=xxxxxxx" in Visual C++ 2005 Express Edition. I have created the .dll and an .exe which uses that DLL to call Java using c and jni. If I hard code the classpath, then it seems to work, at least partially, but I need to send to arguments through the command line. I tired it in the properties of the file but it doesn't work. Any suggestion?

What is the executable you are trying to debug? A DLL that is called from java?
So your VC project is a DLL? (It's really hard to tell from your posts).
If so, then suppose you have this folder structure:
{dll_project_folder}
{dll_project_folder}\debug\mylib.dll
{java_project_folder}
{java_project_folder}\MyJavaClass.class
Then your VC project settings should be:
Command : {java_root_folder}\bin\java.exe
Command Arguments : -classpath {java_project_folder} MyJavaClass
Working Directory : {dll_project_folder}\debug
Regards

Similar Messages

  • How to integrate mysql database using prerequisites in visual studio 2010

    how to integrate mysql database exe file using prerequisites in visual studio 2010  and it should be installed when my exe file starts installing.is it possible to integrate mysql database exe?
    S S Manne

    As your question appears to be about application deployment, and not about .NET Framework setup (this forum's topic), please ask here:
    https://social.msdn.microsoft.com/Forums/en-US/winformssetup/threads
    Thank you for your understanding.

  • I need help linking Microsoft SDK to My visual studio 2010 sp1 project?

    I need help linking Microsoft SDK to My visual studio 2010 sp1 project?
    Hi, I'm on windows 8.1 and I'm getting a lot of Direct x sdk errors every time I try to debug or release a project. Please help me I'm lost trying to fix's this, thanks.

    Hi programmerblizz,
    According to your description, could you please tell me which kind of project you try to debug or release? Is it a c++ project or other?
    If it is a c++ project, I suggest you can refer the following thread check your issue in your side.
    Reference:
    http://stackoverflow.com/questions/26303922/directx-9-cannot-find-the-include-libaries
    If no, please tell me more detail message about your issue.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Version of jvm.dll compatible with 64-bit development on Visual Studio 2013?

    Hi.  I am building a 64-bit C++ application under Visual Studio 2013. I am using jvm.dll to call Java methods from within the application.  The issue is that the version of jvm.dll that is distributed with Java 7 and Java 8 are compiled with Visual Studio 2010 (and thus rely on the msvcr100.dll runtime library).  This makes it very dangerous to use with a Visual Studio 2013 application which uses msvcr120.dll (mixing runtime libraries is a very big no-no).  I am seeing random memory errors as a result, at the JNI interface level.
    Is there any way to get a version of jvm.dll that is compiled with Visual Studio 2013 and is thus dependent on msvcr120.dll?
    Thanks,
    Dan

    Hello,
    As per your description, remote deployment is not possible for server side code in sharepoint so if you are using server object model then you won't be able to debug or deploy your solution from visual studio.
    VS is not required to installed on UAT/prod server but you need sharepoint along with visual studio in same development machine to develop any custom webpart.
    Once you deploy your custom webpart on site then you will be able to see that webpart in webpart gallery and that gallery is also available in designer so it means you can also add your custom webpart from designer to any page.
    Correct me if i misunderstood you
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Oracle 11 g connection with asp dot net in visual studio 2008

    Hi to all,
                  My application is using oracle 11 g as database in an asp dot net project . this was basically a project in asp dot net with sql server as a database . but now this need oracle 11 g as database . I have complete the db work, but i m getting the connection problem in visual studio (2008) with oracle 11 g .
    I know for this it need a driver oracle.data.access  ,, i do nt know which version it need ?
    I have this dll . but version of it may be  earlier. thats why it is not working properly
    i have 11 g installed on the server computer , and we can only use it only on browser , I have a global.asax as a file in my dot net project in which connection string is written but i m getting error , something like ora10cc .
    first i do not know , which odac version i have to download i have  a link for this ,
    http://www.oracle.com/technetwork/database/windows/downloads/index-101290.html
    but which version exactly , this page is so confusing, for oracle 11 g, and visual studio 2008 which version will be perfect
    and then where the dll will be there. after getting  the setup, Is  i need to install that setup?
    one more confusion , where i have to install that odac , on my computer system . or on the server side system , I just need that dll file ,,
    One more thing , Is there any error in my connection string ,,
    my connection is as  follows
    "Persist Security Info=False; User ID= system; Initial Catalog=LabTrack;Server=Comp-34;Data Source=192.168.1.61\oracle11g;Password=abcd1234; DBA Privilege=normal;"
    192.168.1.61 is ip addres of system, where my oracle 11 g is install ,
    and comp-32 is my user name
    labtrack is my db  name
    Is there any need of provider name ?
    sumbody pls help me
    i m getting problem in at from 3 days
    If u can then contact me , on [email protected] , otherwise reply me here
    thanks in advance
    regards Nimish Goel

    The file at the top of that link should work fine with Oracle 11g.
    I would start trying to get the client to work outside of Visual Studio, first.  That way you can localize your issues.
    Once you get the Oracle client connected to the Oracle server, then uou can start working on Visual Studio.
    As for where to install it, I'd say start with your computer.  I'm not sure how you do your development, but that would probably be a good place to start.
    You may want a different download for the web server as I assume you wouldn't need the special Visual Studio tools on it.  But yes, it will need whichever Oracle provider you choose installed on it as well.

  • '{' Key not working with Apple Keyboard in Windows & Visual Studio

    Good morning,
    I've been bugged by this forever now and tried it with Windows XP, Vista and 7 now on my macPro & (the latest version of) Bootcamp: I can type the { and } brackets just fine in most windows apps (e.g. start > run etc), but in visual studio, for some reason the 'ctrl + alt + 7' (for the '{') does result in the whole line being commented with // instead of the expected opening '{'. 'ctrl + alt + 0' ('}') does however work just fine.
    Now I am really not sure why this is happening, but it's the same for VS2008 and the VS2010 beta and developing in C# without a proper '{' combo is somewhat.. difficult
    Has anyone ever come across the same behavior and knows what to do?
    Cheers and thanks,
    -J

    Does it happen with another KB?
    If only this KB then the is either dirty or faulty. Maybe this will help
    http://theminiblog.co.uk/archives/2006/11/16/how-to-cleaning-the-apple-keyboard/

  • Windows 7 with SharePoint 2013 Foundation and Visual Studio 2013

    Hi,
    I am begginer with Sharepoint 2013 Foundation. 
    My company installed Sharepoint 2013 Foundation on a virtual Server. I installed
    Visual Studio 2013 on my local computer. Also i created a developer site.
    Based on http://msdn.microsoft.com/en-us/library/office/jj220047(v=office.15).aspx#RDOverview I installed Office
    Developer Tools for Visual Studio 2013 on my local computer. 
    I am trying to remotely develop apps
    with Visual Studio 2013. In the option What SharePoint site do you want to use for debugging your App? i put the url
    of developer site.
    First of all, i had to choose if the apps will be SharePoint-hosted or Provider-hosted apps. Based on http://msdn.microsoft.com/en-us/library/office/fp142379(v=office.15).aspx and http://msdn.microsoft.com/en-us/library/office/fp142381(v=office.15).aspx,
    i decided to followed SharePoint-hosted because is the only type that applies to SharePoint 2013 Foundation.
    I followed the steps of http://msdn.microsoft.com/en-us/library/office/fp142379(v=office.15).aspx, which is the quide for How to:Create a basic SharePoint-hosted app. In Step 10 for deploy my app i get the following error: 
    Error occurred in deployment step 'Install app for SharePoint': Failed to install app for SharePoint. Please see the output window for details.
    What is the problem?
    Also, the visual studio need to be installed on the server where sharepoint was installed?
    Moreover, do I need app catalog for testing and deploy apps?
    thanks, Aphrodite

    Hi,
    According to your post, my understanding is that you have an issue about creating app.
    Per my knowledge, the issue is caused that you don’t configure the app catalog URLs from the central administration.
    It means that we should create an App site catalog site collection to hold our Apps.
    More reference:
    http://www.sharepoint-journey.com/app-development-in-sharepoint.html
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • What can i use instead of Visual Studio?

    I'm a new user. i need to use Microsoft Visual Studio for my project. As i understand there is no MVS for mac.
    But is there any thing else, that is capacitable as MVS for mac.

    Install Windows 7 into a virtual machine such as VirtualBox, Parallels Desktop 8, or latest VMware. Once Windows is installed and updated, install Microsoft Visual Studio, updates and dependencies. Now, you have a 100% Visual Studio and development language support.
    Now you can boot into Windows concurrently with Mountain Lion running, share/print files between them, and when you are done with Windows, shutdown it down and close the virtual machine. Return to the normalcy of OS X.

  • Would I have tighter control with TFS as opposed to Visual Studio Online?

    We have developers from all over the world and I want to make sure that our code which is our company's intellectual property is as secure as possible. We're currently using Visual Studio Online but a potentially disgruntled developer can log into VSO and
    download our code into his/her local computer. I really want to prevent this scenario.
    Would I have tighter control and security by implementing our own TFS server in a VM on Azure?
    Thanks, Sam

    Here's further clarification of my scenario:
    First, we're entirely on Azure -- no on-premises network. We have a virtual network on Azure along with our ADs, VMs, etc. Our developers, both internal and external, use RemoteApp to write to their code so everything stays in the "cloud".
    The problem with Visual Studio Online (VSO) is that a disgruntled developer could use his/her login credentials to log into VSO and download the code into their local machine.
    Our objective is to keep everything that belongs to the company within our "virtual network" on Azure and NOWHERE ELSE.
    Correct me if I'm wrong but I think a traditional TFS approach -- running on a VM within our virtual network -- may give me tighter security due to the fact that there's no public "end point" where a developer can connect. Therefore we should be
    able to restrict code access to devices i.e. RemoteApp within our virtual network ONLY.
    Is that a fair assumption or not?
    P.S. I really don't want to manage yet another VM and we LOVE using services but I feel a service based approach such as VSO may not necessarily satisfy our security needs.
    Thanks, Sam

  • Unspecified error using odt in Visual Studio 2003

    Hello all
    We have Windows XP SP2.
    We have installed ODT version 10.1.0.4.00 on our workstation. We have MS Visual Studio 2003. We have the Oracle client 10.1.0.2.0.
    We also have Oracle data access product 10.1.0.4.0.
    When I try to access Tools - connect to oracle database, I get the error : "unspecified error". I get the same error back if I try to exit Visual studio. I have to kill the process to exit. I have the same thing using View - Oracle Explorer.
    What could be wrong ?
    Best regards
    Gaetan Labrecque

    Post Author: MJ@BOBJ
    CA Forum: .NET
    Typically that error is referring to a COM dll that is not being loaded because it is not registered on the system.  Usually, that error message will give you a dll name, or a PROGID, or something.....was anything else provided in the error?
    In order for a file to be unregistered, something might have been uninstalled (or a failed install) that could have caused this issue.  I did a search in kbase and found a article that may help, at least it refers to a dll that you can try to register.
    Perhaps doing a reinstall may resolve the error.
    -MJ

  • Clobbered by a CLOB - Using C# in Visual Studio 2005

    Hello All,
    What I am trying to do:
    I am trying to insert a string as a CLOB into Oracle via C# using Visual Studio (VS) 2005.
    What I am using:
    The Oracle Tools for VS 2005 are installed and work fabulously with other types of data.
    Research I have done on my own:
    1. I have read the thread "ORA-01461"
    2. Have modified an example (see below) from the Oracle web site
    ..... as noted in the comments below (Jason Price).
    3. Addtionally, there are a number of www references.
    4. However, after a long unproductive day none are working for me.
    Error messages from Oracle (caught by the catch block):
    The error is: Oracle.DataAccess.Client.OracleException ORA-00936: missing expression at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure) at Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, String procedure, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src) at Oracle.DataAccess.Client.OracleCommand.ExecuteReader(Boolean requery, Boolean fillRequest, CommandBehavior behavior) at Oracle.DataAccess.Client.OracleCommand.ExecuteReader() at clobSample.workThis() in c:\Documents and Settings\joe.user\My Documents\Visual Studio 2005\WebSites\HDTS\App_Code\clobSample.cs:line 71
    Thank you kind people of the Oracle Community,
    Mark
    *********** Code is Below ***********
    using System;
    using System.Data;
    using System.Configuration;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using System.Web.UI.HtmlControls;
    using Oracle.DataAccess.Client;
    using Oracle.DataAccess.Types;
    public class clobSample
    public clobSample()
    // TODO: Add constructor logic here
    public OracleConnection getConnectionString(string DBuser, string DBpass)
    // Build Connection String
    string connectionString = "Data Source=MY_DATA_SOURCE;User Id=";
    connectionString += DBuser + ";Password=";
    connectionString += DBpass + ";Persist Security Info=True";
    OracleConnection connection = new OracleConnection(connectionString);
    return connection;
    ClobExample4.cs shows how to update a CLOB
    using SELECT ... FOR UPDATE
    public string workThis()
    string strResult = "";
    try
    // create an OracleConnection object to connect to the database and open
    // the connection
    OracleConnection myOracleConnection =
    getConnectionString("DB_USER_NAME", "DB_PASSWORD");
    myOracleConnection.Open();
    // create an OracleCommand object to hold a SQL statement
    OracleCommand myOracleCommand = myOracleConnection.CreateCommand();
    // step 1: create an OracleTransaction object
    OracleTransaction myOracleTransaction =
    myOracleConnection.BeginTransaction();
    // step 2: read the row
    myOracleCommand.CommandText =
    "SELECT TICKET_NUM, COMMENT " +
    "FROM HDTS_TICKET_EVENTS " +
    "WHERE TICKET_NUM = 1 FOR UPDATE";
    // THIS IS WHERE THE CODE ERRORS OUT *
    OracleDataReader myOracleDataReader =
    myOracleCommand.ExecuteReader();
    myOracleDataReader.Read();
    // Console.WriteLine("myOracleDataReader[\"id\"] = " +
    // myOracleDataReader["id"]);
    // step 3: get the LOB locator
    OracleClob myOracleClob =
    myOracleDataReader.GetOracleClob(1);
    // step 4: write to the LOB
    myOracleClob.Erase();
    string text = "Alas poor Yoric, I knew him well";
    char[] charArray = text.ToCharArray();
    myOracleClob.Write(charArray, 0, charArray.Length);
    Console.WriteLine("myOracleClob.Value = " + myOracleClob.Value);
    // step 5: commit the transaction
    myOracleTransaction.Commit();
    // Console.WriteLine("Successfully committed transaction");
    // close the OracleDataReader and the OracleConnection object
    myOracleDataReader.Close();
    myOracleConnection.Close();
    // Console.WriteLine("\nPress any key to end");
    // Console.ReadLine();
    return strResult;
    } // close try
    catch (Exception e)
    strResult = "The error is: " + e;
    return strResult;
    } // close work this
    } // close clobSample class
    Edited by: microBiker on Sep 30, 2008 5:01 AM

    Hi,
    I dont think this has anyting to do with CLOB, but rather the use of a reserved word for a column name.
    How did you get the table created with a field named "COMMENT"? That's a reserved word so you shouldnt use it, even if you can someone force the database to accept it by using quotes for example...
    SQL> select count(*) from v$reserved_words where keyword='COMMENT';
    COUNT(*)
    1
    SQL> create table t1 (comment clob);
    create table t1 (comment clob)
    ERROR at line 1:
    ORA-00904: : invalid identifier
    SQL> create table t1 ("COMMENT" clob);
    Table created.
    SQL> select comment from t1;
    select comment from t1
    ERROR at line 1:
    ORA-00936: missing expression
    I assume the error might be stemming from that, as I see no reason for the code to error.
    Cheers,
    Greg

  • Problem on Windows 7 Home Premium cant open program for using codes like visual studio 2012

    I have problem my windows 7 Home Premium because of visual studio 2012..I can't open even in several times, I don't know what happen, and sometime it is so low to process whenksn it to open my laptop..Why is that pleas do reply..ASAP! tha

    Hi,
    According to your description, it seems like VS itself problem, you can try to repair this program through Control Panel for test. If no use, it would be better to post your question at VS forum for further assistance.
    Contact VS forum:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?category=visualstudio%2Cvsarch%2Cvsdbg%2Cvstest%2Cvstfs%2Cvsdata%2Cvsappdev%2Cvisualbasic%2Cvisualcsharp%2Cvisualc
    Roger Lu
    TechNet Community Support

  • Help with Sum using FormCalc in Livecycle

    Hello. I'm stuck. I've been doing searches, readings, and all that on how to sum up certain cells in Livecycle. I have tried examples and tutorials and I get stuck when the application says "Error: Accessor ' ' Unknown".
    I'm such a novice in using Livecycle and I'm not a programmer. So, if someone can help me on why it does this, that would be awesome!

    Here you go.  I rename it.  Couple of things.  Too many subforms (unless you intend to do something else with this).  Also, make sure you save your forms as "dynamic" if you intend to have user enter info.  I couldn't tell if you were importing/exporting to a spreadsheet.  Note the formcalc.  Your fields need to be named the same.  In my example they are: ExpCosts.
    I'm not very good with the formcalc/java and variables but am more than willing to help with what I can

  • I need help with setting up my Sun Java Studio Creator

    Hello all, i need help with setting up the Studio Creator, i"m new to all that staff so is there anyone to help me just a little with all that if yes email me at [email protected] or get me on AOL Instant Messanger with the screen name: wretch17
    thanks :-)

    Hi,
    Welcome to the Creator community! Thanks for your interst in Sun Java Studio Creator. Please feel free to post any question related to creator on this forum .
    Take a look the creator website at
    http://developers.sun.com/prodtech/javatools/jscreator/
    CreatorTeam

  • Need help with session using dreamweaver

    have created a login page (php/mysql) with username and
    password boxes. when the form is submitted the mainpage loads up.
    i want the main page to be specific to that user, so i want
    their name to appear in the first line. eg.. Welcome back 'David'
    I read a tutorial in the past that tought me to send the
    users id in the URL and then create a record set on the mainpage
    that was filtered by the URL parameter.
    I have forgotten how to do this and the tutorial is no longer
    available on Adobe's site.
    I tried that with
    $_SESSION['MM_Username'] = $loginUsername; \\ in first page
    then
    echo $_SESSION["MM_username"]; \\in second page, but the
    problem is that is not showing user name.
    i need help with that please!
    can anyone tell me how to do this? Thanks in advance,
    AM

    IN the second page, you have to make sure that the session
    has been started.
    Put this at the very top of the page -
    <?php if (!isset($_SESSION)) session_start(); ?>
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Alidad" <[email protected]> wrote in
    message
    news:g184i4$jgf$[email protected]..
    > have created a login page (php/mysql) with username and
    password boxes.
    > when
    > the form is submitted the mainpage loads up.
    >
    > i want the main page to be specific to that user, so i
    want their name to
    > appear in the first line. eg.. Welcome back 'David'
    >
    > I read a tutorial in the past that tought me to send the
    users id in the
    > URL
    > and then create a record set on the mainpage that was
    filtered by the URL
    > parameter.
    >
    > I have forgotten how to do this and the tutorial is no
    longer available on
    > Adobe's site.
    >
    > I tried that with
    > $_SESSION['MM_Username'] = $loginUsername; \\ in first
    page then
    > echo $_SESSION["MM_username"]; \\in second page, but
    > the
    > problem is that is not showing user name.
    >
    > i need help with that please!
    >
    > can anyone tell me how to do this? Thanks in advance,
    >
    > AM
    >

Maybe you are looking for

  • CSCul50066 - Upgrade fails due to lack of disk space in the /common partition

    I noticed this has only 1 and 2 star ratings after bumping into this issue myself, so I figured I would help out the original poster and others who are experiencing this issue. Presumably, the original poster is intending to advise that we read the C

  • I think BT have finally found my long goin issue

    Yesterday i had yet another visit from bt engineers to do a proper job on my wiring as the last engineer did a bodge and run job, i didnt get a new line, i was told that the cable i had installed myself is better than what they would use and would be

  • Adding port in http header information??

    I have a standard HTTPS to HTTP conversion going through a CSS 11506. The CSS terminates the SSL and then passes the cleartext traffic to the backend server via port 8011. The backend server receives this traffic on port 8011 but the http header does

  • Missing Navigation Buttons - Vista, FF4

    Screen shots on this site and the introductory video to FF4 show a button at the far RH end of the navigation bar that has a star on it. I don't appear to have this. I've tried resetting the navigation bar and interestingly, when the Customise Toolba

  • Xml publisher signal 8

    When i generate raport of xml publiser i have error about signal 8 . In OPP log is information: Template code: XX_NAL003 Template app: XXEXT Language: pl Territory: PL Output type: PDF [11/24/08 7:30:48 PM] [UNEXPECTED] [24618:RT476426] javax.net.ssl