• Post Reply Bookmark Topic Watch Topic
  • New Topic

error:package com.sun.xml.internal.ws.util.xml does not exist  RSS feed

 
amir kawaja
Greenhorn
Posts: 13
Firefox Browser Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i currently used netbeans . i working with xml file with sax .
my code is :


my program run correctly but when clean and build this project get this error :

1-C:\p1\src\javaapplication1\XMLHandler.java:13: package com.sun.xml.internal.ws.util.xml does not exist
import com.sun.xml.internal.ws.util.xml.CDATA;

and get this warnings :
1- C:\p1\src\javaapplication1\XMLHandler.java:11: warning: com.sun.org.apache.xml.internal.serialize.OutputFormat is Sun proprietary API and may be removed in a future release
import com.sun.org.apache.xml.internal.serialize.OutputFormat;

2-C:\p1\src\javaapplication1\XMLHandler.java:12: warning: com.sun.org.apache.xml.internal.serialize.XMLSerializer is Sun proprietary API and may be removed in a future release
import com.sun.org.apache.xml.internal.serialize.XMLSerializer;

please help me .
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch. Please be forthright when cross-posting to other sites.

You're using classes from com.sun.* packages. You're not supposed to use those classes directly - they are not part of the public API of the Java platform and do not exist on all versions of Java. Re-write your program so that you don't use classes from the com.sun.* packages. Use the classes and interfaces in javax.xml.* instead, for example.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!