...
...
You should use the latestlast 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/"
if you have a recent version of If you get an error check the classpath. Matlab that includes aMatLab and XML-RPC library, download the following If you get an error like: library into Java exception occurred:
a java.lang.InstantiationError: org.apache.xmlrpc.XmlRpcRequest
folder at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:177)
of at org.sdas.core.client.SDASClient.authenticate(SDASClient.java:749)
your system:at org.sdas.core.client.SDASClient.<init>(SDASClient.java:256)
at org.sdas.core.client.SDASClient.<init>(SDASClient.java:146)
SDAS at org.sdas.core.client.SDASClient.<init>(SDASClient.java:117)
Client
If you are not if your version supports it, you can run onYou have a conflict with the XML-RPC library that comes with Matlab. To solve this, follow these steps, type in the Matlab console:
...
This will give you a list of all java libraries being loaded at start. If there are no references toFind where apache_xmlrpc_client.jar, apache_xmlrpc_common.jar and apache_xmlrpc_server.jar, athen you need to download the following files instead:re located and move them
Apache XML-RPC
Apache Jakarta Commons
Add all of the downloaded libraries to your systemtoanother folder classpath.
Use the matlab Restart Matlab and trystatic pathconnecting. More information at the matlab documentation site.
If your are unable to set thetoSDAS again static path on your computer you can use the dynamic path.
import org.sdas.core.client.*; client = SDASClient('baco.ipfn.tecnico.ulisboa.pt', 8890);
If 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
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:
SDAS Core Libraries
SDAS 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.
...
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.XmlRpcRequestat 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:
...
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.
...
...
You should use the latest 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/"
if you have a recent version of Matlab that includes a XML-RPC library, download the following library into a folder of your system:
If you are not if your version supports it, you can run on the Matlab console:
...
This will give you a list of all java libraries being loaded at start. If there are no references to apache_xmlrpc_client.jar, apache_xmlrpc_common.jar and apache_xmlrpc_server.jar, then you need to download the following files instead:
Apache XML-RPC
Apache Jakarta Commons
Add all of the downloaded 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.
import org.sdas.core.client.*; client = SDASClient('baco.ipfn.tecnico.ulisboa.pt', 8890);
If you get an error check the classpath.
...