The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
"problem using SVDReduction in java code"
Legacy User
Member Posts: 0 Newbie
Hi,
My question is regarding the exception stated below:
=====================================================================================
Exception in thread "main" java.lang.NoClassDefFoundError: Jama/Matrix
at com.rapidminer.operator.features.transformation.JamaDimensionalityReduction.dimensionalityReduction(JamaDimensionalityReduction.java:59)
at com.rapidminer.operator.features.transformation.DimensionalityReducer.apply(DimensionalityReducer.java:66)
at com.rapidminer.operator.Operator.apply(Operator.java:656)
...
Caused by: java.lang.ClassNotFoundException: Jama.Matrix
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 5 more
=====================================================================================
This occurs when i integrate my program with the code below:
...
Operator SVD = OperatorService.createOperator("SVDReduction");
IOContainer container = wvtoolOperator.apply(new IOContainer());
container = SVD.apply(container); //ERROR OCCURS HERE
ExampleSet exampleSet = container.get(ExampleSet.class);
...
=======================================================================
When i replace "SOMDimensionalityReduction" with "SVDReduction" it works fine. May i know what are the possible causes?
james,
regards
My question is regarding the exception stated below:
=====================================================================================
Exception in thread "main" java.lang.NoClassDefFoundError: Jama/Matrix
at com.rapidminer.operator.features.transformation.JamaDimensionalityReduction.dimensionalityReduction(JamaDimensionalityReduction.java:59)
at com.rapidminer.operator.features.transformation.DimensionalityReducer.apply(DimensionalityReducer.java:66)
at com.rapidminer.operator.Operator.apply(Operator.java:656)
...
Caused by: java.lang.ClassNotFoundException: Jama.Matrix
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 5 more
=====================================================================================
This occurs when i integrate my program with the code below:
...
Operator SVD = OperatorService.createOperator("SVDReduction");
IOContainer container = wvtoolOperator.apply(new IOContainer());
container = SVD.apply(container); //ERROR OCCURS HERE
ExampleSet exampleSet = container.get(ExampleSet.class);
...
=======================================================================
When i replace "SOMDimensionalityReduction" with "SVDReduction" it works fine. May i know what are the possible causes?
james,
regards
Tagged:
0
Answers
the SVDReduction needs another library in your project named "Jama.jar" (from the lib directory of RapidMiner). Just add this library to your project together with the rapidminer.jar and the SVDReduction should work.
Cheers,
Ingo
regards