edburns%acm.org cc61d0fae1 This fix was contributed by
*      Jason Mawdsley <jason@macadamian.com>
 *      Louis-Philippe Gagnon <louisphilippe@macadamian.com>

It enables webclient to be built and run under JDK1.1.x.  Note that JavaDOM
does not work under jdk1.1.x.

The fix consists of two elements:

On the Java side, replace all JDK1.2 specific calls with JDK1.1.x
equivalents.  On the native side use pre-processer macro for
JNI_VERSION, like this:

#ifdef JNI_VERSION_1_2

#ifndef JNI_VERSION
#define JNI_VERSION JNI_VERSION_1_2
#endif

#else

#ifndef JNI_VERSION_1_1
#define JNI_VERSION_1_1 0x00010001
#endif

#ifndef JNI_VERSION
#define JNI_VERSION JNI_VERSION_1_1
#endif

#endif // END: JNI_VERSION_1_2

This fix has been tested on win32, solaris, and linux.

The following files are in this fix:

M webclient/classes_spec/org/mozilla/webclient/test/DOMTreeModel.java
M webclient/classes_spec/org/mozilla/webclient/test/DOMViewerFrame.java
M webclient/classes_spec/org/mozilla/webclient/test/EMWindow.java
M webclient/classes_spec/org/mozilla/webclient/wrapper_native/BookmarksImpl.java
M webclient/classes_spec/org/mozilla/webclient/wrapper_native/NativeEventThread.java
M webclient/src_moz/CBrowserContainer.cpp
M webclient/src_moz/nsActions.cpp
M webclient/src_share/jni_util.cpp
M webclient/src_share/jni_util.h
M webclient/src_share/jni_util_export.cpp
2000-09-19 00:18:18 +00:00
..
2000-08-08 16:43:52 +00:00
2000-06-04 01:02:44 +00:00
2000-03-09 01:14:22 +00:00
2000-09-19 00:18:18 +00:00
2000-09-18 11:01:28 +00:00
2000-06-04 22:16:36 +00:00
2000-08-03 21:32:54 +00:00
2000-06-04 22:16:36 +00:00

Here lies the code that comprises the java enhancers to mozilla.

Authors: see the README files for each individual subdirectory

Requirements:

* JDK1.2 or greater (may work with lower versions, haven't checked).

* Successfully built MOZ_DEBUG=1 Mozilla M13 tree.

* Perl 5 perl.exe must be in your path

How To Build:

* make it so the directory in which this file resides is a child of your
  top level Mozilla M13 directory

* make sure the environment var JDKHOME is set to your jdk installation
  directory, ie SET JDKHOME=C:\jdk1.2.2

* type "nmake /f makefile.win all" and hope for the best

* this should compile the clasess into %MOZ_SRC%\dist\classes

Problems:

* clobber_all doesn't remove the .class files from dist\classes.  You
  have to do this manually.

* post to netscape.public.mozilla.java newsgroup

General notes:

* Please update the ChangeLog (changelo) files in the subdirectories when
  you make changes.