0

Is it possible to run a Excel macro using java, placed in a server which does not have Microsoft Excel installed?.

I have written a code using Java and Jacob - Java Com Bridge, which works fine in machines which has Excel installed.

NewUser
  • 1
  • 2
  • Did you try running the same java code in the server? If you tried that, you would have find the answer by your self. – seenukarthi Oct 09 '14 at 05:18
  • I tried running it in server, got the error 'Can't get object clsid from progid'. Then modified the code to use clsid for Excel, now i get the error 'com.jacob.com.ComFailException: Can't find moniker'. – NewUser Oct 09 '14 at 06:01

2 Answers2

0

As you tried, the answer is no. No excel means no Java Com Bridge.

flyingfishcattle
  • 1,817
  • 3
  • 14
  • 25
0

You have to understand first that purpose of JACOB is to connect java with windows component who exposes their operations via COM interface. That means you can only operate on those applications which are installed in the server and have implemented COM interface. For instance : MS Excel, MS Word, Adobe etc