473,762 Members | 7,330 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

com.sun.org.apa che.xml.interna l.serialize Jave 1.5

41 New Member
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
Nov 6 '07 #1
4 8965
r035198x
13,262 MVP
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.
Nov 6 '07 #2
JosAH
11,448 Recognized Expert MVP
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
Nov 6 '07 #3
nano2
41 New Member
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
Nov 7 '07 #4
JosAH
11,448 Recognized Expert MVP
All I can say is: read my previous reply.

kind regards,

Jos
Nov 7 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
2031
by: bruce | last post by:
Hi... Update.... We have the following setup in our httpd.conf file. We've tried to give what's related to the issue. We're trying to set up a virtual host for a test project. The behavior that we're seeing is that we can type: http://foo.com but the url that gets displayed is
0
2002
by: Simon | last post by:
Hi, I'm trying to serialize an XML document to a file using XERCES-C++ 2.1.0 . The Document contains an internal DTD. The DTD contains some elements with default values like the following snippet: <!ELEMENT SFLOPTRECPATTERN (#PCDATA)> <!ATTLIST SFLOPTRECPATTERN
2
6737
by: Jim Cobban | last post by:
I must be missing something. I am using org.apache.xml.serialize.XMLSerializer to save a DOM but I am not getting non-basic characters converted to UTF-8. I create Text nodes in the DOM by, for example: Document doc; JTextArea textPrompt; Text newTextNode;
3
4808
by: Jim Cobban | last post by:
I must be missing something. I am using org.apache.xml.serialize.XMLSerializer to save a DOM but I am not getting non-basic characters converted to UTF-8. I create Text nodes in the DOM by, for example: Document doc; JTextArea textPrompt; Text newTextNode;
1
2483
by: Jim Cobban | last post by:
I am getting invalid output from org.apache.xml.serialize.XMLSerializer and I cannot figure out how to get the attention of whoever is working or has worked on that feature. I have gone into the Bugzilla database but it asks me for answers to a whole pile of questions that I haven't the foggiest notion of how to answer. Obviously you have to be intimately familiar with the Apache development process to be able to participate, and all I...
0
1878
by: Richard | last post by:
Hello, Where can I transmit an internal error in Crimson? I have written a simple java class that transforms an XML file and writes it in a file. It throws an error I don't understand. I suspect that this error is an internal error of Crimson (induced certainly by an error in my class because other classes work well). With this internal error it's more difficult for me to find the error in my class.
4
3726
by: Patrick Masson | last post by:
Hello, Our configuration : Apache 2.0.53 PHP 5.0.4 PC Windows 2000 MATLAB 6.1 We work on a consulting project in France which involves MATLAB Web server,
4
8952
by: L. Bushkin | last post by:
I have a C# class that is declared as internal. I do not want it to be visible outside of the library of code that I am implementing. However, I do want to be able to serialize it to XML under certain circumstances. The class only contains public properties, however, when I attempt to serialize it with the XMLSerializer, I gat an InvalidOperationException. If I simply change the protection level of the class to public, everything works...
4
6966
by: liyanage | last post by:
I recently worked on error handling and three related issues/questions came up. 1.) I am trying to trigger Apache ErrorDocument handlers by setting appropriate HTTP status codes in my PHP code, but I don't get the expected results. My PHP file:
0
9554
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10137
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9927
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8814
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6640
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5268
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3914
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3510
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2788
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.