Skip to content

Instantly share code, notes, and snippets.

@davidB
Created December 28, 2015 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidB/633dda25d83d955416f5 to your computer and use it in GitHub Desktop.
Save davidB/633dda25d83d955416f5 to your computer and use it in GitHub Desktop.
:jme3-examples:compileJava
warning: [options] bootstrap class path not set in conjunction with -source 1.6
/Users/davidb/work/oss/jmonkeyengine/jme3-examples/src/main/java/jme3test/app/TestNativeLoader.java:58: error: package net.java.games.input does not exist
net.java.games.input.ControllerEnvironment ce =
^
/Users/davidb/work/oss/jmonkeyengine/jme3-examples/src/main/java/jme3test/app/TestNativeLoader.java:59: error: package net.java.games.input does not exist
net.java.games.input.ControllerEnvironment.getDefaultEnvironment();
^
/Users/davidb/work/oss/jmonkeyengine/jme3-examples/src/main/java/jme3test/app/TestNativeLoader.java:61: error: package net.java.games.input does not exist
net.java.games.input.Controller[] c =
^
/Users/davidb/work/oss/jmonkeyengine/jme3-examples/src/main/java/jme3test/app/TestNativeLoader.java:65: error: package net.java.games.util does not exist
net.java.games.util.Version.getVersion());
^
/Users/davidb/work/oss/jmonkeyengine/jme3-examples/src/main/java/jme3test/app/TestNativeLoader.java:73: error: cannot find symbol
org.lwjgl.openal.AL.create();
^
symbol: method create()
location: class AL
/Users/davidb/work/oss/jmonkeyengine/jme3-examples/src/main/java/jme3test/app/TestNativeLoader.java:79: error: cannot find symbol
} catch (org.lwjgl.LWJGLException ex) {
^
symbol: class LWJGLException
location: package org.lwjgl
/Users/davidb/work/oss/jmonkeyengine/jme3-examples/src/main/java/jme3test/app/TestNativeLoader.java:82: error: cannot find symbol
if (org.lwjgl.openal.AL.isCreated()) {
^
symbol: method isCreated()
location: class AL
/Users/davidb/work/oss/jmonkeyengine/jme3-examples/src/main/java/jme3test/app/TestNativeLoader.java:83: error: method destroy in class AL cannot be applied to given types;
org.lwjgl.openal.AL.destroy();
^
required: ALContext
found: no arguments
reason: actual and formal argument lists differ in length
/Users/davidb/work/oss/jmonkeyengine/jme3-examples/src/main/java/jme3test/app/TestNativeLoader.java:89: error: cannot find symbol
org.lwjgl.opengl.Pbuffer pb = null;
^
symbol: class Pbuffer
location: package org.lwjgl.opengl
/Users/davidb/work/oss/jmonkeyengine/jme3-examples/src/main/java/jme3test/app/TestNativeLoader.java:91: error: cannot find symbol
pb = new org.lwjgl.opengl.Pbuffer(1, 1, new org.lwjgl.opengl.PixelFormat(0, 0, 0), null);
^
symbol: class Pbuffer
location: package org.lwjgl.opengl
/Users/davidb/work/oss/jmonkeyengine/jme3-examples/src/main/java/jme3test/app/TestNativeLoader.java:91: error: cannot find symbol
pb = new org.lwjgl.opengl.Pbuffer(1, 1, new org.lwjgl.opengl.PixelFormat(0, 0, 0), null);
^
symbol: class PixelFormat
location: package org.lwjgl.opengl
/Users/davidb/work/oss/jmonkeyengine/jme3-examples/src/main/java/jme3test/app/TestNativeLoader.java:95: error: cannot find symbol
} catch (org.lwjgl.LWJGLException ex) {
^
symbol: class LWJGLException
location: package org.lwjgl
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
12 errors
1 warning
:jme3-examples:compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':jme3-examples:compileJava'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 2.827 secs
dependencies {
compile project(':jme3-blender')
compile project(':jme3-core')
compile project(':jme3-desktop')
compile project(':jme3-effects')
// compile project(':jme3-bullet')
// compile project(':jme3-bullet-native')
compile project(':jme3-jbullet')
compile project(':jme3-jogg')
compile project(':jme3-jogl')
compile project(':jme3-lwjgl3')
compile project(':jme3-networking')
compile project(':jme3-niftygui')
compile project(':jme3-plugins')
compile project(':jme3-terrain')
compile project(':jme3-testdata')
}
@davidB
Copy link
Author

davidB commented Dec 28, 2015

INFO: Running on jMonkeyEngine 3.1-5361

  • Branch: master
  • Git Hash: 4957002
  • Build Date: 2015-12-28
    Exception in thread "jME3 Main" java.lang.UnsatisfiedLinkError: The required native library 'openal' was not found in the classpath via 'native/macosx/openal.dylib'. Error message: no openal in java.library.path
    at com.jme3.system.NativeLibraryLoader.loadNativeLibrary(NativeLibraryLoader.java:596)
    at com.jme3.system.lwjgl.LwjglContext.loadNatives(LwjglContext.java:109)
    at com.jme3.system.lwjgl.LwjglWindow.run(LwjglWindow.java:405)
    at java.lang.Thread.run(Thread.java:745)

@phr00t
Copy link

phr00t commented Dec 28, 2015

@davidB
Copy link
Author

davidB commented Dec 28, 2015

:jme3-examples:run
Dec 28, 2015 10:36:31 PM com.jme3.system.JmeDesktopSystem initialize
INFO: Running on jMonkeyEngine 3.1-5361
 * Branch: master
 * Git Hash: 4957002
 * Build Date: 2015-12-28
Dec 28, 2015 10:36:31 PM com.jme3.app.Application handleError
SEVERE: Uncaught exception thrown in Thread[jME3 Main,6,main]
java.lang.ExceptionInInitializerError
    at org.lwjgl.glfw.GLFW.glfwShowWindow(GLFW.java:1612)
    at com.jme3.system.lwjgl.LwjglWindow.createContext(LwjglWindow.java:216)
    at com.jme3.system.lwjgl.LwjglWindow.initInThread(LwjglWindow.java:292)
    at com.jme3.system.lwjgl.LwjglWindow.run(LwjglWindow.java:408)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalStateException: Please run the JVM with -XstartOnFirstThread.
    at org.lwjgl.system.macosx.EventLoop.<clinit>(EventLoop.java:17)
    ... 5 more

Dec 28, 2015 10:36:31 PM com.jme3.app.Application handleError
SEVERE: Failed to destroy context
java.lang.NullPointerException
    at com.jme3.system.lwjgl.LwjglWindow.destroyContext(LwjglWindow.java:243)
    at com.jme3.system.lwjgl.LwjglWindow.deinitInThread(LwjglWindow.java:392)
    at com.jme3.system.lwjgl.LwjglWindow$4.uncaughtException(LwjglWindow.java:280)
    at java.lang.Thread.dispatchUncaughtException(Thread.java:1952)

@phr00t
Copy link

phr00t commented Dec 28, 2015

Great! You are now caught up to where I'm having trouble. This is the thread on that error:

http://hub.jmonkeyengine.org/t/glfw-crash-on-macs/34719

@davidB
Copy link
Author

davidB commented Dec 30, 2015

:jme3-examples:check UP-TO-DATE
:jme3-examples:build
Dec 30, 2015 11:25:16 AM com.jme3.system.JmeDesktopSystem initialize
INFO: Running on jMonkeyEngine 3.1-fix_lwjgl3_mac-5364
 * Branch: fix_lwjgl3_mac
 * Git Hash: 572f90c
 * Build Date: 2015-12-30
Dec 30, 2015 11:25:17 AM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: LWJGL 3.0.0b SNAPSHOT context running on thread jME3 Main
 * Graphics Adapter: GLFW 3.2.0 Cocoa NSGL chdir menubar retina dynamic
Dec 30, 2015 11:25:18 AM com.jme3.renderer.opengl.GLRenderer loadCapabilitiesCommon
INFO: OpenGL Renderer Information
 * Vendor: NVIDIA Corporation
 * Renderer: NVIDIA GeForce GT 750M OpenGL Engine
 * OpenGL Version: 2.1 NVIDIA-10.6.47 310.42.05f01
 * GLSL Version: 1.20
 * Profile: Compatibility
2015-12-30 11:25:18.887 java[35127:3144582] 11:25:18.887 WARNING:  140: This application, or a library it uses, is using the deprecated Carbon Component Manager for hosting Audio Units. Support for this will be removed in a future release. Also, this makes the host incompatible with version 3 audio units. Please transition to the API's in AudioComponent.h.
Dec 30, 2015 11:25:18 AM com.jme3.audio.openal.ALAudioRenderer initOpenAL
INFO: Audio Renderer Information
 * Device: OpenAL Soft
 * Vendor: OpenAL Community
 * Renderer: OpenAL Soft
 * Version: 1.1 ALSOFT 1.16.0
 * Supported channels: 64
 * ALC extensions: ALC_ENUMERATE_ALL_EXT ALC_ENUMERATION_EXT ALC_EXT_CAPTURE ALC_EXT_DEDICATED ALC_EXT_disconnect ALC_EXT_EFX ALC_EXT_thread_local_context ALC_SOFTX_device_clock ALC_SOFTX_HRTF ALC_SOFT_loopback ALC_SOFTX_midi_interface ALC_SOFT_pause_device
 * AL extensions: AL_EXT_ALAW AL_EXT_BFORMAT AL_EXT_DOUBLE AL_EXT_EXPONENT_DISTANCE AL_EXT_FLOAT32 AL_EXT_IMA4 AL_EXT_LINEAR_DISTANCE AL_EXT_MCFORMATS AL_EXT_MULAW AL_EXT_MULAW_BFORMAT AL_EXT_MULAW_MCFORMATS AL_EXT_OFFSET AL_EXT_source_distance_model AL_LOKI_quadriphonic AL_SOFT_block_alignment AL_SOFT_buffer_samples AL_SOFT_buffer_sub_data AL_SOFT_deferred_updates AL_SOFT_direct_channels AL_SOFT_loop_points AL_SOFT_MSADPCM AL_SOFT_source_latency AL_SOFT_source_length
Dec 30, 2015 11:25:18 AM com.jme3.audio.openal.ALAudioRenderer initOpenAL
INFO: Audio effect extension version: 1.0
Dec 30, 2015 11:25:18 AM com.jme3.audio.openal.ALAudioRenderer initOpenAL
INFO: Audio max auxiliary sends: 4
Dec 30, 2015 11:25:19 AM com.jme3.animation.SkeletonControl controlRender
INFO: Hardware skinning engaged for JaimeGeom-ogremesh (Node)
AL lib: (EE) alc_cleanup: 1 device not closed
:jme3-examples:run FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':jme3-examples:run'.
> Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/bin/java'' finished with non-zero exit value 143

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 3 mins 21.819 secs



Build failure (see the Notifications window for stacktrace): gradle :jme3-examples:run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment