K
K
KaizerSX2020-02-05 14:34:32
Java
KaizerSX, 2020-02-05 14:34:32

How to fix java.lang.RuntimeException: Could not determine a temporary executable director error?

Good afternoon!

Please clarify what could be causing this error? On the Internet, they write that a possible problem may be related to the TEMP environment variable. I looked at the TEMP environment variable is set. What else could be the problem?

java.lang.RuntimeException: Could not determine a temporary executable directory
  at com.jogamp.common.util.IOUtil.getTempDir(IOUtil.java:1391)
  at com.jogamp.common.util.cache.TempFileCache.<clinit>(TempFileCache.java:80)
  at com.jogamp.common.util.cache.TempJarCache.initSingleton(TempJarCache.java:89)
  at com.jogamp.common.os.Platform$1.run(Platform.java:201)
  at java.security.AccessController.doPrivileged(Native Method)
  at com.jogamp.common.os.Platform.<clinit>(Platform.java:179)
  at javax.media.opengl.GLProfile.<clinit>(GLProfile.java:120)
  at processing.opengl.PJOGL.initSurface(PJOGL.java:257)
  at processing.opengl.PGraphicsOpenGL.initPrimary(PGraphicsOpenGL.java:6340)
  at processing.opengl.PGraphicsOpenGL.requestDraw(PGraphicsOpenGL.java:1658)
  at processing.core.PApplet.run(PApplet.java:2260)
  at java.lang.Thread.run(Unknown Source)
Exception in thread "Animation Thread" java.lang.UnsatisfiedLinkError: Can't load library: C:\Users\User1\eclipse-workspaceJD\UCSDUnfoldingMaps\build\gluegen-rt.dll
  at java.lang.ClassLoader.loadLibrary(Unknown Source)
  at java.lang.Runtime.load0(Unknown Source)
  at java.lang.System.load(Unknown Source)
  at com.jogamp.common.jvm.JNILibLoaderBase.loadLibraryInternal(JNILibLoaderBase.java:596)
  at com.jogamp.common.jvm.JNILibLoaderBase.access$000(JNILibLoaderBase.java:64)
  at com.jogamp.common.jvm.JNILibLoaderBase$DefaultAction.loadLibrary(JNILibLoaderBase.java:96)
  at com.jogamp.common.jvm.JNILibLoaderBase.loadLibrary(JNILibLoaderBase.java:459)
  at com.jogamp.common.os.DynamicLibraryBundle$GlueJNILibLoader.loadLibrary(DynamicLibraryBundle.java:388)
  at com.jogamp.common.os.Platform$1.run(Platform.java:209)
  at java.security.AccessController.doPrivileged(Native Method)
  at com.jogamp.common.os.Platform.<clinit>(Platform.java:179)
  at javax.media.opengl.GLProfile.<clinit>(GLProfile.java:120)
  at processing.opengl.PJOGL.initSurface(PJOGL.java:257)
  at processing.opengl.PGraphicsOpenGL.initPrimary(PGraphicsOpenGL.java:6340)
  at processing.opengl.PGraphicsOpenGL.requestDraw(PGraphicsOpenGL.java:1658)
  at processing.core.PApplet.run(PApplet.java:2260)
  at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
  at processing.opengl.PJOGL.swapBuffers(PJOGL.java:727)
  at processing.opengl.PGraphicsOpenGL.dispose(PGraphicsOpenGL.java:634)
  at processing.core.PApplet.dispose(PApplet.java:4149)
  at processing.core.PApplet.destroy(PApplet.java:1211)
  at sun.applet.AppletPanel.run(Unknown Source)
  at java.lang.Thread.run(Unknown Source)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Shvyrev, 2020-02-05
@CellycoMobiles

The error is related to the context in which you are testing. It's hard to tell from stackoverflow.
I recommend adding the Windows version, the JDK version, the pom in the gist, the Eclipse version.... Maybe then it will be clearer.
This is unlikely to be the solution, but it is worth taking a look at
C:\Users\User1\eclipse-workspaceJD\UCSDUnfoldingMaps\build\gluegen-rt.dll. Accessibility, availability .... All that is possible.
In early JDK 14 Prereleases, building native applications on Windows required intervention. I had to download the windows libs from the Internet and put them on. But harmfully it takes place.
Try to build without environment (mvn/gradle, javac/p). Maybe it's the rights of Eclipse.

K
KaizerSX, 2020-02-05
@KaizerSX

I tried it on my home computer with absolutely the same algorithm of actions and it worked. I noticed that the proxy settings are different. At home, no settings are registered, unlike the working machine. Something with the rights and restrictions is connected apparently and probably most likely with the power of the video card. On a home GTX 970, but on a worker an integrated card is likely (the machine is not for development).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question