Matlab

    Table of contents
    You are currently comparing two old versions - only when you are comparing against the latest version can you revert. Return to version archive.

    Combined revision comparison

    Comparing version 09:06, 18 Oct 2012 by aduarte with version 10:56, 5 Mar 2018 by aduarte.

    ...

    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.

    Test the java connection

    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:   
    ./windows.gif

    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

    ./linux.gif

     

    Supposing you have the java_home in /opt/jdk1.5.0_04/jre/ :

    export MATLAB_JAVA="/opt/jdk1.5.0_04/jre/"
    

    Get a connection to the sdas serverTest the java connection

    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 MatLab 8888);
    

    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:

    MatLab and XML-version -javaRPC

    If you get an erroranswer like:

    Java exception occurred:1.5.0_04 with
    java.lang.InstantiationError: org.apache.xmlrpc.XmlRpcRequestSun
            at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:177)Microsystems
            at org.sdas.core.client.SDASClient.authenticate(SDASClient.java:749)Inc.
            at org.sdas.core.client.SDASClient.<init>(SDASClient.java:256)Java
            at 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:

    1. /body/div[4]/p[3]/img/@src: "http://10.136.240.250/@api/deki/files/170/=windows.gif?size=bestfit&width=32&height=32""/@api/deki/files/170/=windows.gif?size=bestfit&width=32&height=32"
    2. /body/div[4]/p[5]/img/@src: "http://10.136.240.250/@api/deki/files/169/=linux.gif?size=bestfit&width=32&height=32""/@api/deki/files/169/=linux.gif?size=bestfit&width=32&height=32"

    Version from 09:06, 18 Oct 2012

    This revision modified by aduarte (Ban)

    ...

    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:

    SDAS Core Libraries
    SDAS Client

    ...

    Test the java connection

    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.

    Get a connection to the sdas server

    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.

    ...

    Version as of 10:56, 5 Mar 2018

    This revision modified by aduarte (Ban)

    ...

    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.

    Test the java connection

    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: 
    ./windows.gif

    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

    ./linux.gif

     

    Supposing you have the java_home in /opt/jdk1.5.0_04/jre/ :

    export MATLAB_JAVA="/opt/jdk1.5.0_04/jre/"
    

    Get a connection to the sdas server

    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.

    MatLab and XML-RPC

    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.

    ...

    Powered by MindTouch Core