Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Importing classes, package, Jamlab, JAMA

843838Jun 29 2007 — edited Jun 29 2007
Hello:


I am using, inside a JSP, a modified version of this code --> http://www.developer.com/java/other/article.php/806711, which uses a package named JAMA and Jamlab(to work with matrix) --> http://www.developer.com/java/other/article.php/762441

It is already recognizing the JAMA package (basic linear algebra package), after I added the Jama.jar file path to the CLASSPATH.

I was trying to import the Jamlab classes and I thought that I could do the same: add to the CLASSPATH the Jamlab.jar path.

The download did not come with a .JAR file, I did it using the JAR command: adding the classes to it. I already checked that the classes are actually inside the .JAR, not in a sub-folder.

The compiler is not recognizing a method which is found inside the Jamlab package:
//Create matrix of the coefficients.
    polyCoeffMatrix = new Matrix(JElmat.convertTo2D(polynomialCoefficients));
"JElmat cannot be resolved" is the error message.

The import directive of my JSP page:
<%@page import="java.io.*,java.lang.*, java.util.*, java.awt.*, java.awt.image.*, Jama.*, Jama.util.*, jamlab.*, jamlab.JElmat.*"%>
Any help is extremely appreciated!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 27 2007
Added on Jun 29 2007
0 comments
367 views