• 0

JAVA Applet Help


Question

I have made a JAVA applet using JBuilder X and it works when I try it in JBuilder (using "Run using defaults") but not when I try it in a browser with JAVA Runtime Environment Version 5.0 :(

The problem is that it doesnt output the result if you run it in the browser. It works in browsers if I comment out the snittMakstemp() method :unsure:

You can test it here and see if it works for you: http://student.iu.hio.no/~s127645/programm...lig2/index.html (just enter "1" for all the values and tell me what you get)

Here's the code if anyone wants to have a look:

Meteorolog.java.txt

Edited by kula shakerz
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Link to it doesn't work. It's got the periods in it. Code doesn't help much either as I can't read Norwegian :pinch:

What does the snittMakstemp() method do? Looking at it, I don't see anything in that method that would make it not work in a browser.

Link to comment
Share on other sites

  • 0

Here's a working link :)

http://student.iu.hio.no/~s127645/programm...lig2/index.html

snittMakstemp() gets the keys from the nedb?r array where the value is < 10 and sum the values of the maxTemp array using the keys it got from the nedb?r array.

example:

nedb?r = {'1','21','34','2','12'}

maxTemp = {'12','31','3','2','14'}

sMaxTemp = maxTemp[1] + maxTemp[2] + maxTemp[4]

it works when I test it in JBuilder but not in browse:( :(

Link to comment
Share on other sites

  • 0

I doesnt work on any of my computers that run JAVA Runtime Environment Version 5.0 but someone else tested it on a older version and it works :huh: Is it a bug in JRE 5.0?

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.