Results 1 to 3 of 3
  1. #1
    imroz alam is offline Member
    Join Date
    Apr 2017
    Posts
    4
    Rep Power
    0

    Question Unable to register Jacob.dll file on my window 7 64 bit

    Hi,

    What I have
    a) My system configuration
    i) window 7 64 bit and jdk 1.8 32 bit
    ii) my native dll file(VertexFXBOAPI10.dll) is 32 bit

    I have follow these link Using Dll Library In Java Application Using Jacob - Java Tutorials | Dream.In.Code

    I have added two file : Jacob.Jar and Jacob.Dll
    Imported the Jacob.jar
    My following Code:
    package jacobtest;
    import com.jacob.activeX.*;
    import com.jacob.com.*;
    public class ReadDLL {

    public static void main(String[] args){
    //Loading the library:
    ActiveXComponent comp=new ActiveXComponent("VertexFxBOAPI10.CVertexBOAPI");
    System.out.println("The Library been loaded, and an activeX component been created");

    }
    }
    error:
    Exception in thread "main" com.jacob.com.ComFailException: Can't get object clsid from progid
    at com.jacob.com.Dispatch.createInstance(Native Method)
    at com.jacob.com.Dispatch.<init>(Dispatch.java:186)
    at com.jacob.activeX.ActiveXComponent.<init>(ActiveXC omponent.java:42)
    at jacobtest.ReadDLL.main(ReadDLL.java:9)

    What I want
    a) I want to load Native dll( ) and to access their classes and method.



    Thanks

  2. #2
    gozzy is offline Member
    Join Date
    Jan 2017
    Posts
    46
    Rep Power
    0

    Default Re: Unable to register Jacob.dll file on my window 7 64 bit

    Unable to register Jacob.dll file on my window 7 64 bit
    Your title is left uncommented on in your text. Why "unable"? Did you try?

    btw, you will probably find JNA a more direct way of interacting with native code and it won't require 3rd party libraries

  3. #3
    imroz alam is offline Member
    Join Date
    Apr 2017
    Posts
    4
    Rep Power
    0

    Default Re: Unable to register Jacob.dll file on my window 7 64 bit

    Hi,

    I have used jna library, but how to access classes and their method from my existing dll.
    My dll is vb.net native dll file.
    You can check this link for more about dll VertexFX Backoffice API (ActiveX DLL) Help Index - Help Desk
    My source code is following:-
    a) BrowseControl.java
    package com.dll.lib;
    import com.sun.jna.Library;
    import com.sun.jna.Native;
    public interface BrowseControl extends Library {
    BrowseControl instance=(BrowseControl)Native.loadLibrary("Vertex FXBOAPI10.5.9",BrowseControl.class);
    }

    b) MainTest.java

    package com.dll.main;
    import com.dll.lib.BrowseControl;

    public class MainTest {

    public static void main(String[] args) {

    BrowseControl control=BrowseControl.instance;
    System.out.println("Brwoser: "+control.getClass());

    }

    }

    This code is working, but how to access classes and method.

    Thanks

Similar Threads

  1. Concordance Program - input file doesn't register
    By KilianTE in forum New To Java
    Replies: 0
    Last Post: 03-13-2014, 01:06 AM
  2. Usage of JACOB in java.
    By jerry jessie in forum New To Java
    Replies: 3
    Last Post: 02-03-2012, 04:45 AM
  3. JACOB error, putObject failed
    By MaJellin in forum New To Java
    Replies: 0
    Last Post: 03-05-2010, 08:17 AM
  4. Unable to access velocity.properties file from jar file
    By mjwoodford in forum New To Java
    Replies: 0
    Last Post: 10-09-2009, 01:46 PM
  5. How to use Jacob component in a Java Applet?
    By ollyworks in forum Java Applets
    Replies: 1
    Last Post: 09-09-2009, 04:07 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •