LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: ImDanNow on June 29, 2016, 14:26:14

Title: Installing lwjgl3 in Linux Ubuntu 16.04 LTS
Post by: ImDanNow on June 29, 2016, 14:26:14
I'm having problem in setting up my lwjgl3 in my Netbeans IDE :'(. I read some articles on how to install the lwjgl in Linux but non of them succeed in installing. I am new in lwjgl3 library programming and I want to learn it so I can have project in my Java Game Development. I am more thankful if you can teach me also how to install in the terminal  :D.
Title: Re: Installing lwjgl3 in Linux Ubuntu 16.04 LTS
Post by: Kai on June 29, 2016, 15:02:39
There is currently work going on to provide an easy-to-use LWJGL3 project setup on the lwjgl.org/download site (it's not there, yet).
For the time being you can use the lwjgl3Test.zip attachment on this post.
It contains a simple test program and a Maven pom.xml and Gradle build.gradle file.
Netbeans has built-in support for Maven, so you can import the project as Maven by going to Menu "File" -> "Open Project...", choose the unzipped directory and hit "Open Project".
Title: Re: Installing lwjgl3 in Linux Ubuntu 16.04 LTS
Post by: ImDanNow on June 29, 2016, 15:48:37
I tried the procedure that you gave to me but my problem that I saw is that when I click Open Project that the available file that I can choose is a folder and not a file. How could I link lwjgl3Test in the library instead of just opening it. Can you also deeper explain of what are the use of the two files which are  Maven pom.xml and build.gradle?
Title: Re: Installing lwjgl3 in Linux Ubuntu 16.04 LTS
Post by: Kai on June 29, 2016, 15:51:52
The exact procedure that worked for me (just downloaded and installed the full installation of NetBeans 8.1) is like I said. You open NetBeans, select File -> Open Project..., select the folder "lwjgl3Test" (NetBeans will apparently highlight via a different folder icon that it "knows" that this is a project due to the pom.xml file) and then you click "Open Project".
It will produce a NetBeans project.
Please Google for what Maven and pom.xml is.
Title: Re: Installing lwjgl3 in Linux Ubuntu 16.04 LTS
Post by: ImDanNow on June 29, 2016, 16:15:49
Yeah, my bad for my explanation. I followed exactly what you said but the problem is that the IDE can't open the project and it opens only the folder. I cannot open the project lwjgl3Test.
Title: Re: Installing lwjgl3 in Linux Ubuntu 16.04 LTS
Post by: Kai on June 29, 2016, 16:23:54
I don't know what version and distribution of NetBeans you have.
Download the "All" bundle of NetBeans 8.1 and it'll work.

EDIT: It also works with the "Java SE" distribution of NetBeans. I just checked. Apparently, Maven support is contributed by the "Java SE" plugin, when you look under menu "Tools" -> "Plugins" and have a look at the tab "Installed". It should show an entry "Java SE"  with a green mark under "Active". The description of that plugin to the right has a section "Maven".