• 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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.
 
You guys haven't done this much, have ya? I suggest you study this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic