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

Thread: I can't seem to open an html-file

  1. #1
    Member
    Join Date
    Jul 2011
    Posts
    62
    Thanks
    12
    Thanked 4 Times in 4 Posts

    Default I can't seem to open an html-file

    When I try to open an html-file with an applet from my student-CD, I click on an error-message for more details to get this window for the forum to click on,

    blockedException.JPG

    then got this other window to click on for the details themselves.

    javaConsole.JPGThis window says:

    ----------------------------------------------------
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    ----------------------------------------------------

    So, I have the following questions:

    1. First of all, should I just get security-setting help instead of Java-help?
    2. How do I get this web-page to work without any of this stuff happening?
    3. Is the latter-window merely a set of instructions to follow?


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: I can't seem to open an html-file

    Have you tried changing the Security level of Java?
    On Windows there is a Java Icon in the Control Panel where you can change the security level.
    If you don't understand my answer, don't ignore it, ask a question.

  3. The Following User Says Thank You to Norm For This Useful Post:

    SOG (August 22nd, 2013)

  4. #3
    Member
    Join Date
    Jul 2011
    Posts
    62
    Thanks
    12
    Thanked 4 Times in 4 Posts

    Default Re: I can't seem to open an html-file

    Quote Originally Posted by Norm View Post
    Have you tried changing the Security level of Java?
    On Windows there is a Java Icon in the Control Panel where you can change the security level.
    I notice that I did just that, but the medium-level didn't work, and the low-one made the computer show this:

    javaWarning.JPG

    In other words: I should just trust what's in the CD anyway, and know that anything won't go inside the computer without me knowing this, right?

  5. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: I can't seem to open an html-file

    It's best not to run software that you don't trust.
    If you don't understand my answer, don't ignore it, ask a question.

  6. #5
    Member
    Join Date
    Jul 2011
    Posts
    62
    Thanks
    12
    Thanked 4 Times in 4 Posts

    Default Re: I can't seem to open an html-file

    I see what you mean. Now I know the only problem for me is getting the html-file to display an applet. I use this kind of html-code format for it, so tell me if it's outdated and/or flawed:

    <APPLET CODE="Filename.class" WIDTH=anyNumber HEIGHT=anyNumber>
    </APPLET>

  7. #6
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: I can't seem to open an html-file

    I don't include the .class extension in the code= attribute. Filename.class is a filename. Filename is a classname. Some browsers want just the classname, not the filename.
    If you don't understand my answer, don't ignore it, ask a question.

  8. #7
    Member
    Join Date
    Jul 2011
    Posts
    62
    Thanks
    12
    Thanked 4 Times in 4 Posts

    Default Re: I can't seem to open an html-file

    I noticed something else, and it's been happening the whole time, even after I tried what you said. My browser (Internet Explorer 10) has been restricting my page from running scripts or ActiveX controls. I tried to consider the browser's other internet-options, but that didn't seem to work. Is there anything else I can do?

  9. #8
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: I can't seem to open an html-file

    Sorry, I don't use Internet Explorer. I use chrome
    If you don't understand my answer, don't ignore it, ask a question.

  10. #9
    Member
    Join Date
    Jul 2011
    Posts
    62
    Thanks
    12
    Thanked 4 Times in 4 Posts

    Default Re: I can't seem to open an html-file

    I finally fixed the problem with the given security advice by installing the Java Runtime Environment before I applied the advice itself. So, thanks Norm. This thread is solved.

Similar Threads

  1. file open detection
    By vipincpy in forum What's Wrong With My Code?
    Replies: 1
    Last Post: January 5th, 2013, 08:08 AM
  2. can't open jar file
    By dipakshah8944 in forum What's Wrong With My Code?
    Replies: 5
    Last Post: July 31st, 2012, 10:28 AM
  3. Open file from JAR
    By StevenTNorris in forum AWT / Java Swing
    Replies: 2
    Last Post: October 29th, 2011, 12:02 PM
  4. Replies: 1
    Last Post: March 24th, 2011, 08:22 PM
  5. Open Text file
    By java_kiddy in forum File I/O & Other I/O Streams
    Replies: 7
    Last Post: October 5th, 2010, 02:52 AM