The java.util.Random.nextInt(int n)-method came with JDK 1.2 (Java 2).
Microsofts IE use a JVM 1.1.4 and so they are ignorant of this method!

You can use java.util.Random.nextFloat() multiplied with your upper limit
instead.

And allways remember when you are programming applets: don't use methods
that came with JDK 1.2 or later because IE won't show them!

By the way: This is a mailing list about Java Server Pages specification and
reference.
So maybe next time you would like to ask your questions about applets in an
appropiate list because you are more likely to get a quick answer there.

-----Ursprungliche Nachricht-----
Von: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]Im Auftrag von paramjit singh
Gesendet: Mittwoch, 11. Juli 2001 16:38
An: [EMAIL PROTECTED]
Betreff: VERY VERY URGENT


hi!
this is a very urgent so please reply withing 1- 2 days.
I have used java.util.Random.nextInt(upperlimit) function which generates
integer random numbers
form 0 to upperlimit specified. This function i am using inside an applet
which is emmbedded in an html page
when i use that html page with appletviewer then it works fine but when i
use
it within internet explorer it gives
following error:-
error:- java.lang.NoSuchMethod error : java/util/Random: method nextInt(I)I
not found
in its status area
so my applet doesn't loads .

So which other function can do the same objective or what else i can use ??
I am using internet explorer 5.0

Thanks in advance.
Paramjit singh

=========================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=P
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=rvlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to