• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 13
Netbeans IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 .
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic