Hi
I am a new user of both JOGL and Eclipse. I am trying to learn to use JOGL but I can’t because I have not been able to import JOGL into Eclispe correctly. Could someone please list the steps required to import jogl.jar into Eclipse so that i can compile my code.
Thanks
Edward
- Right-click on your project in the workspace … select Properties.
- Select “Java Build Path” item in the list on the left pane.
- Select “Libraries” tab on the resulting right pane.
- Press “Add External JARS…”
- Navigate to JOGL installation directory and select “jogl.jar”
This will accomplish the build process, when you run it, you must also specify your Eclipse launcher configuration such that it can find the required native library as well. To do this, create Java launch configuration.
- In the “Environment” tab of the launch configuration, add “New” environment variable named “Path”
- Add the directory containing jogl.so/dll native library as the value for this new variable.
- Ensure that checkbox “Append to native environment is selected”.
HTH.
Uran,
Thanks for the steps. I was able to do the first part and it has gotten me most of the way there. I now receive only two error messages. I was not able to figure out how to do the bottom half related to the launch configuration part on my own. could you do likewise for that and list the steps and tell me what tabs and menus it is under.
thanks for your help.
edward
- Select Menu “Run”, item “Run”
- On the left pane “Configurations” press “New”.
(Configuration named “New_configuration” will be created)
- On the resulting right pane, tab “Main”, enter main class of your application.
- Select tab “Environment” on the resulting right pane, press “New” to add new environment variable.
- In the “Name” field, enter “Path”
- In the “Value” field, enter directory containing jogl.so/dll native library.
- Ensure that checkbox “Append to native environment is selected”.
This will create new launch configuration which you can then launch by either using the dropdown menu in the toolbar, or by accessing it through the “Run” menu.
Eclipse allows creation of multiple launch configurations, each of which can maintain its own set of environment variables, VM with which to launch, as well as other parameters.