From 719ea199bd3d19b7387f341557e21804d0ddfbee Mon Sep 17 00:00:00 2001 From: clay_shooter Date: Fri, 20 Oct 2006 02:55:06 +0000 Subject: [PATCH] SF 1580993 Feature Request tied to https://sourceforge.net/forum/forum.php?thread_id=1588018&forum_id=375946 Help discusson adds support for 64 bit dlls. --- README.txt | 6 +- build.xml | 447 ++++++++++++------ ...uild.html => BuildingJacobFromSource.html} | 93 ++-- docs/ReleaseNotes.html | 16 +- docs/UsingJacob.html | 45 ++ docs/todo.txt | 3 - makefile | 14 - samples/com/jacob/samples/access/Access.java | 5 +- .../samples/office/ExcelDispatchTest.java | 7 +- .../com/jacob/samples/visio/VisioDemo.java | 10 +- .../com/ActiveXComponentFactoryTest.java | 8 +- unittest/com/jacob/com/DateUtilitiesTest.java | 7 +- unittest/com/jacob/com/DispatchTest.java | 13 +- unittest/com/jacob/com/JacobObjectTest.java | 8 +- unittest/com/jacob/com/ROT2Test.java | 5 +- unittest/com/jacob/com/ROT3Test.java | 5 +- unittest/com/jacob/com/ROTTest.java | 6 +- unittest/com/jacob/com/VariantDateTest.java | 7 +- .../jacob/com/VariantSerializationTest.java | 4 +- unittest/com/jacob/com/VariantTest.java | 4 +- .../com/jacob/test/MathProj/MathTest.java | 6 +- .../com/jacob/test/events/ExcelEventTest.java | 6 +- unittest/com/jacob/test/events/IETest.java | 6 +- .../com/jacob/test/events/WordEventTest.java | 6 +- .../jacob/test/powerpoint/PowerpointTest.java | 6 +- .../test/safearray/SafeArrayReleaseTest.java | 5 +- .../com/jacob/test/windowsmedia/WMPlayer.java | 6 +- 27 files changed, 481 insertions(+), 273 deletions(-) rename docs/{HowToBuild.html => BuildingJacobFromSource.html} (57%) create mode 100644 docs/UsingJacob.html delete mode 100644 docs/todo.txt delete mode 100644 makefile diff --git a/README.txt b/README.txt index 3b90842..0039ff6 100644 --- a/README.txt +++ b/README.txt @@ -1,7 +1,11 @@ +JACOB (Java-COM bridge) is hosted on Sourceforge http://sourceforge.net/project/jacob-project Information about what's new in this release can be found in docs/ReleaseNotes.html Instructions on building this project can be found in docs/HowToBuild.html Detailed instructions on creating a build configuration file are in build.xml -This project is hosted on Sourceforge http://sourceforge.net/project/jacob-project +Put the appropriate DLL for your platform into your runtime library path. +jacob for 32 bit windows is located in /x86. + +There is no good usage guide at this time. \ No newline at end of file diff --git a/build.xml b/build.xml index 7c4bda2..bf2b6d0 100644 --- a/build.xml +++ b/build.xml @@ -5,7 +5,7 @@ Created Feb 4, 2005 1:23:05 PM as part of migration from ANT Last Modified October 13, 2005 - Tested on Eclipse 3.1.0 with the CDT plugin, Ant 1.6.1 and MS Visual C++ 6.0 + Tested on Eclipse 3.2 with the Callisto plugis, Ant 1.6.1 and MS Visual C++ 6.0 Eclipse users are pretty lucky because the whole project can be built inside eclipse due to their built in ANT support. @@ -13,144 +13,244 @@ The build proces defined in this build.xml file does support MS Visual C++ 8.0 (Visual C++ 2005 Express) when combined with the M SDK. The problem is that SafeArray.cpp will not compile - with that 64 bit aware environment. + with that more advanced (and 64 bit aware) environment. - ====================================================================== --> - - - - - - - - - + ====================================================================== --> + + + + + + + + + + + + + + - + - - - + + + - - - - - - - + + + + - - + - - + + + - - + + + - - + + + + + + + + + + + + + - - - - - - - - - - - - + + + + + - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + - + - + - - Building java classes in ${java.bin}... - - Building java sample classes ... - - Building java test classes... - + Building Jacob , sample and, test classes in ${release.dir.java} + + - + Removing old jars - + Packaging java classes... - + + - + + -
+
@@ -159,29 +259,14 @@ - - - - - - - - - - - - - - Clean up the target folders and file, for safety - - Compiling C++ classes with JDK JNI library ${JDK} - + + Clean up the (x86) target folders and file, for safety + + Compiling (x86) C++ classes with JDK JNI library ${JDK} + @@ -203,53 +288,119 @@ - + + + + + + + + + + + + + + + Clean up the (AMD64) target folders and file, for safety + + Compiling C++ (AMD64) classes with JDK JNI library ${JDK} + + + + + + + + + + + + + + + + + + - + - - + + + + + + + + + + + - + Clean up the target folders and file, for safety - - Creating dll_fullpath - + + Creating ${release.file.x86.dll} + - - + + - - - - - - - + + + + + + + + Clean up the target folders and file, for safety + + Creating {$release.file.AMD64.dll} + + + + + + + + + + + - + ${application.title}]]> ${application.vendor}]]> - - - - + + + @@ -270,38 +420,39 @@ - + - Packaging release... ${jarfile_fullpath} + Packaging release... ${release.file.jar} + destfile="${release.dir}/${generated.filename.zip}.zip"> - - - - - - + + + + + + + destfile="${release.dir}/${generated.filename.zip}_src.zip"> - - - - - - - - - + + + + + + + + + diff --git a/docs/HowToBuild.html b/docs/BuildingJacobFromSource.html similarity index 57% rename from docs/HowToBuild.html rename to docs/BuildingJacobFromSource.html index c890651..97a54be 100644 --- a/docs/HowToBuild.html +++ b/docs/BuildingJacobFromSource.html @@ -1,7 +1,31 @@ +

Overview

+JACOB is built on windows machines using ANT, most commonly from inside of Eclipse. +The main steps for getting a working Jacob build are: +
    +
  1. Check out the source code or unpack the source zip file from sourceforge
  2. +
  3. Install the Development Environment
  4. +
  5. Configure the build by creating a compilation_tools.properties file.
  6. +
  7. Run Eclipse and load the project into eclipse
  8. +
  9. Open the build.xml file in Eclipse and run the default ant target
  10. +
+

+

Repository Organization

+

+Unpack the source archive zip file or check the files out of CVS into d:\jacob +or some other familiar place. Source Java and JNI files are located in seperate +packages from the unit tests and the samples. +

+The java code is in .\src.
+The C++ code is in .\jni.
+Code is compiled into .\release
+

+The Servlet examples that required j2ee libraries to compile have temporarily +been removed. +

Development Environment

-The simplest installation involves MS Visual C++ 6.0, Eclipse 3.1 and JDK 1.4. +The simplest build environment involves MS Visual C++ 6.0, Eclipse 3.1 and JDK 1.4. In that situation, you would just create the compilation_tools.properties using the example build.xml as a template. All of the releases, up through 1.11, were built using Visual C++ 6.0. @@ -10,8 +34,24 @@ were built using Visual C++ 6.0.
  • Eclipse 3.1 or later from www.eclipse.org.
  • Java JDK 1.4 (this was built using 1.4.2.09) +

    +64 bit builds are supported with release 1.11. Tools required for 64 bit builds +include: +

      +
    • Microsoft Visual C++ 6.0 and it's included library. (installed in D:\apps in my case) +
    • Microsoft SDK 2005R2 with the following components (installed in D:\apps in my case) +
        +
      • Windows Core SDK +
      • Microsoft Web Workshop (IE) SDK is required because it is referenced in atlbase.h +
      • (optional) Some folks also install the Debugging tools. +
      + +
    • Eclipse 3.1 or later from www.eclipse.org. +
    • Java JDK 1.4 (this was built using 1.4.2.09) +
    Compilation using JDK 1.5 has not been tested +

    Build Process

    The build process is based on ANT. It cannot be built using MAKE. You can run ANT from inside of eclipse or from the command line. @@ -46,45 +86,26 @@ want to use the integrated build process. This is because the unit tests are files located in the "unittest" directory while the project source files themselves are in "src" the root directory. By default, eclipse will add the entire project as source. This -messes up the package naming. A couple small tweaks to the build path -fix this problem. +messes up the package naming. In addition, the build directory should be +set to be the same place the ANT build puts the compiled java classes. +A couple small tweaks to the build path fix these problems: +

    +Open up the project properties and go to the "Java Build Path" properties panel.

      - -
    • Eclipse automatically adds the whole project as a source directory -
    • Remove the root of the project from the build path -
    • Add folders samples, src and unittest to the build path -
    • Exclude *.txt from each of the newly added folders. +
    • Remove the root of the project from the build path
    • +
    • Add folders samples, src and unittest + to the build path in the Source tab.
    • +
    • Exclude *.txt from each of the newly added folders.
    • +
    • Set the build output directory to jacob-project/release/java
    -

    Repository Organization

    -

    -Unpack the source archive zip file or check the files out of CVS into d:\jacob -or some other familiar place. Source Java and JNI files are located in seperate -packages from the unit tests and the samples. -

    -The java code is in .\src.
    -The C++ code is in .\jni. -

    -The Servlet examples that required j2ee libraries to compile have temporarily -been removed. -

    -

    64 bit build support

    -

    -64 bit builds are not supported at this time -

    -A 64 bit build would involve: -

      -
    • Microsoft Visual C++ 6.0 and it's included library. (installed in D:\apps in my case) -
    • Microsoft SDK 2005R2 with the following components -
        -
      • Windows Core SDK -
      • Microsoft Web Workshop (IE) SDK is required because it is referenced in atlbase.h -
      • (optional) Some folks also install the Debugging tools. -
      -
    • Eclipse 3.1 or later from www.eclipse.org. -
    • Java JDK 1.4 (this was built using 1.4.2.09) -
    +

    Running Samples and Tests

    +Samples and test programs can be found in the source jar or in CVS. The programs +can be run from a bat file or from inside the Eclipse IDE. The java library +path variable must be set to include the directory the jacob.dll is in. The +simplest way to do that is to add it as a command line option. + Last Modified 10/2005 diff --git a/docs/ReleaseNotes.html b/docs/ReleaseNotes.html index 7b63235..c0693f8 100644 --- a/docs/ReleaseNotes.html +++ b/docs/ReleaseNotes.html @@ -76,6 +76,10 @@ Feature Requests + + + 1580993 + Modify the build process to support 64 bit dll construction 1550628 @@ -624,17 +628,17 @@ native code is replicated there from the jni directory...

    Related Links

    • -The JACOB mailing list is hosted at yahoo groups: - -http://groups.yahoo.com/group/JACOB-project. +The best way to get support or the latest version of JACOB is on + +http://sourceforge.net/projects/jacob-project This is the preferred way to get support for JACOB. It also includes an extensive archive. If you are doing any development with -JACOB, please join the list. +JACOB, please join sourceforge.
    • Massimiliano Bigatti has developed - + JACOBgen - a generator that automatically creates JACOB code from -Type Libraries +Type Libraries, now available on sourceforge
    • Steven Lewis is developing a version of Java2Com that supports JACOB diff --git a/docs/UsingJacob.html b/docs/UsingJacob.html new file mode 100644 index 0000000..a3c7955 --- /dev/null +++ b/docs/UsingJacob.html @@ -0,0 +1,45 @@ + + +

      Determining the API of the target application

      +

      +Section not yet written. +

      +


      +

      Determining the API of the target application

      +

      +Section not yet written. +

      +


      +

      Jacob Command Line Settings

      +This library supports several different : +

      java.library.path

      + Used to add the location of the jacob dll to the JVM's library path. +

      + Example: -Djava.library.path=d:/jacob/release/x86 + +

      com.jacob.autogc

      + Determines if automatic garbage collection is enabled. This is the + only way to free up objects created in event callbacks. This + feature is not fully debugged. +

      + The default value is false +

      + Example: -Dcom.jacob.autogc=false + +

      com.jacob.debug

      + Determines if debug output is enabled to standard out. + The default value is false +

      + Example: -Dcom.jacob.debug=false + +

      -XCheck:jni

      + This turns on additional JVM checking for JNI issues. This is + not strictly a JACOB system property. +

      + The default is "no additional checking" + Example: -XCheck:jni + +Last Modified 10/2005 + + + \ No newline at end of file diff --git a/docs/todo.txt b/docs/todo.txt deleted file mode 100644 index 945d6d9..0000000 --- a/docs/todo.txt +++ /dev/null @@ -1,3 +0,0 @@ -1. Make everything check the current thread's mta-ness -2. Write more documentation -3. Get someone to help write the Javadoc diff --git a/makefile b/makefile deleted file mode 100644 index e39bf54..0000000 --- a/makefile +++ /dev/null @@ -1,14 +0,0 @@ -JAVAC = c:\j2sdk1.4.2_07\bin\javac -O -JAR = c:\j2sdk1.4.2_07\bin\jar -cvf jacob.jar -COM_DIR = com\jacob\com -ACX_DIR = com\jacob\activeX - -java: jacob.jar - cd src - $(JAVAC) $(COM_DIR)\*.java $(ACX_DIR)\*.java - $(JAR) $(COM_DIR)\*.class $(ACX_DIR)\*.class - -jni: jni\jacob.dll - cd jni - nmake -f makefile all - cd ..\ diff --git a/samples/com/jacob/samples/access/Access.java b/samples/com/jacob/samples/access/Access.java index 827fc6f..0486611 100644 --- a/samples/com/jacob/samples/access/Access.java +++ b/samples/com/jacob/samples/access/Access.java @@ -23,9 +23,8 @@ import com.jacob.com.*; import com.jacob.activeX.*; /** - * May need to run with some command line options. If so, then try these - * -Djava.library.path=d:/jacob/release -Dcom.jacob.autogc=false -Dcom.jacob.debug=true -Xcheck:jni - * @author joe + * May need to run with some command line options (including from inside Eclipse). + * Look in the docs area at the Jacob usage document for command line options. * */ class Access diff --git a/samples/com/jacob/samples/office/ExcelDispatchTest.java b/samples/com/jacob/samples/office/ExcelDispatchTest.java index 53b6a0c..9716fce 100644 --- a/samples/com/jacob/samples/office/ExcelDispatchTest.java +++ b/samples/com/jacob/samples/office/ExcelDispatchTest.java @@ -5,10 +5,9 @@ import com.jacob.activeX.*; /** * Sample test program snagged out of a question on the sun discussion area. - * Run options... - * -Djava.library.path=d:/jacob/release -Dcom.jacob.autogc=false -Dcom.jacob.debug=true - * @author joe - * + *

      + * May need to run with some command line options (including from inside Eclipse). + * Look in the docs area at the Jacob usage document for command line options. */ public class ExcelDispatchTest { diff --git a/samples/com/jacob/samples/visio/VisioDemo.java b/samples/com/jacob/samples/visio/VisioDemo.java index 151e405..745c647 100644 --- a/samples/com/jacob/samples/visio/VisioDemo.java +++ b/samples/com/jacob/samples/visio/VisioDemo.java @@ -11,14 +11,10 @@ import java.awt.event.*; /** * Created as part of sourceforge 1386454 to demonstrate returning values in event handlers * @author miles@rowansoftware.net - * + *

      * This file contains the main() that runs the demo - * - * This can be run in Eclipse with options - *

      - * -Djava.library.path=d:/jacob/release -Dcom.jacob.autogc=false
      - * -Dcom.jacob.debug=false
      - * 
      + *

      + * Look in the docs area at the Jacob usage document for command line options. */ public class VisioDemo extends JFrame implements ActionListener, WindowListener { diff --git a/unittest/com/jacob/com/ActiveXComponentFactoryTest.java b/unittest/com/jacob/com/ActiveXComponentFactoryTest.java index a9dbcbb..2a29715 100644 --- a/unittest/com/jacob/com/ActiveXComponentFactoryTest.java +++ b/unittest/com/jacob/com/ActiveXComponentFactoryTest.java @@ -5,11 +5,9 @@ import com.jacob.activeX.ActiveXComponent; /** * This exercises the two Dispatch factor methods that let you * control whether you create a new running COM object or connect to an existing one - * - * -Djava.library.path=d:/jacob/release -Dcom.jacob.autogc=false -Dcom.jacob.debug=true - * - * @author joe - * + *

      + * May need to run with some command line options (including from inside Eclipse). + * Look in the docs area at the Jacob usage document for command line options. */ public class ActiveXComponentFactoryTest { public static void main(String args[]) throws Exception { diff --git a/unittest/com/jacob/com/DateUtilitiesTest.java b/unittest/com/jacob/com/DateUtilitiesTest.java index cd3720b..0b39566 100644 --- a/unittest/com/jacob/com/DateUtilitiesTest.java +++ b/unittest/com/jacob/com/DateUtilitiesTest.java @@ -8,10 +8,9 @@ import com.jacob.com.DateUtilities; /** * test cases that should exercise the new date conversion code - * run this test with options - * -Djava.library.path=d:/jacob/release -Dcom.jacob.autogc=true -Dcom.jacob.debug=false - * @author joe - * + *

      + * May need to run with some command line options (including from inside Eclipse). + * Look in the docs area at the Jacob usage document for command line options. */ public class DateUtilitiesTest { diff --git a/unittest/com/jacob/com/DispatchTest.java b/unittest/com/jacob/com/DispatchTest.java index 434e6a1..76540f5 100644 --- a/unittest/com/jacob/com/DispatchTest.java +++ b/unittest/com/jacob/com/DispatchTest.java @@ -4,11 +4,14 @@ import java.util.Date; /** * Test some of the Dispatch utility methods - * -Djava.library.path=d:/jacob/release -Dcom.jacob.autogc=true -Dcom.jacob.debug=false - * @author joe - - * @author joe - * + * May need to run with some command line options (including from inside Eclipse). + * If so, then try these + *

      + *      -Djava.library.path=d:/jacob/release/x86 
      + *      -Dcom.jacob.autogc=false 
      + *      -Dcom.jacob.debug=false 
      + *      -Xcheck:jni
      + *  
      */ public class DispatchTest { diff --git a/unittest/com/jacob/com/JacobObjectTest.java b/unittest/com/jacob/com/JacobObjectTest.java index 1bb0e56..9cdbe51 100644 --- a/unittest/com/jacob/com/JacobObjectTest.java +++ b/unittest/com/jacob/com/JacobObjectTest.java @@ -1,12 +1,10 @@ package com.jacob.com; /** - * @author joe - * * This will eventually be changed to a unit test. - * - * Run in Eclipse with command line arguments - * -Djava.library.path=d:/jacob/release -Dcom.jacob.autogc=false + *

      + * May need to run with some command line options (including from inside Eclipse). + * Look in the docs area at the Jacob usage document for command line options. */ public class JacobObjectTest { diff --git a/unittest/com/jacob/com/ROT2Test.java b/unittest/com/jacob/com/ROT2Test.java index a32ff3e..47f4e78 100644 --- a/unittest/com/jacob/com/ROT2Test.java +++ b/unittest/com/jacob/com/ROT2Test.java @@ -7,8 +7,9 @@ package com.jacob.com; * * This will eventually be changed to a unit test. * - * Run in Eclipse with command line arguments - * -Djava.library.path=d:/jacob/release -Dcom.jacob.autogc=false -Dcom.jacob.debug=false + *

      + * May need to run with some command line options (including from inside Eclipse). + * Look in the docs area at the Jacob usage document for command line options. */ public class ROT2Test { diff --git a/unittest/com/jacob/com/ROT3Test.java b/unittest/com/jacob/com/ROT3Test.java index 1634eaa..8cbd68f 100644 --- a/unittest/com/jacob/com/ROT3Test.java +++ b/unittest/com/jacob/com/ROT3Test.java @@ -7,8 +7,9 @@ package com.jacob.com; * * This will eventually be changed to a unit test. * - * Run in Eclipse with command line arguments - * -Djava.library.path=d:/jacob/release -Dcom.jacob.autogc=false + *

      + * May need to run with some command line options (including from inside Eclipse). + * Look in the docs area at the Jacob usage document for command line options. */ public class ROT3Test { diff --git a/unittest/com/jacob/com/ROTTest.java b/unittest/com/jacob/com/ROTTest.java index 00c24c4..8ecb8e4 100644 --- a/unittest/com/jacob/com/ROTTest.java +++ b/unittest/com/jacob/com/ROTTest.java @@ -4,9 +4,9 @@ import com.jacob.com.ROT; * This trys to exercise ROT's garbage collecion * * This will eventually be changed to a unit test. - * - * Run in Eclipse with command line arguments - * -Djava.library.path=d:/jacob/release -Dcom.jacob.autogc=false + *

      + * May need to run with some command line options (including from inside Eclipse). + * Look in the docs area at the Jacob usage document for command line options. */ public class ROTTest { diff --git a/unittest/com/jacob/com/VariantDateTest.java b/unittest/com/jacob/com/VariantDateTest.java index 4f02050..95e1c0a 100644 --- a/unittest/com/jacob/com/VariantDateTest.java +++ b/unittest/com/jacob/com/VariantDateTest.java @@ -6,10 +6,9 @@ import com.jacob.com.Variant; /** * test cases that should exercise the new date conversion code - * run this test with options - * -Djava.library.path=d:/jacob/release -Dcom.jacob.autogc=true -Dcom.jacob.debug=false - * @author joe - * + *

      + * May need to run with some command line options (including from inside Eclipse). + * Look in the docs area at the Jacob usage document for command line options. */ public class VariantDateTest { diff --git a/unittest/com/jacob/com/VariantSerializationTest.java b/unittest/com/jacob/com/VariantSerializationTest.java index 2396817..c664dfa 100644 --- a/unittest/com/jacob/com/VariantSerializationTest.java +++ b/unittest/com/jacob/com/VariantSerializationTest.java @@ -5,7 +5,9 @@ import java.io.*; /** * Verifies serialization works for variants. * Variant serialization is BROKEN and has been since 1.7 - *

      -Djava.library.path=d:/jacob/release
      + *

      + * May need to run with some command line options (including from inside Eclipse). + * Look in the docs area at the Jacob usage document for command line options. */ class VariantSerializationTest { diff --git a/unittest/com/jacob/com/VariantTest.java b/unittest/com/jacob/com/VariantTest.java index b0e7c83..bef8fbf 100644 --- a/unittest/com/jacob/com/VariantTest.java +++ b/unittest/com/jacob/com/VariantTest.java @@ -5,7 +5,9 @@ import java.util.Date; /** * runs through some of the get and set methods on Variant * - * -Djava.library.path=d:/jacob/release -Dcom.jacob.debug=false + *

      + * May need to run with some command line options (including from inside Eclipse). + * Look in the docs area at the Jacob usage document for command line options. */ class VariantTest { public static void main(String[] args) { diff --git a/unittest/com/jacob/test/MathProj/MathTest.java b/unittest/com/jacob/test/MathProj/MathTest.java index ffae5f4..4eae736 100644 --- a/unittest/com/jacob/test/MathProj/MathTest.java +++ b/unittest/com/jacob/test/MathProj/MathTest.java @@ -6,9 +6,9 @@ import com.jacob.com.*; /** * This example uses the MathTest sample VB COM DLL under * the MathProj directory - *

      - * -Djava.library.path=d:/jacob/release -Dcom.jacob.autogc=false -Dcom.jacob.debug=true
      - * 
      + *

      + * May need to run with some command line options (including from inside Eclipse). + * Look in the docs area at the Jacob usage document for command line options. */ class MathTest { public static void main(String[] args) { diff --git a/unittest/com/jacob/test/events/ExcelEventTest.java b/unittest/com/jacob/test/events/ExcelEventTest.java index 07cafb5..f9c2c14 100644 --- a/unittest/com/jacob/test/events/ExcelEventTest.java +++ b/unittest/com/jacob/test/events/ExcelEventTest.java @@ -11,9 +11,9 @@ import com.jacob.com.Variant; * This test was lifted from a forum posting and shows how you can't listen to * Excel events (added post 1.9.1 Eclipse Settings.) This also uses the 1.9.1 * InvocationProxy to receive the events. - *

      supported command line options with default values are - * -Djava.library.path=d:/jacob/release -Dcom.jacob.autogc=false - * -Dcom.jacob.debug=false + *

      + * May need to run with some command line options (including from inside Eclipse). + * Look in the docs area at the Jacob usage document for command line options. */ public class ExcelEventTest extends InvocationProxy { diff --git a/unittest/com/jacob/test/events/IETest.java b/unittest/com/jacob/test/events/IETest.java index 46cd0bd..b166a1f 100644 --- a/unittest/com/jacob/test/events/IETest.java +++ b/unittest/com/jacob/test/events/IETest.java @@ -11,9 +11,9 @@ import com.jacob.activeX.*; * it listens to as it havigates to web sites. * contributed by Niels Olof Bouvin mailto:n.o.bouvin@daimi.au.dk * and Henning Jae jehoej@daimi.au.dk - *

      - * You can run this in eclipse with the command line options - * -Djava.library.path=d:/jacob/release -Dcom.jacob.autogc=false -DXcheck:jni + *

      + * May need to run with some command line options (including from inside Eclipse). + * Look in the docs area at the Jacob usage document for command line options. */ class IETest diff --git a/unittest/com/jacob/test/events/WordEventTest.java b/unittest/com/jacob/test/events/WordEventTest.java index b66d75e..addbedc 100644 --- a/unittest/com/jacob/test/events/WordEventTest.java +++ b/unittest/com/jacob/test/events/WordEventTest.java @@ -13,9 +13,9 @@ import com.jacob.com.Variant; * that the InvocationProxy code works with MS Word Events * This also uses the 1.10 * InvocationProxy to receive the events. - *

      supported command line options with default values are - * -Djava.library.path=d:/jacob/release -Dcom.jacob.autogc=false - * -Dcom.jacob.debug=false + *

      + * May need to run with some command line options (including from inside Eclipse). + * Look in the docs area at the Jacob usage document for command line options. */ public class WordEventTest extends InvocationProxy { diff --git a/unittest/com/jacob/test/powerpoint/PowerpointTest.java b/unittest/com/jacob/test/powerpoint/PowerpointTest.java index d90c657..f7cbbb2 100644 --- a/unittest/com/jacob/test/powerpoint/PowerpointTest.java +++ b/unittest/com/jacob/test/powerpoint/PowerpointTest.java @@ -4,9 +4,9 @@ package com.jacob.test.powerpoint; * $Id$ * * This is really more of a multi threaded tester - * - * run with - * -Djava.library.path=d:/jacob/release -Dcom.jacob.autogc=false -Dcom.jacob.debug=false + *

      + * May need to run with some command line options (including from inside Eclipse). + * Look in the docs area at the Jacob usage document for command line options. */ import com.jacob.activeX.ActiveXComponent; import com.jacob.com.ComThread; diff --git a/unittest/com/jacob/test/safearray/SafeArrayReleaseTest.java b/unittest/com/jacob/test/safearray/SafeArrayReleaseTest.java index a48bf48..e31a239 100644 --- a/unittest/com/jacob/test/safearray/SafeArrayReleaseTest.java +++ b/unittest/com/jacob/test/safearray/SafeArrayReleaseTest.java @@ -5,7 +5,10 @@ import com.jacob.com.SafeArray; import com.jacob.com.Variant; /** - * run with -Djava.library.path=d:/jacob/release -Dcom.jacob.autogc=false -Dcom.jacob.debug=false + *

      + * May need to run with some command line options (including from inside Eclipse). + * Look in the docs area at the Jacob usage document for command line options. + *

      * SF 1085370 In my understatnding, an instance of SafeArray java class has a diff --git a/unittest/com/jacob/test/windowsmedia/WMPlayer.java b/unittest/com/jacob/test/windowsmedia/WMPlayer.java index 00dc9a3..831c470 100644 --- a/unittest/com/jacob/test/windowsmedia/WMPlayer.java +++ b/unittest/com/jacob/test/windowsmedia/WMPlayer.java @@ -4,9 +4,9 @@ package com.jacob.test.windowsmedia; * partial test program from the sourceforge bug report 1453161 * that says you get a random "can't map name to dispid" when * getting the URL from the player - * - * I run with options - * -Djava.library.path=d:/jacob/release -Dcom.jacob.autogc=false -Dcom.jacob.debug=true + *

      + * May need to run with some command line options (including from inside Eclipse). + * Look in the docs area at the Jacob usage document for command line options. */ import com.jacob.activeX.*;