JDIC Library Setup Problems

JDIC

I am not able to get jdic setup properly and I continue to get jdic library not found in java.library.path on startup.

At first I realized I only had Firefox installed (Unix machine). So I installed Mozilla since Firefox cannot be embedded.

I added the jdic.jar to my /etc/environment CLASSPATH variable. (ubuntu) I then added to the CLASSPATH statements in idea.sh.

No matter what I do I always get the following stack trace.

-Dusty

Stack Trace
-


no jdic in java.library.path
java.lang.UnsatisfiedLinkError: no jdic in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:992)
at org.jdesktop.jdic.browser.internal.WebBrowserUtil$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at org.jdesktop.jdic.browser.internal.WebBrowserUtil.loadLibrary(Unknown Source)
at org.jdesktop.jdic.browser.WebBrowser.(Unknown Source) at out.put.javadoc.plugin.q.(Unknown Source) at out.put.javadoc.plugin.A.]]>(Unknown Source)
at out.put.javadoc.plugin.A.a(Unknown Source)
at out.put.javadoc.plugin.JDToolWindowPlugin.initComponent(Unknown Source)
at com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:269)
at com.intellij.openapi.components.impl.ComponentManagerImpl.access$000(ComponentManagerImpl.java:83)
at com.intellij.openapi.components.impl.ComponentManagerImpl$MyComponentAdapterFactory$1.getComponentInstance(ComponentManagerImpl.java:0)
at org.picocontainer.defaults.DecoratingComponentAdapter.getComponentInstance(DecoratingComponentAdapter.java:60)
at org.picocontainer.defaults.CachingComponentAdapter.getComponentInstance(CachingComponentAdapter.java:58)
at org.picocontainer.defaults.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:395)
at org.picocontainer.defaults.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:375)
at org.picocontainer.alternatives.AbstractDelegatingMutablePicoContainer.getComponentInstance(AbstractDelegatingMutablePicoContainer.java:75)
at com.intellij.openapi.components.impl.ComponentManagerImpl.instantiateComponent(ComponentManagerImpl.java:198)
at com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:75)
at com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:212)
at com.intellij.openapi.components.impl.ComponentManagerImpl.initComponents(ComponentManagerImpl.java:124)
at com.intellij.openapi.project.impl.BaseFileConfigurable.initComponents(BaseFileConfigurable.java:150)
at com.intellij.openapi.project.impl.BaseFileConfigurable.init(BaseFileConfigurable.java:139)
at com.intellij.openapi.project.impl.ProjectImpl.init(ProjectImpl.java:130)
at com.intellij.openapi.project.impl.ProjectManagerImpl.loadProject(ProjectManagerImpl.java:291)
at com.intellij.openapi.project.impl.ProjectManagerImpl.loadAndOpenProject(ProjectManagerImpl.java:242)
at com.intellij.ide.impl.ProjectUtil.openProject(ProjectUtil.java:26)
at com.intellij.idea.IdeaApplication.c(IdeaApplication.java:9)
at com.intellij.idea.IdeaApplication.access$400(IdeaApplication.java:56)
at com.intellij.idea.IdeaApplication$IdeStarter$2.run(IdeaApplication.java:5)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:6)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:163)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:8)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:145)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

4 comments

You need to setup java.library.path to contain executable path and reset
sys_paths static field in ClassLoader that contains pathes if you change
the property in runtime

dusty wrote:

JDIC

I am not able to get jdic setup properly and I continue to get jdic library not found in java.library.path on startup.

At first I realized I only had Firefox installed (Unix machine). So I installed Mozilla since Firefox cannot be embedded.

I added the jdic.jar to my /etc/environment CLASSPATH variable. (ubuntu) I then added to the CLASSPATH statements in idea.sh.

No matter what I do I always get the following stack trace.

-Dusty

Stack Trace
-------------------
no jdic in java.library.path
java.lang.UnsatisfiedLinkError: no jdic in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:992)
at org.jdesktop.jdic.browser.internal.WebBrowserUtil$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at org.jdesktop.jdic.browser.internal.WebBrowserUtil.loadLibrary(Unknown Source)
at org.jdesktop.jdic.browser.WebBrowser.<clinit>(Unknown Source)
at out.put.javadoc.plugin.q.<init>(Unknown Source)
at out.put.javadoc.plugin.A.<init>(Unknown Source)
at out.put.javadoc.plugin.A.a(Unknown Source)
at out.put.javadoc.plugin.JDToolWindowPlugin.initComponent(Unknown Source)
at com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:269)
at com.intellij.openapi.components.impl.ComponentManagerImpl.access$000(ComponentManagerImpl.java:83)
at com.intellij.openapi.components.impl.ComponentManagerImpl$MyComponentAdapterFactory$1.getComponentInstance(ComponentManagerImpl.java:0)
at org.picocontainer.defaults.DecoratingComponentAdapter.getComponentInstance(DecoratingComponentAdapter.java:60)
at org.picocontainer.defaults.CachingComponentAdapter.getComponentInstance(CachingComponentAdapter.java:58)
at org.picocontainer.defaults.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:395)
at org.picocontainer.defaults.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:375)
at org.picocontainer.alternatives.AbstractDelegatingMutablePicoContainer.getComponentInstance(AbstractDelegatingMutablePicoContainer.java:75)
at com.intellij.openapi.components.impl.ComponentManagerImpl.instantiateComponent(ComponentManagerImpl.java:198)
at com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:75)
at com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:212)
at com.intellij.openapi.components.impl.ComponentManagerImpl.initComponents(ComponentManagerImpl.java:124)
at com.intellij.openapi.project.impl.BaseFileConfigurable.initComponents(BaseFileConfigurable.java:150)
at com.intellij.openapi.project.impl.BaseFileConfigurable.init(BaseFileConfigurable.java:139)
at com.intellij.openapi.project.impl.ProjectImpl.init(ProjectImpl.java:130)
at com.intellij.openapi.project.impl.ProjectManagerImpl.loadProject(ProjectManagerImpl.java:291)
at com.intellij.openapi.project.impl.ProjectManagerImpl.loadAndOpenProject(ProjectManagerImpl.java:242)
at com.intellij.ide.impl.ProjectUtil.openProject(ProjectUtil.java:26)
at com.intellij.idea.IdeaApplication.c(IdeaApplication.java:9)
at com.intellij.idea.IdeaApplication.access$400(IdeaApplication.java:56)
at com.intellij.idea.IdeaApplication$IdeStarter$2.run(IdeaApplication.java:5)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:6)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:163)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:8)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:145)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

Pardon my ignorance, but where and how are these settings modified? Is this a required part of the IDEA 6 install?

Sorry.

-D

0

Thank you. I added the path to the executables to the LD_LIBRARY_PATH variable workings in idea.sh.

It now works with no exception. What jdic components are used? An embedded browser for viewing javadocs?

0

you probably using some plugin that uses JDIC

dusty wrote:

Thank you. I added the path to the executables to the LD_LIBRARY_PATH variable workings in idea.sh.

It now works with no exception. What jdic components are used? An embedded browser for viewing javadocs?



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

Please sign in to leave a comment.