|
On Mac OS X, the easiest solution is to copy J2PrinterWorks.jar into the folder /Library/Java/Extensions.
To use J2PrinterWorks as an ordinary class in Java applets, you need to do both of the following things: Add J2PrinterWorks.jar in the same folder as your applet (whether on your local system or across the network)
In the applet tag, set ARCHIVE="J2PrinterWorks.jar" (use "C:\directory\J2PrinterWorks.jar" if it is not in the same folder as your applet)
NOTE: Some regular browsers and the appletviewers in certain development environments may honor your system classpath as Java does for applications, but others including the Sun JDK appletviewer do not. However, following the above applet instructions should work for applets in all cases. J2PrinterWorks uses the Java 2 printing model, so you must both build and deploy your software using J2PrinterWorks on JDK versions 1.2 or later. J2PrinterWorks will not work with JDK versions prior to 1.2, not even in combination with any release of the stand-alone Swing library. As JDK 1.2 and 1.3 had numerous performance and functionality problems, it is strongly recommended you use JDK 1.4 or later to work with J2PrinterWorks, with the latest release of JDK (1.6) preferred. You also need to use JDK 1.4 or later to take advantage of the "printer discovery", "cross-platform dialog", and Postscript printing features available using the J2PrinterWorks class J2Printer14.
Using J2PrinterWorks as Java Beans in IDEs
J2PrinterWorks.jar provides a set of JavaBeans components for use in visual builder environments. However, the various popular Java IDEs differ in how well they support Java 2-based JavaBeans components like J2PrinterWorks. Since J2PrinterWorks is not inherently a GUI component, there is no great need to work with it visually for layout or wiring anyway, so in general it is easiest to use J2PrinterWorks.jar as a class library, and this approach will work under any development environment.
Compatibility
J2PrinterWorks was developed on Windows XP using JDK 1.3.1, 1.4.2, 1.5.0, and 1.6.0. Compatibility has been tested on the following platforms by Wildcrest Associates and the Wildcrest Associates beta sites:
| Windows 95/98/NT/2000/XP:
Works successfully on:
JDK 1.3, 1.3.1, 1.4, 1.4.1, 1.4.2, 1.5, 1.6 on Win 95, Win 98, Win NT, Win 2000, and Win XP
Works but has certain problems (see Known Problems section) on:
JDK 1.3 (beta)
JDK 1.2.2 |
Macintosh OS :
Works successfully on:
JDK 1.3.1 Update 1 under Mac OS X 10.1.4, 10.2, 10.2.1, and 10.2.2
JDK 1.4.1 under Mac OS X 10.2.x (Jaguar)
JDK 1.4.1 under Mac OS X 10.3.x (Panther)
JDK 1.4.2 under Mac OS X 10.4.x (Tiger)
NOTE 1: To run the J2PrinterWorks sample programs, simply double-click the sample program jar files. However, you can't double-click the Windows-based build.bat or run.bat files. Instead, open a "Terminal" window and type the equivalent "java" commands. Note that Mac uses Unix-style ":" rather than Windows-style ";" for name separators in the classpath. The sample program J2PrinterWorksTestApplication comes with double-clickable buildMac.command and runMac.command files.
NOTE 2: J2TablePrinter won't print table headers using the Macintosh Look & Feel used by JDK 1.3.1. Either turn off header printing or specify the "Metal" Look & Feel for the JTable or switch to JDK 1.4.1 or later which uses the "Aqua" Look & Feel (see "Known Problems").
NOTE 3: Prior to JDK 1.4.2, Apple had not implemented the javax.print classes, so that attribute-based printer discovery was not supported. However, basic printer discovery and selection using getPrinterNames and setPrinter do work. |
| Unix:
Works successfully on:
Linux
Solaris
Mac OS X (Free BSD) |
Printers:
NOTE: These are the printers Wildcrest Associates has actually tested first hand. However, our J2PrinterWorks customers and their users have just about every kind and description of printer there is. J2PrinterWorks is written completely using the Java printing APIs, so it will print on any printer Java can print to, and Sun tests Java with a much larger set of printers. However, we recommend testing with your target printers before purchasing J2PrinterWorks to assure yourself of compatability.
HP LaserJet 1320
HP LaserJet 8100
HP LaserJet 5si
HP Color LaserJet 4500
HP OfficeJet G85
Apple LaserWriter Select 360
|
Development Environments:
NOTE: The first five of these development environments have been tested directly by Wildcrest Associates. The remainder have been reported as successfully used for J2PrinterWorks development by our customers. However, we recommend testing with your target development environment before purchasing J2PrinterWorks to assure yourself of compatability.
Sun JDK
Borland JBuilder
Eclipse
Netbeans
XCode (Mac)
Oracle JDeveloper
IntelliJ IDEA
SuSE
TogetherJ
IBM WebSphere
Weblogic Workshop
JCreator
IBM Visual Age
WebGain/Symantec VisualCafe
|
To uninstall J2PrinterWorks:
Simply delete the installed J2PrinterWorks folder from your system. J2PrinterWorks performs no modification of your registry, system files, or classpath.
«
|