com.sun.org.apache.xml.internal.serialize Jave 1.5

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nano2
    New Member
    • Jan 2007
    • 41

    com.sun.org.apache.xml.internal.serialize Jave 1.5

    Hi all ,
    I am having a issue with importing the following
    import com.sun.org.apa che.xml.interna l.serialize.Out putFormat;
    import com.sun.org.apa che.xml.interna l.serialize.XML Serializer;
    using the following version of java
    However when i look in the jre I see it's location has changed FROM
    com.sun.org.apa che.xml.interna l.serialize
    TO
    org/apache/xml/serialize/Serializer.clas s

    Has anyone noticed this before and Why is this ?

    Does any one know if you can use #ifdef #else #endif in Java ??

    Thanks help much appreciated !


    I am using the following version of java
    java version "1.5.0"
    Java(TM) 2 Runtime Environment, Standard Edition (build pxp64devifx-20070806 (SR5a))
    IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Linux ppc64-64 j9vmxp6423-20070426 (JIT enabled)
    J9VM - 20070420_12448_ BHdSMr
    JIT - 20070419_1806_r 8
    GC - 200704_19)
    JCL - 20070725
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by nano2
    Hi all ,
    I am having a issue with importing the following
    import com.sun.org.apa che.xml.interna l.serialize.Out putFormat;
    import com.sun.org.apa che.xml.interna l.serialize.XML Serializer;
    using the following version of java
    However when i look in the jre I see it's location has changed FROM
    com.sun.org.apa che.xml.interna l.serialize
    TO
    org/apache/xml/serialize/Serializer.clas s

    Has anyone noticed this before and Why is this ?

    Does any one know if you can use #ifdef #else #endif in Java ??

    Thanks help much appreciated !


    I am using the following version of java
    java version "1.5.0"
    Java(TM) 2 Runtime Environment, Standard Edition (build pxp64devifx-20070806 (SR5a))
    IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Linux ppc64-64 j9vmxp6423-20070426 (JIT enabled)
    J9VM - 20070420_12448_ BHdSMr
    JIT - 20070419_1806_r 8
    GC - 200704_19)
    JCL - 20070725
    What is the issue you are having?
    What is the error you get when you try to compile your code and how are you compiling it?
    I hope you have the JDK installed as well because that is what you need to compile .java files not the JRE.

    Comment

    • JosAH
      Recognized Expert MVP
      • Mar 2007
      • 11453

      #3
      You're not supposed to use any com.sun.* packages directly; only use the
      classes in packages for which API documentation exists.

      And no, Javac doesn't use a preprocessor but feel free to preprocess your sources
      using the C preprocessor.

      kind regards,

      Jos

      Comment

      • nano2
        New Member
        • Jan 2007
        • 41

        #4
        This is the error
        [echo] Compiling acceptance test runner and utilities
        [javac] Compiling 1 source file to /home/t/cvs/F4.3.7B1023/src/acceptance/bin.ppc64
        [javac] /home/t/cvs/F4.3.7B1023/src/acceptance/java/com/openet/acceptance/converter/DumpAvsToAvsXml Gzip.java:21: package com.sun.org.apa che.xml.interna l.serialize does not exist
        [javac] import com.sun.org.apa che.xml.interna l.serialize.Out putFormat;

        this is because it's not com.sun.org.apa che ....
        it's located in org.apache.xml. serialize


        So has something changed in Java 1.5.0 on linux redhat4.5

        Do you know if i can use #ifdef in Java

        Thanks

        Comment

        • JosAH
          Recognized Expert MVP
          • Mar 2007
          • 11453

          #5
          All I can say is: read my previous reply.

          kind regards,

          Jos

          Comment

          Working...