pjs/java/plugins
edburns%acm.org 302cb93787 new_style_document_xpconnect_usage 2007-12-27 05:27:37 +00:00
..
classes A src/nsIPluglet.idl 2007-12-22 01:40:58 +00:00
config
dist update 2007-12-27 03:02:01 +00:00
examples new_style_document_xpconnect_usage 2007-12-27 05:27:37 +00:00
jni build_include_path_mods 2007-09-09 00:47:52 +00:00
mozilla A src/nsIPluglet.idl 2007-12-22 01:40:58 +00:00
netbeans A src/nsIPluglet.idl 2007-12-22 01:40:58 +00:00
release alpha_2 2007-03-27 03:29:05 +00:00
src M dist/build.xml 2007-12-23 03:08:19 +00:00
test update 2007-12-26 14:30:48 +00:00
wrappers
README M README 2007-09-12 14:59:22 +00:00
build.xml create_build_process_for_binary_release 2007-09-10 19:38:48 +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





http://osdir.com/ml/mozilla.devel.plugins/2006-10/msg00005.html

http://groups.google.com/group/mozilla.dev.tech.plugins/browse_thread/thread/97273492c25e4005/2819ed9a111ad17b?lnk=gst&q=edburns&rnum=3#2819ed9a111ad17b

http://bellsouthpwp.net/e/d/edburns00/ed/plugletStatus.html

TD> Hello Ed,
TD> Sorry to say but there remained something wrong.

TD> The installation and the building of the project was easy.
TD> Firefox is started nicely when running the project,
TD> and the ...examples/index.html was displayed.

TD> But none of the two examples seem to work, only blank pages are sho=
wn.
TD> (The HTML sources do contain the code we expect i.e. the navigation=
 from the
TD> index.html to the examples works of course.)

TD> A looked to about:plugins, nppluglet is enabled.
TD> I checked prefs.js it contains the following lines (among other one=
s):
TD> user_pref("plugin.allow_alien_star_handler", true);
TD> user_pref("plugin.default_plugin_disabled", false);
TD> user_pref("plugin.override_internal_types", true);

TD> I do not know what the problem is.

Can you please remove your "Documents and Settings/<USERID>/Application=

Data/Mozilla" directory, start the browser, stop the browser, re-edit
the prefs.js, and try again?

Ed

also remove pluginreg.dat

in C:\Projects\chaff\pluglet-1-1-a1\

find netbeans -name private -prune -o -type f -exec cp {} "/cygdrive/c/Projects/mozilla/MOZILLA_NIH/FIREFOX_2_0_0_3_RELEASE/mozilla/java/plugins/dist/{}" ;


Compiled from "Concat.java"
public class org.apache.tools.ant.taskdefs.Concat extends org.apache.tools.ant.Task{
public org.apache.tools.ant.taskdefs.Concat();
  Signature: ()V
public void setDestfile(java.io.File);
  Signature: (Ljava/io/File;)V
public void setAppend(boolean);
  Signature: (Z)V
public void setEncoding(java.lang.String);
  Signature: (Ljava/lang/String;)V
public void setOutputEncoding(java.lang.String);
  Signature: (Ljava/lang/String;)V
public void setForce(boolean);
  Signature: (Z)V
public org.apache.tools.ant.types.Path createPath();
  Signature: ()Lorg/apache/tools/ant/types/Path;
public void addFileset(org.apache.tools.ant.types.FileSet);
  Signature: (Lorg/apache/tools/ant/types/FileSet;)V
public void addFilelist(org.apache.tools.ant.types.FileList);
  Signature: (Lorg/apache/tools/ant/types/FileList;)V
public void addFilterChain(org.apache.tools.ant.types.FilterChain);
  Signature: (Lorg/apache/tools/ant/types/FilterChain;)V
public void addText(java.lang.String);
  Signature: (Ljava/lang/String;)V
public void addHeader(org.apache.tools.ant.taskdefs.Concat$TextElement);
  Signature: (Lorg/apache/tools/ant/taskdefs/Concat$TextElement;)V
public void addFooter(org.apache.tools.ant.taskdefs.Concat$TextElement);
  Signature: (Lorg/apache/tools/ant/taskdefs/Concat$TextElement;)V
public void setFixLastLine(boolean);
  Signature: (Z)V
public void setEol(org.apache.tools.ant.taskdefs.FixCRLF$CrLf);
  Signature: (Lorg/apache/tools/ant/taskdefs/FixCRLF$CrLf;)V
public void setWriter(java.io.Writer);
  Signature: (Ljava/io/Writer;)V
public void setBinary(boolean);
  Signature: (Z)V
public void execute();
  Signature: ()V
public void reset();
  Signature: ()V
static org.apache.tools.ant.util.FileUtils access$200();
  Signature: ()Lorg/apache/tools/ant/util/FileUtils;
static java.lang.String access$300(org.apache.tools.ant.taskdefs.Concat);
  Signature: (Lorg/apache/tools/ant/taskdefs/Concat;)Ljava/lang/String;
static java.util.Vector access$400(org.apache.tools.ant.taskdefs.Concat);
  Signature: (Lorg/apache/tools/ant/taskdefs/Concat;)Ljava/util/Vector;
static java.lang.String access$500(org.apache.tools.ant.taskdefs.Concat);
  Signature: (Lorg/apache/tools/ant/taskdefs/Concat;)Ljava/lang/String;
static boolean access$600(org.apache.tools.ant.taskdefs.Concat);
  Signature: (Lorg/apache/tools/ant/taskdefs/Concat;)Z
static {};
  Signature: ()V
}

javap
C:\PROGRA~1\netbeans-5.5.1>