Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows 32-Bit Support #17

Closed
sparsick opened this issue May 18, 2017 · 2 comments
Closed

Windows 32-Bit Support #17

sparsick opened this issue May 18, 2017 · 2 comments

Comments

@sparsick
Copy link
Contributor

Running graphviz-java on a windows 32 bit machine throws following exception

guru.nidi.graphviz.engine.GraphvizException: Could not start graphviz engine
	at guru.nidi.graphviz.engine.AbstractGraphvizEngine.execute(AbstractGraphvizEngine.java:42)
	at guru.nidi.graphviz.engine.Graphviz.execute(Graphviz.java:118)
	at guru.nidi.graphviz.engine.Renderer.toString(Renderer.java:40)
	at guru.nidi.graphviz.engine.Renderer.toFile(Renderer.java:49)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
Caused by: java.lang.IllegalStateException: J2V8 native library not loaded
	at com.eclipsesource.v8.V8.checkNativeLibraryLoaded(V8.java:195)
	at com.eclipsesource.v8.V8.createV8Runtime(V8.java:149)
	at com.eclipsesource.v8.V8.createV8Runtime(V8.java:110)
	at guru.nidi.graphviz.engine.GraphvizV8Engine.doInit(GraphvizV8Engine.java:50)
	at guru.nidi.graphviz.engine.AbstractGraphvizEngine.init(AbstractGraphvizEngine.java:56)
	at guru.nidi.graphviz.engine.AbstractGraphvizEngine.<init>(AbstractGraphvizEngine.java:32)
	at guru.nidi.graphviz.engine.GraphvizV8Engine.<init>(GraphvizV8Engine.java:39)
	at guru.nidi.graphviz.engine.Graphviz.initEngine(Graphviz.java:50)
	at guru.nidi.graphviz.engine.Graphviz.render(Graphviz.java:111)
	... 29 more
Caused by: java.lang.UnsatisfiedLinkError: Could not load J2V8 library. Reasons: 
	no j2v8_win32_x86 in java.library.path

	at com.eclipsesource.v8.LibraryLoader.loadLibrary(LibraryLoader.java:75)
	at com.eclipsesource.v8.V8.load(V8.java:71)
	at com.eclipsesource.v8.V8.createV8Runtime(V8.java:145)
	... 38 more

It seems that the 32 bit lib of J2V8 isn't in the classpath.

nidi3 added a commit that referenced this issue May 19, 2017
@nidi3
Copy link
Owner

nidi3 commented May 19, 2017

Thanks for using a 32bit windows ;)

@nidi3 nidi3 closed this as completed May 19, 2017
@sparsick
Copy link
Contributor Author

Trust me, it wasn't my machine ;)

syoon2 referenced this issue in Summer2023SHY/graphviz-java May 18, 2023
…s-io-2.12.0

Bump commons-io from 2.7 to 2.12.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants