PJA and manifest Class-path problem and Could not find class: com.eteks.java2d.PJAGraphicsEnvironmen

Discussion in 'Java' started by pcouas@infodev.fr, Feb 12, 2004.

  1. Guest

    Hi,

    I want use PJA on my AIX server 4.3.3.11 with ibm JDK 1.3.1
    and i have a classpath error problem

    Exception in thread "main" java.lang.Error: Could not find class:
    com.eteks.java
    2d.PJAGraphicsEnvironment

    1 I run
    cd /u/phi/myclasses
    /usr/java131/bin/java -jar /u/phi/myclasses/rdfax11/rdfax11.jar

    2 In rdfax11.jar file there is a manfifest file
    Manifest-Version: 1.0
    Main-Class: rdfax11.FaxTest3
    Created-By: 1.3.1 (Sun Microsystems Inc.)
    Class-Path: rfax.jar pja.jar pjatools.jar

    3 files are rfax.jar pja.jar pjatools.jar are in
    /u/phi/myclasses/rdfax11/
    directory

    4 My main class contains

    package rdfax11;

    import com.java4less.rfax.*;

    public class FaxTest3 {
    public static void main(String argv[])
    {
    System.setProperty ("awt.toolkit", "com.eteks.awt.PJAToolkit");
    System.setProperty "java.awt.graphicsenv","com.eteks.java2d.PJAGraphicsEnvironment");
    TextFaxProducer p=new TextFaxProducer();


    5 Error message
    Exception in thread "main" java.lang.Error: Could not find class:
    com.eteks.java
    2d.PJAGraphicsEnvironment
    at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvi
    ronment.java:75)
    at java.awt.Font.initializeFont(Font.java:285)
    at java.awt.Font.<init>(Font.java:319)
    at com.java4less.rfax.TextFaxProducer.<init>(TextFaxProducer.java:29)
    at rdfax11.FaxTest3.main(FaxTest3.java:35)



    Where is my mistake ???

    Thanks
    Philippe
     
    , Feb 12, 2004
    #1
    1. Advertising

  2. gamo

    Joined:
    Apr 13, 2010
    Messages:
    1
    Modify Boot Classpath

    You should try to modify your bootclasspath, adding jpa jar to your JVM boot classpath:

    java jvm -Xbootclasspath/a:"path/to/pja.jar"
     
    gamo, Apr 13, 2010
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Karsten Wutzke

    JAR files and manifest: Class-Path

    Karsten Wutzke, Jan 6, 2004, in forum: Java
    Replies:
    6
    Views:
    78,233
  2. Replies:
    2
    Views:
    5,130
  3. Timo Nentwig
    Replies:
    6
    Views:
    518
  4. Replies:
    10
    Views:
    3,576
  5. Replies:
    1
    Views:
    937
Loading...

Share This Page