LWJGL Forum

Please login or register.

Login with username, password and session length

Author Topic: LWJGL 3.1.1 libraries to connect ideas  (Read 609 times)

wartemw

  • Newbie
  • *
  • Offline Offline
  • Posts: 20
LWJGL 3.1.1 libraries to connect ideas
« on: November 26, 2016, 10:58:00 »

how to connect LWJGL 3.1.1 library to intellij idea?
Logged

spasi

  • Administrator
  • Nerdus Imperius
  • *****
  • Offline Offline
  • Posts: 1746
Re: LWJGL 3.1.1 libraries to connect ideas
« Reply #1 on: November 26, 2016, 11:49:02 »

Do you use Maven or Gradle? Or do you want to add the LWJGL jars manually?
Logged

wartemw

  • Newbie
  • *
  • Offline Offline
  • Posts: 20
Re: LWJGL 3.1.1 libraries to connect ideas
« Reply #2 on: November 26, 2016, 14:16:45 »

Quote
Do you use Maven or Gradle? Or do you want to add the LWJGL jars manually?
    manually
Logged

spasi

  • Administrator
  • Nerdus Imperius
  • *****
  • Offline Offline
  • Posts: 1746
Re: LWJGL 3.1.1 libraries to connect ideas
« Reply #3 on: November 26, 2016, 14:50:08 »

Go to our download page, select nightly, select zip bundle, review the options and choose the bindings you're interested in, then click on Generate Bundle.

When the download is complete, extract its contents in your project.

In IntelliJ, go to Project Structure -> Libraries -> New Project Library. Add all LWJGL JARs (including the natives) to the library and add the library as a dependency to your project module(s). You do not need to extract the native libraries, it will work fine.

If you want to match the Maven/Gradle behavior exactly, you could create 2 separate libraries:

- One with the class+source JARs, make it a compile dependency of your module(s).
- One with the natives JARs, make it a runtime dependency of your module(s).

You can do this in the Project Structure -> Modules -> select a module -> Dependencies tab, by changing the Scope of each dependency.
Logged

wartemw

  • Newbie
  • *
  • Offline Offline
  • Posts: 20
Re: LWJGL 3.1.1 libraries to connect ideas
« Reply #4 on: November 27, 2016, 07:40:07 »

Quote
spasi
        Is everything being done properly?
Logged

spasi

  • Administrator
  • Nerdus Imperius
  • *****
  • Offline Offline
  • Posts: 1746
Re: LWJGL 3.1.1 libraries to connect ideas
« Reply #5 on: November 27, 2016, 09:25:14 »

The lwjgl*-natives-windows.jar files are missing. They should be added as classes (i.e. as simple jars on the classpath).
Logged

wartemw

  • Newbie
  • *
  • Offline Offline
  • Posts: 20
Re: LWJGL 3.1.1 libraries to connect ideas
« Reply #6 on: November 27, 2016, 10:22:10 »

Quote
The lwjgl*-natives-windows.jar files are missing. They should be added as classes (i.e. as simple jars on the classpath).
the same mistake
Logged

spasi

  • Administrator
  • Nerdus Imperius
  • *****
  • Offline Offline
  • Posts: 1746
Re: LWJGL 3.1.1 libraries to connect ideas
« Reply #7 on: November 27, 2016, 10:29:45 »

Try Run -> Edit Configurations... -> VM options: -Dorg.lwjgl.util.Debug=true -Dorg.lwjgl.util.DebugLoader=true

This will print additional output that may help with identifying the issue.
Logged

wartemw

  • Newbie
  • *
  • Offline Offline
  • Posts: 20
Re: LWJGL 3.1.1 libraries to connect ideas
« Reply #8 on: November 27, 2016, 10:42:22 »

Quote
Try Run -> Edit Configurations... -> VM options: -Dorg.lwjgl.util.Debug=true -Dorg.lwjgl.util.DebugLoader=true
Logged

spasi

  • Administrator
  • Nerdus Imperius
  • *****
  • Offline Offline
  • Posts: 1746
Re: LWJGL 3.1.1 libraries to connect ideas
« Reply #9 on: November 27, 2016, 11:52:05 »

Is lwjgl-natives-windows.jar in the library?
Logged

wartemw

  • Newbie
  • *
  • Offline Offline
  • Posts: 20
Re: LWJGL 3.1.1 libraries to connect ideas
« Reply #10 on: November 27, 2016, 12:05:13 »

Quote
Is lwjgl-natives-windows.jar in the library?
   Thank! all natives bedides lwjgl-natives-windows.jar )
Logged