Thread

new version of AWSDKJava for Build 15 available. (Sdk)

new version of AWSDKJava for Build 15 available. // Sdk

1  |  

thierry nabeth

Aug 3, 1999, 7:36am
Hello,

You will find at url
http://www.insead.fr/CALT/Encyclopedia/ComputerSciences/VR/Worlds/Alpha/AWSDKJava/

a new version of AWSDKJava for Build 15.


The only thing function that has not (yet) been encapsulated is the
query() function.

Versions of the dll works for both Jdk 1.1.7B (VAJ* IDE) and 1.2.2.
Besides an exemple of use with Visual Age for Java is provided
(including a few pictures).
*VAJ= IBM VisualAge for Java.

The main difference wiht the previous version is:

* the dll has been renamed awjava.dll (instead of libaw.dll)
* the VAJ IDE version now works !!!!!
* a jar jdk1.2 version of the VAJ IDE version is provided.

Note: (making the system work with VAJ).
The problem in the previous version was that the SDK was call
from another thread than the main thread, which caused the
system to crash (because the sdk is not reentrant).
Note: swing (the java GUI library) is not reentrant either.
The solution was to call all the sdk function from the main thread in
using

==============================loop thread==============================
public void run() {
......
Runnable awProcessEvent = new Runnable () {
public void run() {
try {
Aw aw = getAwSession();
aw.awWait(0);
} catch (Exception ex) {
System.out.println("EXCEPTION: "+ex);
ex.printStackTrace();
}
}
};

......
while (true) {
SwingUtilities.invokeAndWait(awProcessEvent);
Thread.sleep(20);
}
.....
}
===============================================================


Thierry Nabeth
INSEAD CALT
http://www.insead.fr/CALT/

1  |  
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2022. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn