hg clone https://bitbucket.org/chuck/lwjgl-sandbox
- 2. Install SBT, following the instructions here:
+ 2. Install maven if you don't have it already.
+ Make sure the mvn executable is in your PATH
- 3. Open up a command prompt to where this README file is
- 4. Run sbt update TWICE (this patches a bug in a dependency):
- (You only need to do this once unless dependencies change)
- 5. Run one of the examples using SBT:
- (You'll be prompted which one to run)
+ 3. Run an example: bin/launch sandbox.misc.SpinningSquare
+ (Windows: bin\launch.bat sandbox.misc.SpinningSquare)
I don't cover any deployment scenarios at all, such as how to
package the native libraries. Like "sandbox" implies, this is just
- a place for me and you to play around with code, and not get all
- serious about delivering code artifacts.
+ a place to play around, not to build lasting artifacts.
USING YOUR IDE (with maven):
- First, run mvn compile in order to unpack libraries into target/lib/native.
- Users of eclipse, use the command line -- it won't work from eclipse.
+ First, run mvn compile in order to unpack libraries into target/natives.
+ Eclipse users, use the command line -- it won't work from the IDE yet.
- These steps keep you from having to edit the launch config for every demo:
* Right click on the project, select Properties, Java Build Path.
* On the "Source" tab (leftmost) select the folder for src/main/java
* Click "Edit", and "External Folder".
Find the unpacked natives folder under target/ lib/native /<youros>
+ * target/native
* Select "Run" from the menu, then "Edit Configurations".
* Expand "Defaults", select "Application".
- * In "VM Parameters", add -Djava.library.path=target/lib/native/<youros>
- (where <youros> is one of windows|linux|solaris|macosx)
+ * In "VM Parameters", add -Djava.library.path=target/natives
+ (or /full/path/to/project/target/natives if you prefer)
* MAKE SURE you edit "VM Parameters" and NOT "Program Parameters"!
Thanks to the LWJGL maintainers for making their awesome library and
being super-fast to fix bugs.
- Thanks to Diablo-D3 for hosting the maven repository for the LWJGL
+ Thanks to ruben01 for the maven packaging support, and to Diablo-D3
+ for hosting the maven repository for the LWJGL 2.7.x series.
Finally, thanks to all the friendly people on #lwjgl on
irc.freenode.net. (You can find me there with the nick "sproingie")