LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: JoshuaWarrior on June 21, 2016, 20:52:23

Title: ThreadLocalState
Post by: JoshuaWarrior on June 21, 2016, 20:52:23
LWJGL 3.0.0 SNAPSHOT build 90

Trying to build in Eclipse and get: "ThreadLocalState cannot be resolved to a type" in system.ThreadLocalUtil.java.

Okay, very new and so I know I am missing something simple.
Title: Re: ThreadLocalState
Post by: Kai on June 22, 2016, 18:08:32
- check with a new simple test project in Eclipse that you can use java.lang.ThreadLocal
- build LWJGL3 first with Apache Ant. See the doc/README.md (https://github.com/LWJGL/lwjgl3/tree/master/doc#build-process)
- use the provided (https://github.com/LWJGL/lwjgl3/tree/master/config/ide/eclipse) Eclipse .project and .classpath files

As a side note: You don't really _have_ to build LWJGL3 from source in order to use it. Just download (https://www.lwjgl.org/download) one of the ready-to-use distributions, or in case you use Maven/Gradle, add a dependency to org.lwjgl:lwjgl:3.0.0 .
Title: Re: ThreadLocalState
Post by: spasi on June 22, 2016, 18:41:16
If you're trying to build LWJGL 3 from source, then you need to run these ant targets at least:

- ant compile-templates
- ant generate

The ThreadLocalState class is a generated class.
Title: Re: ThreadLocalState
Post by: JoshuaWarrior on June 23, 2016, 20:52:19
Thank you so much.  The reason I am trying to build is because there are few class that I think should be in the build but are not.  No matter, I appreciate your input.