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 2 of 2

Thread: getCodeBase returns null for local applets as of 7u25

  1. #1
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default getCodeBase returns null for local applets as of 7u25

    From release notes at: Java? SE Development Kit 7 Update 25 Release Notes
    Local Applets return NULL for codebase
    Beginning with JDK 7u25, an applet's getCodeBase() method will return NULL when the applet is running from the local file system.
    If you don't understand my answer, don't ignore it, ask a question.


  2. #2
    Junior Member
    Join Date
    Sep 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: getCodeBase returns null for local applets as of 7u25

    And getDocumentBase() returns null for local applets as of 7u40. Both are bugs on the part of Oracle, discussed in great detail here:

    [Forum denied URL link. Instead Google java security clusterf]

    The only way this is going to get resolved is if you report a Java bug citing that article.

Similar Threads

  1. method always returns 0
    By bdennin in forum What's Wrong With My Code?
    Replies: 3
    Last Post: January 26th, 2013, 05:31 AM
  2. Array list returns null
    By Scotty in forum Collections and Generics
    Replies: 3
    Last Post: April 14th, 2011, 06:50 AM
  3. returns all suggestions
    By mario_tim in forum What's Wrong With My Code?
    Replies: 0
    Last Post: March 26th, 2011, 04:51 AM
  4. AccessControlException caused by getCodeBase().getHost()
    By DarthCoffee in forum What's Wrong With My Code?
    Replies: 0
    Last Post: March 15th, 2011, 06:38 PM
  5. Space Monkey Returns
    By SPACE MONKEY in forum Member Introductions
    Replies: 1
    Last Post: February 17th, 2011, 09:59 AM