How to use a VB dll file in java

hi,
i am working on college project,In this output of calculation is not matching with college site .So any one can tell "how to use or combine a VB 'dll' file in java?".so that i can use VB 'dll' file in java to get right Output.
If possible write code or send it to "[email protected]"
Thanks
Ravi kapani

Did you try Google? And no, there is no native support for accessing .dll files from Java. That said, take a look at JNI.

Similar Messages

  • How to use function in dll file

    hi
    i am new to jni. i want use the function declared in the dll function. i am also having the .h header file.
    can anybody please help me out with this?
    thank you
    suhas

    What kind of function? Function with name created
    with javah generated name or arbitrary function? In
    first case load library and just use "function()", in
    second case you should call something like "rundll"
    under Windows or create wrapper to call from Java and
    redirect call to DLL function itself.Thanks for the reply Michel,
    Actually I have connected RFID 6500 module to PC through com port. and want send request for which module gives response.
    The commands for the module are declared in FeCom.dll and also in FeCom.h. The definitions of the functions are given in FeComDef.h.
    Now I get problem while accessing function in these files.
    did you get the problem?
    waiting for reply
    Thank you,
    suhas

  • How can I using functions implicit in dll file in java code ?

    How can I using functions implicit in dll file in java code ?
    I'm developing a program that interfacing with fingerprint hardware.
    I have the finger print already, and I have to the SDK that have all functions for managing this fingerprint.
    These SDK functions are represented in dll files.
    I want to know how can I use these functions in java code .
    I looked on this link of sun forums :
    http://forum.java.sun.com/thread.jspa?threadID=305171&messageID=1215613
    but I don't Understand the meaning of native code.
    Thanks for help.

    please please please please please please please please help me:
    After reading a lot of articles, tutorials, and overviews about JNI (Java Native Interface)
    I found that these steps
    1.     Develop the Java code
    2.     Compile the Java code to a class file
    3.     Generate the header file
    4.     Implement the native method
    5.     Create the shared library or DLL
    6.     Run the Java program
    Is the common steps in JNI development
    The most powerful link was
    http://java.sun.com/docs/books/jni/html/start.html
    and
    http://www.netbeans.org/kb/55/beginning-jni-part2.html
    and the pdf oh this link
    http://www.ibm.com/developerworks/edu/j-dw-javajni-i.html requiring IBM registration to download it.
    But I have already the DLL, and want to the stright forward way to use its functions by java code only.
    I don not to write any C++ code .
    Is this possible???????????????????????????????
    The name of these dll is �zkemsdk.dll�
    It developed by ZKSOFTWARE company for managing a finger print �NP1500A�of
    http://www.napcogulfsecurity.com/finger_print.asp
    thanks for help

  • How to use a C# dll with JNI

    After a ton of issues, I finally got this working properly. I've come across a lot of forum posts about the various problems and VERY few answers so I thought I would post my solution here.
    To do this, you need to create a managed C++ layer in between C# and java. The JNI functions in C++ dll can make calls to the C# dll directly, and your java program can make calls directly to the native JNI functions. Some important notes on using C# classes in C++ are:
    -gcroot<CSClass ^> should be used on any objects that are instances of some C# class.
    -the symbol ^ should be used with all C# references (its the symbol for references)
    -gcnew should be used to allocate C# objects
    -in visual studio, add the C# dll as a reference rather than using #using <CsDLL.dll>
    -do not use #using <CsDLL.dll>
    The next issue is loading the libraries. By adding the folder your C++ dll is located in to the Djava.library.path VM argument, you can load your C++ library with System.LoadLibrary("Cppdll.dll"). You DO NOT need to load the C# dll in your java program. In fact, it will ignore you if you try. The problem with loading this dll is with how the CLR searches for referenced assemblies. The CLR First searches the DEVPATH environment variable (if the machine.config file has developer mode set to on), then it searches the GAC, then it searches the codebases, then it searchs the current executable's directory along with a list of definable subdirectories (probes).
    DEVPATH is a decent option, but it requires modifying the machine.config file to be in developer mode. Once that is done, it acts just like the PATH environment variable.
    If your C# dlls are strongly named, I would recommend adding them to the GAC or using codebases. However I have not done this and am not sure how.

    Hi,
    i have to use a c# dll in my java program .by following this link http://www.codeproject.com/KB/cross-platform/javacsharp.aspx i done that.but it is working for only one c# program.if i am trying to use a dll it is throwing error
    # An unexpected error has been detected by Java Runtime Environment:
    # Internal Error (0xe0434f4d), pid=3988, tid=3704
    # Java VM: Java HotSpot(TM) Client VM (11.0-b16 mixed mode, sharing windows-x86)
    # Problematic frame:
    # C [kernel32.dll+0x442eb]
    # An error report file with more information is saved as:
    # D:\Work\EclipseWorkspace\HelloInflux\hs_err_pid3988.log
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    # The crash happened outside the Java Virtual Machine in native code.
    # See problematic frame for where to report the bug.
    Please help me out. i want a few steps to invoke a c# dll by using jni

  • How can i import dll files in java project in eclipse?

    Hi All,
    How can i import or link dll files in java project in eclipse?....
    dll files contains
    import com.ms.com.ComLib;
    import com.ms.com.Variant;
    import com.ms.com.ComFailException;
    import com.ms.wfc.data.AdoException;
    import com.ms.wfc.data.AdoEnums;
    Any idea of this please tell me.....
    I am using eclipse 3.4 and JRE 1.4
    Is this possible?
    Please tell me!!!!!!!!!!!!!
    Voddapally

    iMovie cannot edit mpg files, unles they come directly from a supported camera.
    I would suggest that you use a free third party app to convert it.
    Get MPEG Streamclip from Squared 5, which is free.
    Drag you mpg clip into MPEG Streamclip.
    Then, FILE/EXPORT USING QUICKTIME
    Choose Apple Intermediate Codec, and save it where you can find it. You should be able to import this file into iMovie, using the FILE/IMPORT/MOVIE command.
    Note: If your file is an MPEG2 clip, you may need to purchase the Apple QuickTime MPEG2 Playback Component from Apple. MPEG Streamclip will tell you if you need this. Don't buy it unless you have to. It costs about $20. You just have to install the component. MPEG Streamclip will use it in the background.

  • How can we make a .DLL file..???

    Hi,
    can any one tell me how can we make a .dll file..
    can we insert any font file (.ttf), image, icons in in the dll file to call them progrmatically in forms 6i...and use them onu where
    like i am currently using d2kwut60.dll file to call mouse cursors that loaded into it..
    I would appreciate any response to this issue..??
    regards,

    Ok,
    Let me take this example.
    Supposing A vendor with 3 AP open items, B vendor with 2 AP open items.
    When making a payment proposal, SAP shows only 2 lines, namely, collected by vendor code.
    Looking at DME file, however, it shows 5 lines which means all individual open items.
    What we want to make is 2 lines in DME file, which means grouping invoices by vendor in a DME file.
    Hope it makse sense.

  • How to use javap with jar files ?

    how to use javap with jar files ?
    thanks

    As long as the jar is on the class path, your gold. So,
    javap -classpath myjar.jar mypackage.MyClass
    Chuck

  • How to convert oracle form fmb file to java swing file using Jdeveloper

    how to convert oracle form fmb file to java swing file using Jdeveloper.Please explain with detailes steps if possible or please give a link where it is available
    thanks
    Message was edited by:
    user591884

    There is no automatic way to do this in JDeveloper. I know there are some Oracle Partners offering forms to java conversion, I don't know how much of their tools are automated and done with JDeveloper. With JDeveloper+ADF you basically rewriting the Forms application from scratch (and using ADF is helpful during this process).

  • How to use Third Party DLL in Adobe Illustrator Plug In

    Hi Everyone,
    I want to design plug-in for Adobe illustrator CS6(64 bit). As first step I am referring sample plug ins from ../SDK/SampleCode. I am not getting how to use third party DLL in plug in.
    Please let me know how to refer C# DLL in illustrator plug in.
    Thanks in advance.

    There's no C# API for the Illustrator SDK, so your plugin must be C++ at the very least. That said, you can probably write a bridge if you need to call out to a C# library/DLL.

  • How to use a Windows Help File (.hlp) - URGENT

    Hello!
    Can anybody tell me how to use a windows help file (.hlp) in my Java application? Is there any possiblity to reference a specific topic (by Help Context-ID)?
    Thanks in advance,
    Phil

    try calling the Runtime.exec() method
    pass the paramter String as <filename>.hlp
    i donno about the context
    regards
    rohan

  • Use .dll files in Java

    hi,
    i have a dll file thats present some function. i called DLL file from java . i got the some errors such as
    Exception in thread "main" java.lang.UnsatisfiedLinkError: Error looking up function 'USBIsConnected': The specified procedure could not be found.
    but I hope with in that DLL the function present. here i have used java 1.6 version . kindly give the ideas

    You need to have a good look at the JNI documentation.
    It isn't nearly as simple as you appear to think.

  • Packaging dll files in java application

    Hi all,
    I am working on an application where I use some dll files from my java application. Now I would like to package the application so that end users can easily install and use them. the Java application is currently packaged as a jar file. How to i package the dll files? Where should I copy these files to on a target system.
    I tried packaging my application and installing it. But I get the following error: "Exception in thread "main" java.lang.UnsatisfiedLinkError". How do I resolve this error.
    Thanks for advance,
    Abdel

    Make sure that the dll files is in the library path.
    VM option example:
    -Djava.library.path=.\dll

  • How I can create a XML file from java Aplication

    How I can create a XML file from java Aplication
    whith have a the following structure
    <users>
    <user>
    <login>anyName</login>     
    <password>xxxx</password>
    </user>
    </users>
    the password label must be encripted
    accept any suggestion

    Let us assume you have all the data from the jsp form in an java bean object..
    Now you want a xml file. This can be acheived in 2 ways
    1. Write it into a file using java.io classes. Say you have a class with name
    write("<name>"+obj.getName+</name>);
    bingo you have a flat file with the xml
    2. Use data binding to do the trick
    will recommend JiBx and Castor for the 2nd option
    Regards,
    Rajagopal

  • How to read a text/html file in java regardless of its encoding?

    Hi All,
    How to read a text/html file in java regardless of its encoding?
    1. Is there any way to identify that a file (read using FileInputStream/or any other means with java.io package) has been saved with which type of encoding i.e. whether the file is using ANSI encoding or Unicode encoding or other?
    2. Is there any standard way to read an encoded file (i.e. files having UTF-16 format for Asian locales character support) and un-encoded file (i.e. files having ordinary ANSI format) correctly without knowing the user input?
    The problem is that while creating an instance of 'InputStreamReader' (ISR) we can pass the encoding type used (otherwise it takes the system's default encoding type), and the ISR expects the file to be in the same encoding format otherwise it reads it as some junk. But we don't know which file the user is going to pass whether it is Unicode (for Asian locales file should be in Unicode) with or ANSI coded (for non-Asian / English locales user generally uses ANSI encoding).
    Regards,
    Sam

    1. There is no reliable way of guessing the encoding of a file without that information. Thats why XML for example has very strict rules wrt. it's encoding (short form: use UTF-8 or UTF-16, if you use anything else, you'll have to specify it)
    2. you might be able to make an educated guess if the possible range of encodings is limited, but it will probably never be 100% certain
    3. The HTML file might have a header entry "<meta http-equiv..." that tells you about it's encoding. You could try to read the start of the file and see if you find that, then if you found it re-read the entire file.
    regards

  • Accessing DLL files from Java

    I have a problem with Java, and the problem is that I'm trying to call a DLL file declared by C++ only but without a support for Java programs, is what I'm aiming for going to be available by using the rundll32.exe file.
    Note: I'm trying to use the (skydll.dll) file for controling skystar2 DVB card.
    Message was edited by:
    JZoro

    You cannot directly call a DLL from Java unless the DLL exposes entry points that are compatible with the JNI calling conventions.
    For example a Java class calling a native function like below:
    class Arguments
       private native void setArgs (String[] javaArgs);
       public static void main (String args[])
          Arguments A = new Arguments();
          newArgs[] = A.setArgs(args);
       static
          System.loadLibrary("MyArgs");
    }Needs a DLL entry point with the following signature:
    JNIEXPORT void JNICALL
    Java_Arguments_setArgs (JNIEnv *jenv, jobject job, jobjectArray oarr) {Notice that the first parameter of the method is of type JNIEnv and the second can be either a reference to a class or Java object instance.
    Jacques Gonzalez
    J4SOFT

Maybe you are looking for

  • Need help in writing an update statement

    Hi, my requirement is as follows.. I have a simple table with just three fields in it Field_1 Field_2 Field_3 A 1 2 A 0 5 A 2 1 A 3 4 B 1 3 C 2 3 given a value of field_1 i need to select a row that has min(field_2) in this case the 2nd row from the

  • EFIstub, kernel command line parameters

    Hello, I read this post and this post, so I'd like to know about the kernel option to load the command line from a file, rather than write it direclty to the NVRAM, the so-called linux.conf, that should reside in the same kernel path. Is there with t

  • Shared Blackboard!! HELP!!

    Hi I have to integrate a shared blackboard module in my java application, anyone knows about it? Are there any shared blackboard implement for Java made? Thanks

  • Install Flash Player in IE?

    My Flash Player runs in FireFox fine, but not in IE on the same laptop. Do I need to install the Flash Player in IE, or should IE pick up Flash Player by itself?

  • Fickle Jpeg images; why will some not open?

    This is a strange experience which remains unresolved. I have received reports that some of my jpeg images, usually derived from tiffs or raw files, cannot be opened when delivered. Many of my tiffs start life as original film scans, whereas the rema