Is it possible to call VB dll in Java

Is it possible to call VB dll in Java?
If yes then How?

If you mean VB6 than you can call VB Module like a COM object with any Java-COM bridge.
VB.NET could be called with my Object-Oriented JNI for .NET 1.1/2.0:
http://www.simtel.net/product.php[id]95126[SiteID]simtel.net
http://www.simtel.net/product.php[id]98653[SiteID]simtel.net

Similar Messages

  • Is it possible to call a dll thru XI

    Hi ,
    Is it possible to call a dll thru XI .
    Thanks in advance
    Divya

    Hi Divya ,
    You can follow up these blogs and docs for your refrence
    /people/rashmi.ramalingam2/blog/2005/06/25/an-illustration-of-java-server-proxy
    /people/prasad.ulagappan2/blog/2005/06/27/asynchronous-inbound-java-proxy
    JDBC-XI-File Scenario
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a068cf2f-0401-0010-2aa9-f5ae4b2096f9
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f272165e-0401-0010-b4a1-e7eb8903501d
    Regards
    Abhi

  • Is it possible to call ctx_doc.filter from Java?

    Hello all,
    Is it possible to call ctx_doc.filter from Java?
    If so, do you have a code sample?
    Thanks,
    Marvin

    I have some Java code using ctx_doc.markup that can help:
    try {
    //make db conn
    OracleCallableStatement stmt =(OracleCallableStatement)conn.prepareCall("begin "+
    "ctx_doc.markup(index_name=>'text_idx', "+
    "textkey=>?,"+
    "text_query=>?,"+
    "restab=>?,"+
    "starttag=> '<a>',"+
    "endtag=> '</a>' "+
    "); " +
    "end; ");
    ... // register other parameters
    stmt.registerOutParameter(3, OracleTypes.CLOB);
    stmt.execute();
    oracle.sql.CLOB text_clob=null;
    text_clob = ((OracleCallableStatement)stmt).getCLOB(3);
    // read the CLOB by chunks
    int chunk_size=text_clob.getChunkSize();
    Reader char_stream = text_clob.getCharacterStream();
    char[] char_array = new char[chunk_size];
    for(int n=char_stream.read(char_array);n>0; n=char_stream.read(char_array)){
    out.print(char_array);}
    }catch (SQLException e)

  • Is it possible to call c# dll using JNI

    Using JNI we can invoke native code written in c or c++.
    Steps:
    1) All we have to do is write a class and have a method of type native.
    2) Invoke javah with -jni option to create a .h file.
    3) Include this header file and implement the method in c or c++ code.
    Now my question is:
    Is it possible to call I want to know whether we can implement the native method in c# instead of c or c++.
    Thanks

    No you can't, but you can have the JNI C/C++ code call C# code. How to do that is no longer a JNI question but a C# question.

  • How to call VB dlls in java

    Hi
    I created one component in vb, where this component got 3 methods. and created dll also, when iam trying to use these dlls in java. it showing error, is there any method to call the vb dlls in java(native method), if s pls help me to solve these problem.

    hi, all
    I writed a vb dll, It have three publice sub and one preporty,
    I use html <object> attribute to declare this dll and call its methods and perporty in html file, everything is ok.the source code as following:
    <body>
    <OBJECT declare id="repExport" classid="clsid:0487D845-0DAD-46D0-9559-FADEC117C2B9">
    <param name="Exportfile" value="peiru">
    </OBJECT>
    <script language="vbscript">
    repExport.Exportfile="peiruyt"
    repExport.CrystalConnect()
    repExport.PassParameterRtp()
    repExport.reportexport()
    </script>
    Because i need get parameter from other web page , and i use weblogic 6.1 server, so i need change file type from html to jsp , But even if I just change the file extension from html to jsp, don't change any content in this file.
    then jsp cannot work, error message is "object don't support 'repExport.Exportfile' property", actual it don't support all three functions and a property
    Can anyone provide any help?
    thanks
    peiru

  • Possible to make a dll with java?

    I am completely new to Java. Is it possible to create a Windows style DLL with Java? I am working with one project written in VB.NET which needs to access functions in another project written in Java. Can anybody help me figure out how to do this?

    I'm not sure what you mean by what type of project. It contains numerous data analysis functions which I want to access from a VB.NET program. From what you've written, I must assume that Java cannot be used to create a DLL and my only option is to rewrite it in another language. Thank you for the info.

  • How to call the .dll use Jave

    hello,
    I will to call a .dll file in java
    which function or API can do that ?
    if someone knows , please tell me .
    thanks

    You must define "native" methods in java. The native methods allow you to call out of java into C programs (dll's on Windows, so's on unix.)
    There is a java tutorial on native methods. Look for the buzzwords JNI, which is Java Native Interface.

  • Is it possible to call BPMN process through java.

    HI All,
    Is it possible to call a BPMN process through a java. Please share your thoughts on this.
    Thanks
    Parker.

    Check this API:
    http://download.oracle.com/docs/cd/E17904_01/apirefs.1111/e10659/oracle/soa/management/facade/package-summary.html
    Check mostly the class Composite, you can access a process with it (and even its instances).

  • Fall into a trouble when calling a dll from java in linux

    Hi, experts:
    I encountered a big trouble when using JNI to call a C++-compiled DLL from java in Linux: The DLL function didn't execute immediately after the invocation, and was deferred till the end of the Java execution. But all worked well after migrating to windows. This problem made me nearly crazy. Can somebody help me? Thanks in advance.
    Linux: fedora core 8, jdk1.6.0_10,
    compile options: g++ -fPIC -Wall -c
    g++ -shared

    It looks like the OP compiled the C source file and linked it into a Windows .dll, which would explain why it worked flawlessly in Windows. (Though I must say the usage of GCC would make someone think it was compiled in Linux for Linux, GCC also exists for Windows, so I'm not sure it's a Windows .dll either...)
    @OP: Hello and welcome to the Sun Java forums! This situation requires you to make both a .dll and a .so, for Windows and Linux. You can then refer to the correct library for the operating system using System.loadLibrary("myLibrary"); without any extension.
    s
    Edited by: Looce on Nov 21, 2008 11:33 AM

  • Call a DLL with Java

    Hi,
    I have a C ANSI DLL which communicates with a JAVA applet. I use JNI.
    But this isn't the best solution :
    the host which is running the applet (Internet Explorer) must have the DLL in local and a .java.policy file in order to run the applet.
    Is there another technology which can avoid that problem ? Using no .java.policy and dll file on the host, ie put the DLL only on the server ?
    Thanks for your suggestions.

    You could certainly have your applet make calls back to the server and have the server execute the non-secure code in the DLL. This, of course, assumes that you don't actually need to run the DLL on the client itself.
    For the case where you just need to make a couple of calls into the DLL, you could implement your own socket communication. For anything more complicated, I'd recommend that you look into RMI.
    Note that it'll be a lot slower doing your DLL calls across the wire, so in this situation, you want to do as much processing on either end of the communication channel as possible, and only transfer results back and forth.
    - K

  • Calling C DLL in JAVA

    can we call a n API (C DLL) from a java application? what r the limitations? how can we do this?

    Here is what I've always done to handle this situation. Assume for this example that you have two files, Caller.java and Callee.cpp. You have code in Caller.java that needs to call a method that exists inside Callee.cpp.
    1) Rename Callee.cpp to Callee.java. Compile Callee.java (formerly Callee.cpp) using javac. Ignore any warnings you might see--they don't matter. The compiler isn't as smart as the linker.
    2) Link the two files together, using the Java linker. You may see an unresolved external warning or two, but these are always treated as warnings, as they are easily worked around. The linker will resolve linkages for you automatically. To run the linker, type from the c:\prompt, the following:
    c:\>link Caller.java Callee.java
    IMPORTANT: Be sure to press the ENTER button after typing that line (the line just above this one, that you just typed). Be sure not to type "c:\>" though. Don't worry about the quotation marks I just typed here (they look like this: "). You don't want to type them. And don't be concerned about the colon in the previous sentence either, it isn't something you should type. It looks like this: :.
    3) The linker will generate an executable program called binding.obj. You now need to run this executable program, so you can see the results. From the c:\> prompt, type the following:
    c:\>binding Caller.java Callee.java
    IMPORTANT: Be sure to press the ENTER button after typing that line (the line just above this one, that you just typed). Be sure not to type "c:\>" though. Don't worry about the quotation marks I just typed here (they look like this: "). You don't want to type them. And don't be concerned about the colon in the previous sentence either, it isn't something you should type. It looks like this: :.
    4) The generated executable will execute, and the method in Caller.java will call the method in Callee.java (formerly Callee.cpp).

  • Calling multiple DLL from Java and calling same native method

    i have two dll files named DLL_1.dll and DLL_2.dll .
    Both of them contain a native method which has a signature
    JNIEXPORT void JNICALL Java_Database_Notify
    (JNIEnv *, jclass);
    This method is common to both the DLL
    Now i load both of the DLL's using,
    System.loadLibrary("DLL_1");
    System.loadLibrary("DLL_2");
    Both of the DLL are loaded form same Java Application
    But the problem is that , whenever i try to call the Notify Method , it calls the Notify method of DLL_1 only.
    How do i call the Notify Methos of second DLL(i.e DLL_2).
    Is there any reference that i can get to all the DLL files when i load then , so that i can use that reference to invoke the Notify method of that particular DLL.

    i have two dll files named DLL_1.dll and DLL_2.dll .
    Both of them contain a native method which has a
    signature
    JNIEXPORT void JNICALL Java_Database_Notify
    (JNIEnv *, jclass);
    This method is common to both the DLL
    Now i load both of the DLL's using,
    System.loadLibrary("DLL_1");
    System.loadLibrary("DLL_2");
    Both of the DLL are loaded form same Java
    Application
    But the problem is that , whenever i try to call the
    Notify Method , it calls the Notify method of DLL_1
    only.
    How do i call the Notify Methos of second DLL(i.e
    DLL_2).
    Is there any reference that i can get to all the DLL
    files when i load then , so that i can use that
    reference to invoke the Notify method of that
    particular DLL.You need to explain exactly what you are trying to achieve.
    As per the description above it is impossible in java.
    And I didn't say JNI, I said java.
    Your above statement suggests that you think that you can have exactly the same java signature do two different things.
    Note again that I said java not JNI.
    A JNI method is just a tag that represents a java signature. Your description suggests that you are attempting to do it twice.
    There are three possibilities.
    1. Your explanation is incomplete.
    2. You are trying to do something that is impossible in java.
    3. You are trying to solve a problem and your description of your solution is not sufficient to determine what that is (and of course the solution is wrong.)

  • Call a DLL in background

    Hello fellows,
    Is that possible to call a DLL ActiveX using OLE Automotion, but in background? It is really important that is in background, because the calls will be through JOBs.
    Thanks a lot,
    Marcos Ferreira

    I am already further.
    I created an executable with Visual Studio and have import parameters. Now with SXPG_CALL_SYSTEM I am going to try to call the executable. I get the table EXEC_PROTOCOL back where the output of the executable is called.
    I know have to found out how to save the uploaded jpg to the server.

  • Call a Dll

    Is it possible to call a Dll at Runtime?

    Not from Flash. You could use a 'wrapper' app - Director can
    call a DLL, not
    sure about the others, like Zinc. You'll need to do some
    digging...
    Dave -
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • Calling a third Party dll from java using JNI

    Hi
    I want an immediate help from u all.
    I have athird party c dll with .h and .lib file
    I wont be able to cahnge any thing in those files.
    I want to call the functions of that from my Java code.
    Ist possible to call the dll without writing any c or c++ wrapper over it?if yes , how to do it?

    Hi,
    You may use a generic wrapper like JNative.
    Commercial wappers also exists.
    --Marc (http://jnative.sf.net)                                                                                                                                                                                                                               

Maybe you are looking for

  • How to create a manufactured component in a production order network

    Hi, I've been facing problems to create a subnetwork in a production order. I want to add a manufactured component at a production order network. Does anyone know any BAPI or FM to solve this problem? Thks,

  • Quicktime mpeg2 plug in

    I have an imac 24 and snow leopard is installed, on aplles web site it has a plug-in that allow mpeg2 to be played on quicktime, downloaded it and for a while it worked great. now it will play the mpeg2 but I have not sound. I have video but the volu

  • Restore help needed please.

    I need help. I got a new iPhone today and I went to iTunes, pressed restore, because I didn't know what else to do. And now because it was logged in under my boyfriends apple ID my iPhone is my boyfriends iPhone too. How do I turn it back to mine!? I

  • Why can't I select my wi-fi

    When I go to settings I cannot select wi-fi. I touch the icon and nothing happens y is that?

  • ADF faces - Urgent! - problem in display row-detail

    Hi all, I've maka a post yesterday but I still can't resolve the problem. I have a page that display data from the database. The amount of data is variable, so I configure the iterator as follow: <methodIterator id="XLB_find_user_OLIter" Binds="XLB_f