...
Apache XML-RPC
Apache Jakarta Commons SDAS Core Libraries SDAS Client
Since the server at baco computer uses an older version, if you are planing on accessing it server, you should download this version of SDAS Core Libraries and Client:
...
If you are using a different server, download these instead:
SDAS Core Libraries
SDAS Client
...
Add all of the previous libraries to your system classpath.
Use the matlab static path. More information at the matlab documentation site.
If your are unable to set the static path on your computer you can use the dynamic path.
Before starting to use the system check if JAVA is well configured in MatLab, type in the matlab console:
version -java
If you get an answer like: Java 1.5.0_04 with Sun Microsystems Inc. Java HotSpot(TM) Server VM
, then you’re ready to start.
If your version of MatLab has an older version of Java, then you will need to install a newer version and set the MATLAB_JAVA enviroment variable, as described next.
...
You should use the last version (at least 1.5) of the Sun Java. If your copy of MatLab has a more recent version of Java you can skip this step.
First you have to find out where is your java home located. To avoid errors, download and run this utility. The value returned by the utility is the MATLAB_JAVA value.
NOTE: Each time you change system properties, you have to restart MatLab
Now you have to set the MATLAB_JAVA as a system variable:
Open the windows System Properties (right - click on My Computer or go to the Control Panel)
Select the tab Advanced
Click on Environment Variables...
In the system variables click New...
The Variable name is: MATLAB_JAVA
In the value field (supposing you have the java_home in the libraries in C:\Program Files\java\jdk1.5.0_04\jre
) enter the following value: C:\Program Files\java\jdk1.5.0_04\jre
Supposing you have the java_home in /opt/jdk1.5.0_04/jre/
:
export MATLAB_JAVA="/opt/jdk1.5.0_04/jre/"
import org.sdas.core.client.*; import org.sdas.core.time.*; client = SDASClient('baco.ipfn.ist.utl.pt',NOTE: Each time you change system properties, you have to restart MatLab8888);
If you get an error check the classpath.Before starting to use the system check if JAVA is well configured in MatLab, type in the matlab console:
If you get an erroranswer like:
Java exception occurred:1.5.0_04 withjava.lang.InstantiationError: org.apache.xmlrpc.XmlRpcRequestSunat org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:177)Microsystemsat org.sdas.core.client.SDASClient.authenticate(SDASClient.java:749)Inc. at org.sdas.core.client.SDASClient.<init>(SDASClient.java:256)Javaat org.sdas.core.client.SDASClient.<init>(SDASClient.java:146HotSpot(TM) at org.sdas.core.client.SDASClient.<init>(SDASClient.java:117)Server
You VMhave a conflict with the XML-RPC library that comes with Matlab. To solve this, follow these steps, type in the Matlab console:, then you’re ready to start. Otherwise check all the previous steps.
javaclasspathGet
This will give you a list of all java aconnection to the sdas server libraries being loaded at start. Find whereimport org.sdas.core.client.*;
import org.sdas.core.time.*;
client = SDASClient('baco.ipfn apache_xmlrpc_client.jar.ist, apache_xmlrpc_common.jar.utl and apache_xmlrpc_server.jar .pt', 8888); are located and move them to another folder. Restart Matlab and try connecting to SDAS againIf you get an error check the classpath.
...
Other changes:
...
Download the following libraries into a folder of your system:
Apache XML-RPC
Apache Jakarta Commons
SDAS Core Libraries
SDAS Client
Since the server at baco computer uses an older version, if you are planing on accessing it, you should download this version of SDAS Core Libraries and Client:
...
NOTE: Each time you change system properties, you have to restart MatLab
Before starting to use the system check if JAVA is well configured in MatLab, type in the matlab console:
version -java
If you get an answer like: Java
1.5.0_04 with Sun Microsystems Inc. Java HotSpot(TM) Server VM, then you’re ready to start. Otherwise check all the previous steps.
import org.sdas.core.client.*; import org.sdas.core.time.*; client = SDASClient('baco.ipfn.ist.utl.pt', 8888);
If you get an error check the classpath.
...
...
Since the server at baco computer uses an older version, if you are planing on accessing it server, you should download this version of SDAS Core Libraries and Client:
...
If you are using a different server, download these instead:
SDAS Core Libraries
SDAS Client
...
Add all of the previous libraries to your system classpath.
Use the matlab static path. More information at the matlab documentation site.
If your are unable to set the static path on your computer you can use the dynamic path.
Before starting to use the system check if JAVA is well configured in MatLab, type in the matlab console:
version -java
If you get an answer like: Java 1.5.0_04 with Sun Microsystems Inc. Java HotSpot(TM) Server VM
, then you’re ready to start.
If your version of MatLab has an older version of Java, then you will need to install a newer version and set the MATLAB_JAVA enviroment variable, as described next.
...
You should use the last version (at least 1.5) of the Sun Java. If your copy of MatLab has a more recent version of Java you can skip this step.
First you have to find out where is your java home located. To avoid errors, download and run this utility. The value returned by the utility is the MATLAB_JAVA value.
NOTE: Each time you change system properties, you have to restart MatLab
Now you have to set the MATLAB_JAVA as a system variable:
Open the windows System Properties (right - click on My Computer or go to the Control Panel)
Select the tab Advanced
Click on Environment Variables...
In the system variables click New...
The Variable name is: MATLAB_JAVA
In the value field (supposing you have the java_home in the libraries in C:\Program Files\java\jdk1.5.0_04\jre
) enter the following value: C:\Program Files\java\jdk1.5.0_04\jre
Supposing you have the java_home in /opt/jdk1.5.0_04/jre/
:
export MATLAB_JAVA="/opt/jdk1.5.0_04/jre/"
import org.sdas.core.client.*; import org.sdas.core.time.*; client = SDASClient('baco.ipfn.ist.utl.pt', 8888);
If you get an error check the classpath.
If you get an error like:
Java exception occurred: java.lang.InstantiationError: org.apache.xmlrpc.XmlRpcRequest at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:177) at org.sdas.core.client.SDASClient.authenticate(SDASClient.java:749) at org.sdas.core.client.SDASClient.<init>(SDASClient.java:256) at org.sdas.core.client.SDASClient.<init>(SDASClient.java:146) at org.sdas.core.client.SDASClient.<init>(SDASClient.java:117)
You have a conflict with the XML-RPC library that comes with Matlab. To solve this, follow these steps, type in the Matlab console:
javaclasspath
This will give you a list of all java libraries being loaded at start. Find where apache_xmlrpc_client.jar, apache_xmlrpc_common.jar and apache_xmlrpc_server.jar are located and move them to another folder. Restart Matlab and try connecting to SDAS again.
...