![]() ![]() Navigate to the "" in the "Package Explorer" window, right click on the "HelloWorldWind.java" file, choose "Run As->Java Application". If there is no red marker on your project (and the "Problems" window is empty) then everything compiled without problem. You can either enter the name of your project or choose by clicking on the "Workspace." button. In our case, as we are using the JOGL provided with WWJ, it is the root of our project. Then expand the jogl.jar entry, click on "Native library location", then on the "Edit." button, then enter the directory where the native libraries are. You should however correct a few things in the "Libraries" tab:įirst remove the two JARs BasicDemo.jar and worldwind.jar (else classes would be twice in your classpath). I prefer to use "Create separate folders for sources and class files" but you can do as you like.Įclipse should be clever enough to find everything. Clic on "File->New->Java Project", choose "Create project from existing sources" and fill in the path to the WWJ root directory. If you want to explore WWJ to see how it works, you can create a project with WWJ sources. Go to "Window->Preferences", and in the Preferences window, navigate to "Java->Compiler", and check that the "Compiler compliance level" option is at least "5.0". I am using Eclipse 3.3.2 on Ubuntu using either OpenJDK or SUN's JDK. Note for posters: if you are requesting help from this forum because WWJ doesn't work on your PC, do not forget to describe your hardware, the OS you are using, the Java runtime version you are using (type "java -version" in the command line), and the WWJ version you are using. ) then chances are that the problem is in your OS and/or drivers, and not in WWJ (well, according to my experience, your mileage may vary). If your hardware is less than four years old, and is not SPARC based, and if WWJ does not work as it should (ie: crashing, not displaying textures. So if you are using a Solaris SPARC box, you are out of luck, sorry. ![]() As far as I know, this feature is however not available on any 3D accelerator for SPARC workstations. ![]() However, one notable feature used is the DXTn compressed texture: although its name comes from the DirectX world, it is an ARB extension, that is available on most graphic cards. WWJ currently does not use cutting edge OpenGL features, so unless you are using some very old hardware, you should not have compatibility problems. The platforms currently supported by JOGL are: JOGL is one part Java, one part native code, and to work properly it needs the native libraries that make the "glue" between Java and the OpenGL driver for your OS and hardware. WWJ depends on JOGL, a library that exposes the OpenGL API to the Java language. It uses language features only found in Java 5.0 and later, but you may want to use Java 6.0, as 5.0 is reaching its end-of-life period, and Java 7.0 is on the way. WorldWindJava is a Java API aimed at visualizing 3D globes. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |