Hey ! I’m getting exactly the same exception using Intellij IDEA. The fact is that I could run my project for a while until this error came from nowhere ! (Or maybe not ?)
DxDiag report
------------------
System Information
------------------
Time of this report: 1/28/2017, 15:03:12
Machine name: DESKTOP-B3FREMA
Machine Id: {CEB001D2-BF6C-4276-8ADE-BC5251927599}
Operating System: Windows 10 Éducation 64-bit (10.0, Build 14393) (14393.rs1_release.161220-1747)
Language: French (Regional Setting: French)
System Manufacturer: To Be Filled By O.E.M.
System Model: To Be Filled By O.E.M.
BIOS: P1.80
Processor: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz (8 CPUs), ~3.4GHz
Memory: 8192MB RAM
Available OS Memory: 8132MB RAM
Page File: 4123MB used, 6568MB available
Windows Dir: C:\WINDOWS
DirectX Version: DirectX 12
DX Setup Parameters: Not found
User DPI Setting: Using System DPI
System DPI Setting: 96 DPI (100 percent)
DWM DPI Scaling: Disabled
Miracast: Available, with HDCP
Microsoft Graphics Hybrid: Not Supported
DxDiag Version: 10.00.14393.0000 64bit Unicode
------------
DxDiag Notes
------------
Display Tab 1: No problems found.
Display Tab 2: No problems found.
Sound Tab 1: No problems found.
Sound Tab 2: No problems found.
Sound Tab 3: No problems found.
Input Tab: No problems found.
---------------
Display Devices
---------------
Card name: NVIDIA GeForce GTX 1060 6GB
Manufacturer: NVIDIA
Chip type: GeForce GTX 1060 6GB
DAC type: Integrated RAMDAC
Device Type: Full Device
Device Key: Enum\PCI\VEN_10DE&DEV_1C03&SUBSYS_37201458&REV_A1
Device Status: 0180200A [DN_DRIVER_LOADED|DN_STARTED|DN_DISABLEABLE|DN_NT_ENUMERATOR|DN_NT_DRIVER]
Device Problem Code: No Problem
Driver Problem Code: Unknown
Display Memory: 10150 MB
Dedicated Memory: 6084 MB
Shared Memory: 4065 MB
Current Mode: 1920 x 1080 (32 bit) (60Hz)
Monitor Name: Generic PnP Monitor
Monitor Model: 247ELPH
Monitor Id: PHLC086
Native Mode: 1920 x 1080(p) (60.000Hz)
And here is my gradle file
apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'eclipse'
apply plugin: 'idea'
mainClassName='com.stomrage.test1.Main'
repositories {
//This is where jme3 dependencies are stored.
jcenter()
//Uncomment this if you install local dependencies.
//mavenLocal()
//Uncomment this if you use external dependencies
//mavenCentral()
//Uncomment this if you use jme3-niftygui
//maven{url 'http://nifty-gui.sourceforge.net/nifty-maven-repo'}
}
ext.jmeVersion = "[3.1,)"
project(":assets") {
apply plugin: "java"
buildDir = rootProject.file("build/assets")
sourceSets {
main {
resources {
srcDir '.'
}
}
}
}
dependencies {
compile "org.jmonkeyengine:jme3-core:$jmeVersion"
compile "org.jmonkeyengine:jme3-desktop:$jmeVersion"
compile "org.jmonkeyengine:jme3-lwjgl:$jmeVersion"
compile "org.codehaus.groovy:groovy-all:2.2.1"
compile "com.simsilica:lemur:[1.8,)"
compile "com.simsilica:lemur-proto:[1.6,)"
//Those are jme3 additional library uncomment the ones you need
//compile "org.jmonkeyengine:jme3-android-native:$jmeVersion"
//compile "org.jmonkeyengine:jme3-android:$jmeVersion"
//compile "org.jmonkeyengine:jme3-bullet-native-android:$jmeVersion"
//compile "org.jmonkeyengine:jme3-blender:$jmeVersion"
//compile "org.jmonkeyengine:jme3-bullet-native:$jmeVersion"
//compile "org.jmonkeyengine:jme3-bullet:$jmeVersion"
//compile "org.jmonkeyengine:jme3-effects:$jmeVersion"
//compile "org.jmonkeyengine:jme3-jogg:$jmeVersion"
//compile "org.jmonkeyengine:jme3-jogl:$jmeVersion"
//compile "org.jmonkeyengine:jme3-lwjgl3:$jmeVersion"
//compile "org.jmonkeyengine:jme3-networking:$jmeVersion"
//compile "org.jmonkeyengine:jme3-plugins:$jmeVersion"
compile "org.jmonkeyengine:jme3-terrain:$jmeVersion"
//You need to uncomment nifty repository in the repositories section if you use this dependency
//compile "org.jmonkeyengine:jme3-niftygui:$jmeVersion"
runtime project(':assets')
}
task wrapper(type: Wrapper) {
}
task createDirs << {
def pkg = 'mygame'
def dirs = [
file("./src/main/java/$pkg"),
file("./src/main/resources"),
file("./assets/Interface"),
file("./assets/MatDefs"),
file("./assets/Materials"),
file("./assets/Models"),
file("./assets/Scenes"),
file("./assets/Shaders"),
file("./assets/Sounds"),
file("./assets/Textures"),
]
dirs.each {
if( !it.exists() ) {
println "Creating " + it
it.mkdirs()
}
if( it.listFiles().length == 0 ) {
def stub = new File(it, 'removeme.txt')
println "Creating stub file to allow git checkin, file:$stub"
stub.text = "Remove me when there are files here."
}
}
}
The exception i’m getting from Intellij IDEA
janv. 28, 2017 3:08:00 PM com.jme3.system.JmeDesktopSystem initialize
INFOS: Running on jMonkeyEngine 3.1-beta2
* Branch: HEAD
* Git Hash: a71fb28
* Build Date: 2016-11-22
janv. 28, 2017 3:08:01 PM com.jme3.app.LegacyApplication handleError
GRAVE: Failed to create display
org.lwjgl.LWJGLException: Pixel format not accelerated
at org.lwjgl.opengl.WindowsPeerInfo.nChoosePixelFormat(Native Method)
at org.lwjgl.opengl.WindowsPeerInfo.choosePixelFormat(WindowsPeerInfo.java:52)
at org.lwjgl.opengl.WindowsDisplay.createWindow(WindowsDisplay.java:247)
at org.lwjgl.opengl.Display.createWindow(Display.java:306)
at org.lwjgl.opengl.Display.create(Display.java:848)
at org.lwjgl.opengl.Display.create(Display.java:757)
at com.jme3.system.lwjgl.LwjglDisplay.createContext(LwjglDisplay.java:143)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:113)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:211)
at java.lang.Thread.run(Thread.java:745)
janv. 28, 2017 3:08:01 PM com.jme3.system.lwjgl.LwjglAbstractDisplay run
GRAVE: Display initialization failed. Cannot continue.
Process finished with exit code -1073741819 (0xC0000005)
And finally @javasabr I can totally run your editor ! But I can’t run it using the cmd and the java -jar, in this case i’m getting this exception
janv. 28, 2017 3:11:13 PM com.jme3.app.LegacyApplication handleError
GRAVE: WGL: The driver does not appear to support OpenGL
java.lang.Exception: WGL: The driver does not appear to support OpenGL
at com.jme3.system.lwjgl.LwjglWindow$1.invoke(LwjglWindow.java:179)
at org.lwjgl.glfw.GLFWErrorCallbackI.callback(GLFWErrorCallbackI.java:23)
at com.jme3.system.lwjgl.LwjglWindow$1.callback(LwjglWindow.java:189)
at org.lwjgl.system.JNI.invokePPPP(Native Method)
at org.lwjgl.glfw.GLFW.nglfwCreateWindow(GLFW.java:1235)
at org.lwjgl.glfw.GLFW.glfwCreateWindow(GLFW.java:1388)
at com.jme3.system.lwjgl.LwjglWindow.createContext(LwjglWindow.java:250)
at com.jme3.system.lwjgl.LwjglWindow.initInThread(LwjglWindow.java:474)
at com.jme3.system.lwjgl.LwjglWindow.run(LwjglWindow.java:600)
at com.jme3.system.lwjgl.LwjglWindow.create(LwjglWindow.java:445)
at com.jme3x.jfx.injfx.JmeOffscreenSurfaceContext.create(JmeOffscreenSurfaceContext.java:202)
at com.jme3.app.LegacyApplication.start(LegacyApplication.java:463)
at com.jme3.app.LegacyApplication.start(LegacyApplication.java:424)
at com.jme3.app.SimpleApplication.start(SimpleApplication.java:125)
at com.ss.editor.Editor.start(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Ask me if you need any furthermore information ! Thanks for your time.