aboutsummaryrefslogtreecommitdiffstats
path: root/src/newt
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2009-06-15 11:05:16 +0000
committerSven Gothel <[email protected]>2009-06-15 11:05:16 +0000
commit3fe015eb484c1ff9bed8866709f9fe9bbe69115b (patch)
tree43b12f6758dbab84e29f69a8ddec1ab224b8355d /src/newt
parent20410581cc82a980a48d5fd79acdefa565732735 (diff)
Fix: JAWTUtil has to JAWTNativeLibLoader.loadAWTImpl() as well. Use NWReflection.isClassAvailable() if possible. NWReflection.getClass() takes boolean init.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1956 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/newt')
-rw-r--r--src/newt/classes/com/sun/javafx/newt/impl/NativeLibLoader.java9
-rw-r--r--src/newt/classes/com/sun/javafx/newt/util/MainThread.java2
2 files changed, 10 insertions, 1 deletions
diff --git a/src/newt/classes/com/sun/javafx/newt/impl/NativeLibLoader.java b/src/newt/classes/com/sun/javafx/newt/impl/NativeLibLoader.java
index b6754c35b..06d76b294 100644
--- a/src/newt/classes/com/sun/javafx/newt/impl/NativeLibLoader.java
+++ b/src/newt/classes/com/sun/javafx/newt/impl/NativeLibLoader.java
@@ -71,6 +71,9 @@ public class NativeLibLoader extends NativeLibLoaderBase {
for (int i=0; i<preload.length; i++) {
if(!isLoaded(preload[i])) {
try {
+ if(DEBUG) {
+ System.err.println("NEWT NativeLibLoader preload "+preload[i]);
+ }
loadLibraryInternal(preload[i]);
addLoaded(preload[i]);
}
@@ -83,6 +86,9 @@ public class NativeLibLoader extends NativeLibLoaderBase {
}
}
+ if(DEBUG) {
+ System.err.println("NEWT NativeLibLoader load "+libname);
+ }
loadLibraryInternal(libname);
addLoaded(libname);
}
@@ -129,6 +135,9 @@ public class NativeLibLoader extends NativeLibLoaderBase {
// FIXME: remove
// System.out.println("sun.boot.library.path=" + System.getProperty("sun.boot.library.path"));
System.loadLibrary(libraryName);
+ if(DEBUG) {
+ System.err.println("NEWT NativeLibLoader loaded "+libraryName);
+ }
}
}
}
diff --git a/src/newt/classes/com/sun/javafx/newt/util/MainThread.java b/src/newt/classes/com/sun/javafx/newt/util/MainThread.java
index 2ba0a0007..01604476d 100644
--- a/src/newt/classes/com/sun/javafx/newt/util/MainThread.java
+++ b/src/newt/classes/com/sun/javafx/newt/util/MainThread.java
@@ -114,7 +114,7 @@ public class MainThread {
// start user app ..
try {
- Class mainClass = NWReflection.getClass(mainClassName);
+ Class mainClass = NWReflection.getClass(mainClassName, true);
if(null==mainClass) {
throw new RuntimeException(new ClassNotFoundException("MainThread couldn't find main class "+mainClassName));
}