gecko-dev/java/plugins
edburns%acm.org b1081b103c I now have the pluglet.dll XPCOM module loading. The reason it was not
loading: it depends on jvm.dll, which was not on my path.  I had to add
%JDKHOME%\jre\bin\client to my path and now it loaded. Thanks to shaver
and plasticmillion on #developers for the tip to use depends.exe, the
Dependency Walker.  What a nice tool.

Of course, there is now a crash after it loads, which will be my next
step after this checkin.

A plugins/src/iPlugletEngine.idl
A plugins/src/iPlugletManager.idl

- make IDL files for our external interfaces.

M plugins/src/Makefile.in

- move PlugletEngine.cpp to the top of the list.

M plugins/src/PlugletEngine.cpp
M plugins/src/PlugletEngine.h

- big changes here.  Make this a proper generic XPCOM component.

- use the iPlugletManager interface, and the nsICategoryManager
  to make sure we get called at startup.

M plugins/src/Pluglet.cpp
M plugins/src/Pluglet.h
M plugins/src/PlugletFactory.cpp
M plugins/src/PlugletFactory.h
M plugins/src/PlugletInputStream.cpp
M plugins/src/PlugletInputStream.h
M plugins/src/PlugletLoader.cpp
M plugins/src/PlugletManager.cpp
M plugins/src/PlugletPeer.cpp
M plugins/src/PlugletStreamInfo.cpp
M plugins/src/PlugletStreamListener.cpp
M plugins/src/PlugletViewWindows.cpp
M plugins/src/PlugletsDir.cpp
M plugins/src/Registry.cpp

- remove static method PlugletEngine::GetJNIEnv, in favor of instance
  method and use of nsIServiceManager.
2006-06-19 18:50:01 +00:00
..
classes
config
examples pluglet_build 2006-03-26 16:36:55 +00:00
jni Make plugletjni.lib and .dll build. 2006-03-24 17:57:24 +00:00
src I now have the pluglet.dll XPCOM module loading. The reason it was not 2006-06-19 18:50:01 +00:00
test Bug 106386 Correct misspellings in source code 2006-02-23 09:36:43 +00:00
wrappers *not part of the build* 2001-07-06 06:45:11 +00:00
README *not part of the build* 2001-05-09 01:29:06 +00:00
build.xml update 2006-06-19 10:05:42 +00:00

README

Java-Implemented Plug-ins.
================================
http://www.mozilla.org/projects/blackwood/java-plugins/
--------------------------------
This directory contains the beginnings of the Java-Implemented plug-uns.

The sources is divided into four directories

	classes
	       Java source files
	src 
	       Native code (c++/c)
	jni
	       Implamentations of java native methods
	test
	       Test code, including simple pluglet.

========================================================================
Win32 Directions:
========================================================================
Requirements:

* current mozilla built tree

* JDK1.3 or JDK1.2 if you are not using OJI

* Perl 5 perl.exe must be in your path

How To Build:

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

* if you do not have working OJI set OJI_DISABLE to 1
  (You can do it in your command prompt, or you can set it in 
   mozilla/java/plugins/src/makefile.win).

* type "nmake /f makefile.win"

How to Run:

* Add following directories to to your path:
  %MOZILLA_FIVE_HOME%
  In case OJI_DISABLE add %JDKHOME%\jre\bin\client to your path

* Copy class files from mozilla/dist/classes to your JRE/lib/ext directory and
add JRE/lib/ext to your classpath
 
How to build and run test
* go to the test directory and type "nmake /f makefile.win"

* Set PLUGLET environment to the  directory you have test.jar

* Run mozilla and load page test.html from test directory and if everething is ok you will see
  some awt demo.


=========================================================================
Unix (Sparc Solaris and i386 Linux) Directions:
=========================================================================

Requirements:

* current mozilla built tree

* JDK1.3 

* Perl 5 must be in your path

How To Build:

*  make sure the environment var JDKHOME is set to your jdk installation
   directory, ie export  JDKHOME=/usr/local/jdk1.3

* Add following directories to to your LD_LIBRARY_PATH:

$MOZILLA_FIVE_HOME:$JDKHOME/jre/lib/$HOSTTYPE/native_threads:$JDKHOME/jre/lib/$HOSTTYPE/client:
$JDKHOME/jre/lib/$HOSTTYPE/:

* type "gmake"
     
How to Run:
	 
* Add $MOZILLA_FILE_HOME/../classes to your CLASSPATH

How to build and run test

* go to the test directory and type "gmake"
  test.jar will be placed  in mozilla/dist/bin/plugins directory

* set LD_PRELOAD to libXm.so (to libawt.so on linux platform)

* Run mozilla and load page resource:///res/javadev/pluglets/test.html and if everething is ok you will see  some awt demo.
  
  
========================================================================

Problems:

* post to netscape.public.mozilla.java newsgroup