MINDPROD site applet error - Error loading class: java.awt.GraphicsEnvironment

Discussion in 'Java' started by Neill, Jun 6, 2004.

  1. Neill

    Neill Guest

    Is it my browser, or a site issue? I don't see anything in the applet
    windows, and the following error in the Java console.

    http://mindprod.com/jgloss/finalize.html

    Neill

    Microsoft (R) VM for Java, 5.0 Release 5.0.0.3810
    ==============================================
    ? help
    c clear
    f run finalizers
    g garbage collect
    m memory usage
    q quit
    t thread list
    ==============================================
    .... url=http://mindprod.com/jgloss/snippets/finalize.example2.java.ser
    .... url=http://mindprod.com/jgloss/snippets/finalize.example1.java.ser
    ...stream ready
    ...stream ready
    Error loading class: java.awt.GraphicsEnvironment
    java.lang.NoClassDefFoundError
    Bug: Token class files missing from jar null
    java.lang.NoSuchMethodError: java/awt/Component: method getWidth()I not
    found
    Bug: Token class files missing from jar null
    at com/mindprod/jdisplay/JDisplay.init
    at com/ms/applet/AppletPanel.securedCall0
    at com/ms/applet/AppletPanel.securedCall
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.run
    at java/lang/Thread.run
    java.lang.NoSuchMethodError: java/awt/Component: method getWidth()I not
    found
    at com/mindprod/jdisplay/JDisplay.init
    at com/ms/applet/AppletPanel.securedCall0
    at com/ms/applet/AppletPanel.securedCall
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.run
    at java/lang/Thread.run
    Neill, Jun 6, 2004
    #1
    1. Advertising

  2. On Sun, 06 Jun 2004 07:31:07 GMT, Neill wrote:

    > http://mindprod.com/jgloss/finalize.html

    ...
    > Microsoft (R) VM for Java, 5.0 Release 5.0.0.3810


    There is your problem.

    I just tested the page in the MSVM (3810)
    same result as you.

    It works fine in Sun 1.4.2.

    Roedy, you should put the JavaVersionApplet
    or similar in the page like I do for..
    <http://www.physci.org/test/lnf/fullwnd5.html>

    OP, I'd like you to do this quick survey for me..
    <http://www.physci.org/ms/msclassfile.jsp>

    Before following the advice for selecting
    the Sun VM described here..
    <http://www.physci.org/jvmclean.jsp?pt=deselect>
    [ That should allow you to see the page you want. ]

    Alternatively. Download an altogether better
    browser like Mozilla or Opera and install the
    Sun Java directly to it.

    HTH

    --
    Andrew Thompson
    http://www.PhySci.org/ Open-source software suite
    http://www.PhySci.org/codes/ Web & IT Help
    http://www.1point1C.org/ Science & Technology
    Andrew Thompson, Jun 6, 2004
    #2
    1. Advertising

  3. Neill

    Mickey Segal Guest

    "Andrew Thompson" <> wrote in message
    news:eek:tqpm26vio8d.d8v4khh8o7yh$...
    > I just tested the page in the MSVM (3810)
    > same result as you.


    Why are Java 2 applets instead of text used on that page?
    Mickey Segal, Jun 6, 2004
    #3
  4. Neill

    Roedy Green Guest

    On Sun, 06 Jun 2004 07:31:07 GMT, "Neill" <>
    wrote or quoted :

    >Microsoft (R) VM for Java, 5.0 Release 5.0.0.3810


    Microsoft Java is not supported any more. I suggest you install Sun
    Java. see http://mindprod.com/jgloss/jre.html

    --
    Canadian Mind Products, Roedy Green.
    Coaching, problem solving, economical contract programming.
    See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
    Roedy Green, Jun 6, 2004
    #4
  5. Neill

    Roedy Green Guest

    On Sun, 06 Jun 2004 08:14:20 GMT, Andrew Thompson
    <> wrote or quoted :

    >Roedy, you should put the JavaVersionApplet
    >or similar in the page like I do for..
    ><http://www.physci.org/test/lnf/fullwnd5.html>


    I got an applet not found.

    I think you need something in JavaScript to give a decent answer if
    there is no Java at all.

    Yet I don't like putting JavaScript on all my pages. It could cause
    more trouble than it solves.


    At least for JDisplay, I could put some version sniffing code at the
    very start. If it fails what to do? I dare not jump to another page
    since every copy will do the same.

    There is not always room for a message. Even a popup could be annoying
    if they all do it.

    Perhaps a hidden version checking applet on all pages with Java that
    jumps to an explanation page. If people don't get Java working, they
    then can't read anything, which would be even more frustrating than
    missing the code snippets.

    It is remarkable that Java programmers don't have Java working in
    their browsers.



    --
    Canadian Mind Products, Roedy Green.
    Coaching, problem solving, economical contract programming.
    See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
    Roedy Green, Jun 6, 2004
    #5
  6. Neill

    Roedy Green Guest

    Roedy Green, Jun 6, 2004
    #6
  7. On Sun, 06 Jun 2004 12:02:45 GMT, Roedy Green wrote:

    >>Roedy, you should put the JavaVersionApplet
    >>or similar in the page like I do for..
    >><http://www.physci.org/test/lnf/fullwnd5.html>

    >
    > I got an applet not found.


    Oops, my bad! Try it again.

    [ it should become clear what I mean, if you
    hit it with the MSVM, you get dumped to.. here
    <http://www.physci.org/codes/oldjava.jsp> ]

    --
    Andrew Thompson
    http://www.PhySci.org/ Open-source software suite
    http://www.PhySci.org/codes/ Web & IT Help
    http://www.1point1C.org/ Science & Technology
    Andrew Thompson, Jun 6, 2004
    #7
  8. Neill

    Mickey Segal Guest

    "Roedy Green" <> wrote in message
    news:p...
    > It is remarkable that Java programmers don't have Java working in
    > their browsers.


    Java programmers who are trying to support all users will often be running a
    Java 1.1 environment. I think it is safe to assume Java 1.0 folks will
    upgrade, but about half the environments I see use the Microsoft JVM.
    Mickey Segal, Jun 6, 2004
    #8
  9. Neill

    Neill Guest

    "Roedy Green" <> wrote in message
    news:...
    > On Sun, 06 Jun 2004 07:31:07 GMT, "Neill" <>
    > wrote or quoted :
    >
    > >Microsoft (R) VM for Java, 5.0 Release 5.0.0.3810

    >
    > Microsoft Java is not supported any more. I suggest you install Sun
    > Java. see http://mindprod.com/jgloss/jre.html
    >
    > --
    > Canadian Mind Products, Roedy Green.
    > Coaching, problem solving, economical contract programming.
    > See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.


    It turns out the error doesn't occur using a Mozilla browser with a later
    JRE. How about a prominent message at the top of the page stating the system
    requirements for using your site?


    --

    Neill Laney
    http://www.laneyconsulting.com
    Neill, Jun 7, 2004
    #9
  10. On Mon, 07 Jun 2004 11:47:08 GMT, Neill wrote:
    > "Roedy Green" <> wrote in message
    >> On Sun, 06 Jun 2004 07:31:07 GMT, "Neill" wrote or quoted :
    >>
    >>>Microsoft (R) VM for Java, 5.0 Release 5.0.0.3810

    >>
    >> Microsoft Java is not supported any more. I suggest you install Sun
    >> Java. see http://mindprod.com/jgloss/jre.html

    ...
    > It turns out the error doesn't occur using a Mozilla browser with a later
    > JRE. How about a prominent message at the top of the page stating the system
    > requirements for using your site?


    As I already mentioned, that is not necessary.

    You can have an invisible applet redirect 1.1 browsers. *
    For browsers with *no* Java, or Java disabled,
    the 'noscript' and 'alt' tags provide info.

    Try this link in both your Mozilla *and* IE Neill..
    See how it works.
    * <http://www.physci.org/test/lnf/fullwnd5.html>
    You will end up at different pages..
    [ It should be OK after those 'hiccups'
    the other night when Roedy tried it. ]

    --
    Andrew Thompson
    http://www.PhySci.org/ Open-source software suite
    http://www.PhySci.org/codes/ Web & IT Help
    http://www.1point1C.org/ Science & Technology
    Andrew Thompson, Jun 7, 2004
    #10
  11. Neill

    kaeli Guest

    In article <>, look-
    lid enlightened us with...
    >
    > It is remarkable that Java programmers don't have Java working in
    > their browsers.
    >



    I program in Java.

    I *hate* applets. I don't let them run in my browsers.

    There's a LOT more to Java than applets. Just my opinion, of course.

    --
    --
    ~kaeli~
    Those who get too big for their britches will be exposed in
    the end.
    http://www.ipwebdesign.net/wildAtHeart
    http://www.ipwebdesign.net/kaelisSpace
    kaeli, Jun 7, 2004
    #11
  12. Neill

    Roedy Green Guest

    On Mon, 07 Jun 2004 11:47:08 GMT, "Neill" <>
    wrote or quoted :

    >It turns out the error doesn't occur using a Mozilla browser with a later
    >JRE. How about a prominent message at the top of the page stating the system
    >requirements for using your site?


    I have added code to most of the applets that checks the version and
    if not suitably recent puts up a message of the form.

    Error: You need Java x.x.x or later to run this Applet.
    You are currently running under Java x.x.x.
    Get the latest Java from http://java.com/en/index.jsp

    The problem is sometimes the Applet window is too tiny. I dare not
    use a pop up, because often a Applet is used scores of times on the
    same page. Perhaps eventually I will use some static interaction to
    prevent multiple popups. Further, popups could be even more irritating
    than the lack of Java.

    If you had a browser that had no clue what Java was, ironically you
    would be better off than having an old java or a disabled Java. Then
    VIEW links would reveal themselves at least for the code snippets.

    If you are sufficiently desperate, you can view source and chase these
    links manually.

    I wonder if there is a way of doing a style sheet for the Java
    disabled.


    --
    Canadian Mind Products, Roedy Green.
    Coaching, problem solving, economical contract programming.
    See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
    Roedy Green, Jun 7, 2004
    #12
  13. Neill

    Roedy Green Guest

    On Mon, 07 Jun 2004 13:24:27 GMT, Andrew Thompson
    <> wrote or quoted :

    >
    >You can have an invisible applet redirect 1.1 browsers. *
    >For browsers with *no* Java, or Java disabled,
    >the 'noscript' and 'alt' tags provide info.


    I thought about that then discarded the idea. That blocks people from
    using the page without Java. They would be furious at being locked out
    of the text too just because they refused to use my Applet.

    I'm playing with the idea of taking people to get Java with a single
    click.

    --
    Canadian Mind Products, Roedy Green.
    Coaching, problem solving, economical contract programming.
    See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
    Roedy Green, Jun 7, 2004
    #13
  14. On Mon, 07 Jun 2004 15:20:07 GMT, Roedy Green wrote:

    > On Mon, 07 Jun 2004 13:24:27 GMT, Andrew Thompson
    > <> wrote or quoted :

    ....
    >>You can have an invisible applet redirect 1.1 browsers. *
    >>For browsers with *no* Java, or Java disabled,
    >>the 'noscript' and 'alt' tags provide info.

    >
    > I thought about that then discarded the idea. That blocks people from
    > using the page without Java. They would be furious at being locked out
    > of the text too just because they refused to use my Applet.


    Of course. I see now how that would be
    completely inadequate. But I do have some
    ideas to give the 'best of all worlds'..

    > I'm playing with the idea of taking people to get Java with a single
    > click.


    OK - how about this for a concept.

    A starter AWT applet with a CardLayout
    and one Label "Testing Java for (AppletName)".

    If it finds a suitable Java version it adds
    the JApplet to a JPanel as a second
    card in the CardLayout, and flips to it.
    If not it puts a Button linking to Sun..

    Can anybody spot any obvious problems
    with that approach? I am not entirely
    sure the AWT host Applet can avoid
    the mixing light/heavyweight components
    problem ..I'd have to experiment.

    --
    Andrew Thompson
    http://www.PhySci.org/ Open-source software suite
    http://www.PhySci.org/codes/ Web & IT Help
    http://www.1point1C.org/ Science & Technology
    Andrew Thompson, Jun 7, 2004
    #14
  15. On Mon, 07 Jun 2004 15:18:23 GMT, Roedy Green wrote:
    > On Mon, 07 Jun 2004 11:47:08 GMT, "Neill" <>
    > wrote or quoted :

    ...
    > I wonder if there is a way of doing a style sheet for the Java
    > disabled.


    What do you mean?
    To prettify Java source code?

    If you can mark it up actively
    as keyword, operator, text etc.
    sure, easy peasy.

    That is what I do for my code.
    Pure HTML/CSS.

    --
    Andrew Thompson
    http://www.PhySci.org/ Open-source software suite
    http://www.PhySci.org/codes/ Web & IT Help
    http://www.1point1C.org/ Science & Technology
    Andrew Thompson, Jun 7, 2004
    #15
  16. Neill

    Roedy Green Guest

    On Mon, 07 Jun 2004 15:52:42 GMT, Andrew Thompson
    <> wrote or quoted :

    >Can anybody spot any obvious problems
    >with that approach?


    the big problem is some Applets such as Currcon only get a tiny
    window. To show your button and message you must pop up. This make
    the ruddy things hard to ignore if you hate Applets.

    --
    Canadian Mind Products, Roedy Green.
    Coaching, problem solving, economical contract programming.
    See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
    Roedy Green, Jun 7, 2004
    #16
  17. Neill

    Roedy Green Guest

    On Mon, 07 Jun 2004 15:59:02 GMT, Andrew Thompson
    <> wrote or quoted :

    >That is what I do for my code.
    >Pure HTML/CSS.



    That's what I used to do, but it was too fragile, breaking long lines
    would insert unwanted spaces.

    I thought of redoing it that way with automatically generated text
    using <pre> with should help protect the long lines.

    The Applet technique has the advantage of cut/pasting correctly. HTML
    loses spaces. the Applet technique lets you download the entire
    snippet with a click. The applet technique lets me post large
    programs without taking up too much screen real estate.

    I could generate pages both ways, and build two separate indexes, one
    with Applets and one with inline generated HTML. Gets messy since all
    links have be set to a/b style. Also people googling in would land
    one one or the other, not necessarily the one they wanted.

    --
    Canadian Mind Products, Roedy Green.
    Coaching, problem solving, economical contract programming.
    See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
    Roedy Green, Jun 7, 2004
    #17
  18. Neill

    Mickey Segal Guest

    "Roedy Green" <> wrote in message
    news:...
    > I thought about that then discarded the idea. That blocks people from
    > using the page without Java. They would be furious at being locked out
    > of the text too just because they refused to use my Applet.
    >
    > I'm playing with the idea of taking people to get Java with a single
    > click.


    On a site devoted to Java it is fair game to insist that people have Java
    installed and it is OK to use Java in gratuitous ways in which one would not
    use Java on a regular site in order to show certain things about Java. But
    to take a "big tent" approach it would be best to have applets target Java
    1.1 in all instances in which that is possible, unless inconveniencing
    people with the Microsoft JVM is deemed a benefit in itself.
    Mickey Segal, Jun 7, 2004
    #18
  19. On Mon, 7 Jun 2004 14:39:01 -0400, Mickey Segal wrote:
    > "Roedy Green" <> wrote in message

    ...
    >> ..That blocks people from
    >> using the page without Java. They would be furious at being locked out
    >> of the text too just because they refused to use my Applet.

    ....
    > On a site devoted to Java it is fair game to insist that people have Java
    > installed ..


    ...when they are browsing from the local library?

    And yes, there *were* times in the last 18
    months where my only access to the net was
    the local library.

    As it happens, the library *did* have Sun
    Java installed. [ But it might NOT have!! ]
    ...So I was able to WebStart/install my PhySci
    app. and run CattleDog to search their disks.
    My, how boring that was.. ;-)

    --
    Andrew Thompson
    http://www.PhySci.org/ Open-source software suite
    http://www.PhySci.org/codes/ Web & IT Help
    http://www.1point1C.org/ Science & Technology
    Andrew Thompson, Jun 7, 2004
    #19
  20. Neill

    Mickey Segal Guest

    "Andrew Thompson" <> wrote in message
    news:dq5hdk87l5dz$.5ta9b7sto3w3$...
    > ..when they are browsing from the local library?


    If you are trying to show certain things about Java using Java on a Web site
    it is appropriate to use Java. One could argue that colored html can be
    displayed using other technologies, but Roedy Green indicated that he is
    showcasing his Java-based HTML displayer, and we should cut a certain amount
    of slack to someone who is providing so much good information for free.

    The applets I show on http://segal.org/java would also not work at your
    lagging-edge library, but the subject is Java and I need Java to show
    certain things.

    Maybe the solution is a band of Java evangelists to convince libraries to
    install Java. We could hand out coffee cups.
    Mickey Segal, Jun 8, 2004
    #20
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Robert Mark Bram
    Replies:
    2
    Views:
    5,933
    Robert Mark Bram
    Dec 11, 2003
  2. Archana
    Replies:
    1
    Views:
    1,364
    Andrew Thompson
    Oct 25, 2004
  3. Andrew Thompson
    Replies:
    4
    Views:
    389
    Andrew Thompson
    Jul 15, 2005
  4. Roedy Green

    New mindprod.com website

    Roedy Green, Nov 28, 2007, in forum: Java
    Replies:
    27
    Views:
    714
    Roedy Green
    Dec 2, 2007
  5. Roedy Green

    server change for mindprod.com

    Roedy Green, Dec 8, 2007, in forum: Java
    Replies:
    9
    Views:
    345
    Martin Gregorie
    Dec 11, 2007
Loading...

Share This Page