Could not initialize class on dynamo.bob.TexcLibrary AND Unable to load library texc_shared : the specified module could not be found (DEF-2459) (SOLVED)

Hello there,… i was now facing some kind of error on my newly fresh downloaded Defold Game Engine…Whenever i tried to Build and Launch the newly created project (CTRL + B) i got the following error:

eclipse.buildId=unknown
java.version=1.8.0_05
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_PH
Command-line arguments: -os win32 -ws win32 -arch x86

Error
Thu Feb 02 12:27:08 PST 2017
Could not initialize class com.dynamo.bob.TexcLibrary

java.lang.NoClassDefFoundError: Could not initialize class com.dynamo.bob.TexcLibrary
at com.dynamo.bob.pipeline.TextureGenerator.generateFromColorAndFormat(TextureGenerator.java:174)
at com.dynamo.bob.pipeline.TextureGenerator.generate(TextureGenerator.java:343)
at com.dynamo.bob.pipeline.TextureGenerator.generate(TextureGenerator.java:86)
at com.dynamo.bob.pipeline.TextureBuilder.build(TextureBuilder.java:48)
at com.dynamo.bob.Project.runTasks(Project.java:611)
at com.dynamo.bob.Project.doBuild(Project.java:454)
at com.dynamo.bob.Project.build(Project.java:263)
at com.dynamo.cr.editor.builders.ContentBuilder.buildLocal(ContentBuilder.java:135)
at com.dynamo.cr.editor.builders.ContentBuilder.build(ContentBuilder.java:83)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:726)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:321)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:396)
at org.eclipse.core.internal.resources.Project$1.run(Project.java:618)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
at org.eclipse.core.internal.resources.Project.internalBuild(Project.java:597)
at org.eclipse.core.internal.resources.Project.build(Project.java:124)
at com.dynamo.cr.editor.handlers.LaunchHandler$1.run(LaunchHandler.java:116)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)


eclipse.buildId=unknown
java.version=1.8.0_05
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_PH
Command-line arguments: -os win32 -ws win32 -arch x86

Error
Thu Feb 02 12:27:05 PST 2017
Unable to load library ‘texc_shared’: The specified module could not be found.

java.lang.UnsatisfiedLinkError: Unable to load library ‘texc_shared’: The specified module could not be found.

at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:169)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:242)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:205)
at com.sun.jna.Native.register(Native.java:1033)
at com.dynamo.bob.TexcLibrary.<clinit>(TexcLibrary.java:20)
at com.dynamo.bob.pipeline.TextureGenerator.generateFromColorAndFormat(TextureGenerator.java:174)
at com.dynamo.bob.pipeline.TextureGenerator.generate(TextureGenerator.java:343)
at com.dynamo.bob.pipeline.TextureGenerator.generate(TextureGenerator.java:86)
at com.dynamo.bob.pipeline.TextureBuilder.build(TextureBuilder.java:48)
at com.dynamo.bob.Project.runTasks(Project.java:611)
at com.dynamo.bob.Project.doBuild(Project.java:454)
at com.dynamo.bob.Project.build(Project.java:263)
at com.dynamo.cr.editor.builders.ContentBuilder.buildLocal(ContentBuilder.java:135)
at com.dynamo.cr.editor.builders.ContentBuilder.build(ContentBuilder.java:83)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:726)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:321)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:396)
at org.eclipse.core.internal.resources.Project$1.run(Project.java:618)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
at org.eclipse.core.internal.resources.Project.internalBuild(Project.java:597)
at org.eclipse.core.internal.resources.Project.build(Project.java:124)
at com.dynamo.cr.editor.handlers.LaunchHandler$1.run(LaunchHandler.java:116)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

A couple of months ago,…i already used and build some game using this engine on this same PC…it runs normally without any errors like this…but after i downloaded an updated zip software of Defold in my dashboard,…i tried to make again some project and after i hit CTRL + B this error surprised me,…

I already search for some solution on this error on our forum but actually,…there’s no any explanation on how to fix this,…they only marked their post as SOLVED but no reported fixes…

My PC is Windows 7 Ultimate Service Pack 1
64-bit Operating System
Updated Java to the latest version(1.8.0_121)

Ouch, I’m sorry to hear that you’ve come across the same issue as some of our other users. I’ve e-mailed the entire team and asked for some support to figure this out. Did this happen when your old editor auto-updated to the latest version or was this with a fresh install of Defold?

Thanks for your quick response…i didn’t update my old defold,…i remove it on my storage and downloaded a new defold engine-zip file on my dashboard…

Hello

Could you please try to download the following editor (an older version) and see if it works? When you start the editor, make sure to press “No” when asked to update.

http://d.defold.com/archive/7ca47a7f7aa0e4809e31ab2274fd1693a1fc5a7e/stable/editor/Defold-win32.win32.x86.zip

2 Likes

Hi @Jhei_Krauzer!

I also posted a possible solution here, which involves installing microsofts vcredist.exe. Perhaps you could try that?

1 Like

Im downloading it right now,…ill update you later for the result…thanks!

1 Like

Thanks for the possible solution that you gave to me…ill try it later…but first…ill analyze and compare the other old version of engine if it have also an error or don’t have,…

1 Like

Okay,… – here’s the update,…i tried to download and run the outdated version of Defold game engine on this same PC,…and it actually works without any errors not likely the updated version now of Defold game engine…

Okay,…i finally found the solution onto this…Thanks to @Mathias_Westerdahl for giving me the right solution…all we need to do is to download a vcredist for MSVC 2013(x32 / x64) from Microsoft website…then re-run the Defold game engine…Thanks!..THis post is officially solved.

5 Likes

We’ve also created a fix for this in Defold 1.2.97

1 Like

hey guys …
i’ve faced the same issue earlier …
its pretty easy
given error - Could not initialize class com.dynamo.bob.TexcLibrary.
it could not initialize it as there was no administrator permission granted.
try closing everything (defold) and restart it and run it as a administrator
this is surely going to fix it…it worked for me …
let me know if the issue still exist.

Hi I’m having this same issue on OS X 10.11.6 Defold 1.2.102.

Hi @dbergum!

What editor do you use? Editor 1 or 2?
Do you get the problem during “Build and Launch”? Or after bundling?
Do you get the exact same error?
The reason I’m asking is that the previous problem was actually Windows related, so it might be good to collect more info :slight_smile:

1 Like

I just got same issue on OSX 10.11.6, Defold Editor 1.2.102 (Editor1). Happened on Build and Launch.

However, Got different error before happen this.
"Unable to load library ‘texc_shared’: dlopen(libtexc_shared.dylib, 9): image not found xxx.png"
That image was there, but Defold said “not found”.

Synchronized project -> restart Defold.app resolved both…so strange.

1 Like

Thanks. On Windows it seems like installing in user home folder plus Run as Administrator often solves the problem. We haven’t seen this happen on OSX until just very recently and we’re not sure why it happens. Restarting seems to help. Luckily Editor 2 isn’t affected by this problem.

3 Likes