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.


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

Results 1 to 2 of 2

Thread: accessing applet outside the wwwroot

  1. #1
    Junior Member
    Join Date
    Apr 2013
    Thanked 0 Times in 0 Posts

    Default accessing applet outside the wwwroot

    At first i would like to apologize for my english.
    I have put my applet outside wwwroot to a directory called APPLET to prevent hotlinking and now i'm having some accessing problems.

    I have no idea how should i modify my codebase path. Could you please tell me what i am doing wrong? Everything was working perfectly fine when my applet was inside the wwwroot (my previusly code base was APPLET/classes).

    This is how now i am building my applet object:

     <object type="application/x-java-applet"
        name="program_name" width="995" height="588">
        <param name="codebase" value="/users/user_name/APPLET/classes"/>
        <param name="code" value="program_dir/loading.class"/>
        <param name="archive" value="program_dir/program_jar.jar?x=<?php echo $rand ?>" />
        <param name="cache_option" value="no"/>

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Eastern Florida
    Thanked 2,705 Times in 2,655 Posts

    Default Re: accessing applet outside the wwwroot

    Is this a server configuration problem? I don't see how its a java programming problem.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Replies: 29
    Last Post: May 18th, 2012, 02:16 PM
  2. Replies: 2
    Last Post: October 27th, 2011, 08:51 AM
  3. Accessing an external JAR file using Applet
    By rameshiit19 in forum What's Wrong With My Code?
    Replies: 4
    Last Post: July 28th, 2011, 12:51 AM
  4. accessing
    By gcsekhar in forum Java Native Interface
    Replies: 1
    Last Post: December 14th, 2010, 10:04 PM
  5. Accessing Arrays all At Once HELP
    By scottgilliland2003 in forum Member Introductions
    Replies: 0
    Last Post: December 13th, 2010, 10:25 AM