importing cern.jet.stat to use the gamma class

HelloI'm new to java, how do I import cern.jet.stat into a class in order to use the beta method in the Gamma class? I've tried import cern.jet.stat; to no avail.Sen
[209 byte] By [sean3000] at [2007-11-25 19:56:48]
# 1
Try reposting in this forum: http://forum.java.sun.com/forum.jspa?forumID=31
bnitz at 2007-7-4 13:40:16 > top of Java-index,Desktop,Sun Java Desktop System...
# 2

Hi Sean,

You need to write:

import cern.jet.stat.Gamma;

....

If this does not work, it means your class can't find the cern.jet.stat.Gamma.

I presume you have the cern... library in a .jar .

If so, you must make sure this jar is in your classpath.

I don't know how you compile your class, but if you are using some IDE, it will most likely have a Project settings where you can specify your build path libraries (jars, classes etc).

If you are using command line (javac) use the -classpath option.

See also this: http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/classpath.html

nuromantix at 2007-7-4 13:40:16 > top of Java-index,Desktop,Sun Java Desktop System...