• 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
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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.
 
a fool thinks himself to be wise, but a wise man knows himself to be a fool - shakespeare. foolish tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic