Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7787941
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T20:49:58+00:00 2026-06-01T20:49:58+00:00

I have a java web-application which uses the jacob library (running both in 32bit

  • 0

I have a java web-application which uses the jacob library (running both in 32bit and in 64bit) to create/open word files. It correctly runs on my machine (32bit), it means that the word application is launched and the word file is opened.
The problem arise when the java project is loaded on the server machine (64bit): the word application will be launched (I see “WINWORD.EXE * 32” on Task Manager window), but the file is not opened.

I don’t understand what am I missing.

May you help me?
Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T20:49:59+00:00Added an answer on June 1, 2026 at 8:49 pm

    I’d strongly suspect one of the following things is happening:

    1. Security Violation
    2. Unsatisfied Link Error
    3. Word is not installed on the server
    4. Some other classloader error (edit)

    I tried with a simple jsp, and invoked the LibraryLoader directly within a try-catch block:

     try {
       LibraryLoader.loadJacobLibrary();
       ActiveXComponent oWord = new ActiveXComponent("Word.Application");
       oWord.setProperty("Visible", new Variant(true));
     } catch (Throwable th) {
       th.printStackTrace(new java.io.PrintWriter(out));
     }
    

    and hit on a failure to initialize the JacobObject class – caused because of security violation from the static debug initializer: "true".equalsIgnoreCase(System.getProperty("com.jacob.debug"));. Once I replaced that with a simple assignment to true, and replaced it in the jacob.jar, I ended up with a: java.lang.UnsatisfiedLinkError: no jacob-1.16-x64 in java.library.path

    It’s at this point things get hairy. You will probably have to replace the LibraryLoader code that replaced the method loadJacobLibrary with something like:

    public static void loadJacobLibrary() {
      System.load("C:/<path to .dll as known on the server>/" + getPreferredDLLName() + ".dll");
    }
    

    Which then invoked the Word.Application.

    edit For the some other classloader error, the underlying issue is that you can only load one instance of a .dll within the server – This refers to using tomcat, but the issue is similar with all other servlet containers – you need to load the .dll only once, and in order to ensure that the code is available across all the servlets, it needs to be loaded into a classloader that doesn’t get disturbed by reloading the web application. If that happens then you will become unable to make use of the .dll until the server application is reloaded.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a java web application which uses spring webflow as framework. I have
I have a web application which uses GWT 2.2 and Java 1.5 and is
I have a web application which runs on MySQL, and uses Java, Struts2 and
I have a web application which uses Ajax for several tasks. It has Java
I have a Java-JSF Web Application on GlassFish, in which I want to use
Hi I have a page in my java/jsp based web application which shows list
For our Kunagi Java web application we have a signed kunagi.jar file which contains
I have a web application (Java, Websphere, JSP) which allows co-workers to register visitors
We have a java web service application that uses log4j to do logging. An
I have java web application to which I'd like to add emailing capabilities, however,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.