There doesn't seem to be a welcome/newbie forum, so I'm just going to introduce myself: My name is Jeff Evarts and while I've been programming professionally since the early 80s, it's been more C/C++ and a little assembly language than Java. I'm totally new to game development as well, so I'm likely to ask odd questions and get the vocabulary all wrong. My apologies in advance.
I've been watching the youtube LWJGL tutorials of Oskar and ThinMatrix and others. They use a Linux/Eclipse/Java/OpenGL/LWJGL stack, but they're having more luck than I am.
I'm hoping some kind person will help me get past what looks like a configuration issue.
I'm using
- Linux: Linux Mint 18.1/Serena
- Eclipse: Eclipse + Eclipse-jdt 3.8.1-8
- Java: openjdk-8-jdk, openjdk-8-jre
- lwjgl: downloaded lwjgl-opengl-*, lwjgl-glfw-*, and lwjgl-* from the lwjgl.org downloader, and added them to the java build path in eclipse
When I compile the demo application from "Get started", it barfs immediately on the -> operator, because the default compiler isn't "1.5" compatible. I run "javac -version" and it gives me "javac 1.8.0_131", which looks pretty modern. I changed the compiler level IN ECLIPSE to 1.5, and the problem continues exactly the same. Then I tried upgrading to openjdk-9, but this caused eclipse to fail with errors about XXMaxSomething. I changed those, and it failed later on.
Addiitonal research shows that ALL of the examples/demos use the same -> syntax, so it must be working MOST places... I just don't know what options to click.
So: What am I missing?
What does it take to compile the "Getting Started" app from lwjgl?Thank you so much in advance!
Hopefully,
-Jeff
P.S.
All these problems also happen on
Ubuntu 16.04, so I'm pretty sure it's not a Mint-specific problem.