Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 8 of 8

Thread: JAVA API

  1. #1
    Junior Member
    Join Date
    Mar 2013
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post JAVA API

    Hi All,

    I am getting an error while compiling java file as below

    error:

    warning: AuthCacheImpl is internal proprietary API and may be removed in a future release

    Source code:



    import sun.net.www.protocol.http.AuthCacheImpl;
    import sun.net.www.protocol.http.AuthCacheValue;



    Approach:

    Shall including rt.jar in my build path is the correct approach for this.


  2. #2
    Junior Member
    Join Date
    Mar 2013
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post JAVA API : Compilation error

    Hi All,

    I am getting an error while compiling java file as below

    error:

    warning: AuthCacheImpl is internal proprietary API and may be removed in a future release

    Source code:



    import sun.net.www.protocol.http.AuthCacheImpl;
    import sun.net.www.protocol.http.AuthCacheValue;



    Approach:

    Shall including rt.jar in my build path is the correct approach for this.

  3. #3
    Senior Member PhHein's Avatar
    Join Date
    Mar 2013
    Location
    Germany
    Posts
    583
    My Mood
    Sleepy
    Thanks
    10
    Thanked 87 Times in 80 Posts

    Default Re: JAVA API : Compilation error

    No, you should not be using any classes from sun.*

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,140
    Thanks
    48
    Thanked 2,156 Times in 2,129 Posts

    Default Re: JAVA API

    AuthCacheImpl is internal proprietary API and may be removed in a future release
    Be warned: The author and owner of the class may remove it in the future.
    Try to find another class and method to do the job.
    If you don't understand my answer, don't ignore it, ask a question.

  5. #5
    Junior Member
    Join Date
    Mar 2013
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: JAVA API

    can somebody plz explain the correct approach.

  6. #6
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,140
    Thanks
    48
    Thanked 2,156 Times in 2,129 Posts

    Default Re: JAVA API

    Find a class and method to do the job that is not an internal proprietary API
    If you don't understand my answer, don't ignore it, ask a question.

  7. #7
    Junior Member
    Join Date
    Mar 2013
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: JAVA API

    Thanks norm for ur reply.I know that I just need replacement for the AuthCacheImpl and AuthCacheValve. but I didn't find any existing jar for above files.

    plz guide

  8. #8
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,140
    Thanks
    48
    Thanked 2,156 Times in 2,129 Posts

    Default Re: JAVA API

    Sorry, I don't know anything about those packages and classes. You'll have to go back to where you decided to use those packages and classes and change the design of the program to use other packages.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. java API
    By nedu4one@yahooo.com in forum What's Wrong With My Code?
    Replies: 1
    Last Post: January 17th, 2013, 09:41 AM
  2. Java ME API? Is there one out there?
    By javapenguin in forum Java ME (Mobile Edition)
    Replies: 1
    Last Post: March 24th, 2012, 06:40 PM
  3. Replies: 0
    Last Post: August 30th, 2010, 07:34 AM
  4. Difference between Speech API and Sound API
    By zeeshanmirza in forum Java SE APIs
    Replies: 1
    Last Post: October 22nd, 2009, 12:22 AM
  5. Replies: 1
    Last Post: August 7th, 2008, 02:09 AM

Tags for this Thread