|
Essentially,all that is required to use Espresso3D is to setup Eclipse to recognize the LWJGL jar and
Espresso3D jar and then to tell Eclipse how to run your project.
To include the jar files:
If not already created, create your java project (File->New->Project->Java Project).
Once created, right click on your project and select Properties
Select Java Build Path in the list on the left, and then the Libraries tab.
In that tab, click add external jar. Add both espresso3d.jar and lwjgl.jar as seen in the following screenshot:
Now all that is required is you set Eclipse up to run your project. To do this:
Click the green run arrow and select Run...
Next setup a new configuration to modify how the Java VM is launched for E3D. Name
the configuration and point the main class to your main class. Below is an example
of the PongClone games configuration.
Last, you need to create a JVM argument to point to LWJGL's library path. Go to the
arguments tab and add a VM argument of -Djava.library.path=[path_containing_LWJGL_libs] as seen below
Now, whenever you need to run your application, just run this configuration you just created.
If you want to run multiple Espresso3D programs, you can create multiple configurations, or
just simply point the configuration to a different main class.
|