Can't import uno.glfw.GlfwWindow
See original GitHub issueLooks like I’m experiencing the same issue as #101, but am using gradle to pull imgui dependencies in.
IntelliJ, or gradle while building - can resolve references to most imgui classes (e.g. import imgui.ImGui;
works fine). However, uno.glfw.GlfwWindow
just doesn’t seem to exist, even though IntelliJ lists it in the dependencies just fine, and can even view its (decompiled) source code.
The build.gradle
I’m using to reproduce this problem looks like this:
plugins {
id 'java'
}
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
dependencies {
compile 'com.github.kotlin-graphics:imgui:-SNAPSHOT'
}
The problem also persists with the more complete build.gradle
listed on the wiki or in the README.
In an editor references to GlfwWindow
cannot be resolved, but ImGui
can:
Running gradle’s build
task, it insists uno.glfw
does not exist:
In the ‘External Libraries’ listing, the class is listed (and can be viewed without error):
These results are produced using java version:
openjdk 11.0.5 2019-10-15
OpenJDK Runtime Environment (build 11.0.5+10)
OpenJDK 64-Bit Server VM (build 11.0.5+10, mixed mode)
If I switch to OpenJDK 8, gradle will fail even before an error for GlfwWindow
, producing the following error:
/home/ridan/IdeaProjects/imguitest/src/main/java/Main.java:1: error: cannot access ImGui
import imgui.ImGui;
^
bad class file: /home/ridan/.gradle/caches/modules-2/files-2.1/com.github.kotlin-graphics.imgui/imgui-core/-SNAPSHOT/55853bf32a87b9129ac7c136ca312354dc2083e2/imgui-core--SNAPSHOT.jar(imgui/ImGui.class)
class file has wrong version 55.0, should be 52.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
However, If I use the jdk8
branch(es) made by @AlexApps99, the issue persists like it did with JDK 11.
Edit: any references to the uno
package don’t work.
If you need any more information, just ask. Thanks!
Issue Analytics
- State:
- Created 4 years ago
- Comments:12
Top GitHub Comments
Okay, will do. Thanks for the help (and the amazing libraries)!
this should be solved