Exception in thread “AWT-EventQueue-1” java.lang.UnsatisfiedLinkError: no jcom in java.library.path

StackOverflow https://stackoverflow.com/questions/10929669

  •  13-06-2021
  •  | 
  •  

Question

I am running java desktop application which is coded in java 1.4 version. i am using eclipe as my ide and trying to run that application in java 1.6 version in that project they use jcom jar file to export data to excel sheet. while i trying to click on excel button in desktop application . That functionality is not working and throwing below exception.but i build path properly in my project explorer jcom jar is present in referenced libraries. can any one plz help me to sort out this exception. thanks in advance.

Exception in thread "AWT-EventQueue-1" java.lang.UnsatisfiedLinkError: no jcom in java.library.path at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) at jcom.IDispatch.(IDispatch.java:287) at .StockManager.BusinessSheets.exportToExcel(BusinessSheets.java:2302) at .StockManager.BusinessSheets$BusinessSheetPanel$3.mouseClicked(BusinessSheets.java:439) at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$000(Unknown Source) at java.awt.EventQueue$1.run(Unknown Source) at java.awt.EventQueue$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source) at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue$2.run(Unknown Source) at java.awt.EventQueue$2.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at .StockManager.WaitCursorEventQueue.dispatchEvent(WaitCursorEventQueue.java:23) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)

Was it helpful?

Solution

case 1: jcom.dll is not in path.

solution: put the jcom.dll in C:/Windows/System32

case 2: jcom.dll is used by someother process

solution: try to find that process and kill it.

OTHER TIPS

The java.library.path is using for JNI shared libraries such as DLLs or .so files. It appears your jcom.jar (which you can see is being loaded on the third line of the stack so it finds the JAR) needs a jcom.dll. On windows, this has to be in your PATH or java.library.path

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top