I am using Octave 4.0.1 (GUI version) on Windows 7 and am trying to talk to a DDE server. I am using the same approach as the answer to this question Matlab and JDDE. Here's what I have done so far:
- Downloaded and unzipped the JDDE package into
C:\Octave\Octave-4.0.1\pretty-tools-JDDE-2.0.3
- Created the files
javaclasspath.txt
andjavalibrarypath.txt
in my `prefdir. - Added
C:\Octave\Octave-4.0.1\pretty-tools-JDDE-2.0.3\pretty-tools-JDDE-2.0.3.jar
tojavaclasspath.txt
. - Added
C:\Octave\Octave-4.0.1\pretty-tools-JDDE-2.0.3
tojavalibrarypath.txt
In addition, I have also run the following command:
javaaddpath('C:\Octave\Octave-4.0.1\pretty-tools-JDDE-2.0.3')
I have restarted Octave and tried the following:
>> javaaddpath('C:\Octave\Octave-4.0.1\pretty-tools-JDDE-2.0.3\pretty-tools-JDDE-2.0.3.jar')
>> javaclasspath
STATIC JAVA PATH
C:\Octave\Octave-4.0.1\pretty-tools-JDDE-2.0.3\pretty-tools-JDDE-2.0.3.jar
DYNAMIC JAVA PATH
C:\Octave\Octave-4.0.1\pretty-tools-JDDE-2.0.3\pretty-tools-JDDE-2.0.3.jar
>> a = javaObject('com.pretty_tools.dde.client.DDEClientConversation')
error: [java] java.lang.UnsatisfiedLinkError: no JavaDDE in java.library.path
>> a = javaObject('com.pretty_tools.dde.client.DDEClientConversation')
error: [java] java.lang.NoClassDefFoundError: Could not initialize class com.pretty_tools.dde.client.DDEClientConversation
The description of the java class can be found here.
What am I doing wrong? Is the error message ralated to the java class/package or is there a more fundamental problem? Is there a better to interface to a DDE server from Octave? I should add that, although I am proficient with MATLAB/Octave, I know nothing about java or DDE.