World Wind Forums

Go Back   World Wind Forums > WorldWind JAVA forums > Development Help > How to setup WWJ

Development Help Help for building applications or diagnosing problems with WWJ

Thread: How to setup WWJ Reply to Thread
Your Username: Click here to log in
Image Verification
Title:
  
Message:
Post Icons
You may choose an icon for your message from the following list:
 

Additional Options
Miscellaneous Options

Topic Review (Newest First)
03-04-2013 03:42 PM
MaverickVG Hi,
i had the same problems with Mountain Lion. Try using the Daily builds with jogl 2.0, that helped for me!!
Best,
Seb
12-29-2012 06:25 AM
Unregistered
trouble configure WWJ on Mac OS 10.8.2

I am trying to configure the Java World Wind on Mac Mountain Lion. I am having trouble running simple jogl sample application, after putting the jogl.jar glugen-rt.jar and *.jnilib under "/System/Library/Java/Extensions". The system provided the following error "Exception in thread "main" java.lang.UnsatisfiedLinkError: no jogl in java.library.path". Please advice and thanks in advance.
06-12-2012 05:41 PM
fsvieira
*** glibc detected *** java: double free or corruption (fasttop): 0x898715e8 ***

I got this trying to run the demo ./run-demo.bash gov.nasa.worldwindx.examples.Application Template

*** glibc detected *** java: double free or corruption (fasttop): 0x898715e8 ***
======= Backtrace: =========
/lib/i386-linux-gnu/libc.so.6(+0x73e42)[0xb7590e42]
/lib/i386-linux-gnu/libdbus-1.so.3(dbus_free+0x1f)[0x8733d14f]
/lib/i386-linux-gnu/libdbus-1.so.3(+0x14844)[0x87326844]
/lib/i386-linux-gnu/libdbus-1.so.3(+0x163e1)[0x873283e1]
/lib/i386-linux-gnu/libdbus-1.so.3(+0x1660d)[0x8732860d]
/lib/i386-linux-gnu/libdbus-1.so.3(+0x13626)[0x87325626]
/lib/i386-linux-gnu/libdbus-1.so.3(+0x180a1)[0x8732a0a1]
/lib/i386-linux-gnu/libdbus-1.so.3(dbus_message_iter_append_basic+0x 266)[0x8732c0b6]
/lib/i386-linux-gnu/libdbus-1.so.3(dbus_message_append_args_valist+0 x1a6)[0x8732cac6]
/lib/i386-linux-gnu/libdbus-1.so.3(dbus_message_append_args+0x2f)[0x8732cbcf]
/usr/lib/i386-linux-gnu/libgconf-2.so.4(gconf_engine_get_fuller+0x182)[0x87833732]
/usr/lib/i386-linux-gnu/libgconf-2.so.4(gconf_engine_get_entry+0x87)[0x87833b57]
/usr/lib/i386-linux-gnu/libgconf-2.so.4(+0x166b1)[0x8782d6b1]
/usr/lib/i386-linux-gnu/libgconf-2.so.4(+0x18e96)[0x8782fe96]
/usr/lib/i386-linux-gnu/libgconf-2.so.4(gconf_client_get_string+0x94)[0x87830604]
/usr/lib/jvm/java-6-openjdk-i386/jre/lib/i386/libnet.so(Java_sun_net_spi_DefaultProxyS elector_getSystemProxy+0x4c3)[0x89e399e3]
[0xb350a64a]
[0xb3503047]
[0xb3503047]
[0xb35003e6]
/usr/lib/jvm/java-6-openjdk-i386/jre/lib/i386/server/libjvm.so(+0x39a7d6)[0xb6c137d6]
[0x1]
03-20-2012 03:39 PM
heidtmare in a static context before you create the worldwindow you need to set this:
PHP Code:
System.setProperty("gov.nasa.worldwind.config.document""PATH TO YOUR CUSTOM worldwind.xml"); 
03-19-2012 03:45 PM
vhoriks Thank you for your replies.

Let me clarify what I meant. I create a new java project and add WorldWind to the build path, as per the instructions in post #1 in this thread.

Now I would like this application to use it's own set of configuration files, however it looks like it was just as simple as copying the src/config from WorldWind to the new project, and these files will automatically be the ones used for configurations.
03-19-2012 02:00 PM
lzpolestar
Quote:
Originally Posted by vhoriks View Post
If I create a java project and add WorldWind to the build path, could I use custom configuration files? How?

I'm trying to to do the equivalent of this (step 7), but in a plain java project:
http://forum.worldwindcentral.com/sh...79&postcount=2
"File->New->Java Project",then browse the wwj directory for the location ,then you can add the wwj project into your workspace.
If you want use jar files build from wwj,you can create your own user library.Follow steps below:
1)Window Menu-->Preferences;
2)Java -->Build Path-->User Libraries
3)Name your user library,then add jar file into it ,such as worldwind.jar,worldwindx.jar ect.

I hope this will help you
03-19-2012 11:21 AM
nlneilson Take a look at the config file and read the comments at the top.
... \src\config\worldwind.xml

If I understand your post correctly you are just trying to make a regular java app rather than a plugin. If so then why would "we do the setup in the Activator of the plugin:" would even be necessary??

Code:
7) Using a custom worldwind.xml configuration file
In order to use a custom worldwind.xml configuration file, we do the setup in the Activator of the plugin:
Do a search in the forum for " worldwind.xml".
This is a way to set preferences when a WWJ app is started.
03-19-2012 10:00 AM
vhoriks If I create a java project and add WorldWind to the build path, could I use custom configuration files? How?

I'm trying to to do the equivalent of this (step 7), but in a plain java project:
http://forum.worldwindcentral.com/sh...79&postcount=2
02-24-2012 07:00 AM
vhoriks Thanks for the tip heidtmare.

By the way, I've tried to run the demos, but now I get a wierd error.

I installed .jars and .so files and got everything to work, i ran the demo 'Markers' sucessfully. But seemingly now after a reboot when I try to run a demo it doesn't find the specified class. What could be the problem?

Example:
Quote:
./run-demo.bash Markers
Running Markers
Exception in thread "main" java.lang.NoClassDefFoundError: Markers
Caused by: java.lang.ClassNotFoundException: Markers
at java.net.URLClassLoader$1.run(URLClassLo ader.java:217)
at java.security.AccessController.doPrivile ged(Native Method)
at java.net.URLClassLoader.findClass(URLCla ssLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoa der.java:321)
at sun.misc.Launcher$AppClassLoader.loadCla ss(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoa der.java:266)
D'oh, sorry. Of course it should be "./run-demo.bash gov.nasa.worldwindx.examples.Markers" and nothing else. Working all right now!
02-23-2012 10:19 PM
heidtmare http://forum.worldwindcentral.com/sh...ad.php?t=32348
This thread has more than 10 replies. Click here to review the whole thread.

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT +1. The time now is 12:35 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.