Items tagged with openmaple




I'm trying to export a plot using the open maple api but it looks like open maple API doesnt support certain specific features.


Eg. "Export(\"images\\\result1.gif\", plot(sin(x), title = \"The sine function\", thickness = 3, gridlines=true));"

Above works fine when executing in actual maple application (i.e. correctly exports with gridlines) however doing the same via open maple api it does export the chart but not the specified gridlines.


Had the same issue when setting axis options to show log instead of linear. 


Did anyone else get this? Is this a known issue with open maple api? Is there workaround available?




import com.maplesoft.openmaple.*;

import com.maplesoft.externalcall.MapleException;

class test


    public static void main( String args[] )


        String a[];

        Engine t;

        int i;

        a = new String[1];

        a[0] = "java";



            t = new Engine( a, new EngineCallBacksDefault(), null, null );

            t.evaluate( "int( x,x );" );


        catch ( MapleException e )


            System.out.println( "An exception occurred\n" );



        System.out.println( "Done\n" );



This code error import com.maplesoft.externalcall.MapleException in java?

Please help me.

I try to connect Maple with C# by using OpenMaple at

But OpenMaple just excuted in x64 mode, I want to excute OpenMaple in "Any CPU" mode. How can I do this?

P/s: I'm using Windows 7 Ultimate x64 and Visual Studio Ultimate 2013.

When I used exportplot in Maple2015 , the GIF file made easily after Enter. But when I use Engine.evaluate in Java jOpenMaple. it works for every command but exportplot. It didn't create any GIF file. I'm working on project must be use this for create animation by Maple but now that make big trouble. Any one to help this ?

VeHinhNemXien := proc(Alpha,Vbd)
  local Y,V0,alpha,X,ball,Xmax,bgr;
  Y := unapply(V0*sin(alpha)*X/(V0*cos(alpha)) - 1/2*9.8*(X/(V0*cos(alpha)))^2,alpha,V0,X);
  ball := proc(x,y) plots[pointplot]([[x,y]],color=red,symbol=solidcircle,symbolsize=40) end proc;
  Xmax := 2*Vbd^2*sin(Alpha)*cos(Alpha)/9.8;
  bgr := plot(Y(Alpha,Vbd,X),X=0..Xmax,linestyle=[2]);
  animate(ball,[X,Y(Alpha,Vbd,X)],X=0..Xmax,scaling=constrained,labels=["Độ xa","Độ cao"],frames=60,background=bgr);
  exportplot(FileTools:-JoinPath([FileTools:-TemporaryDirectory(), "dothi.gif"]), animate(ball,[X,Y(Alpha,Vbd,X)],X=0..Xmax,scaling=constrained,labels=["Độ xa","Độ cao"],frames=60,background=bgr), gif);
end proc:

save VeHinhNemXien , "D:\\VeHinhNemXien.m";

in java file

String a[];
        a = new String[1];
        a[0] = "java";
        t = new Engine(a, new EngineCallBacksDefault(), null, null);

        t.evaluate("read \"resources/VeHinhNemXien.m\";");

        t.evaluate(....query to call VeHinhNemXien to draw plot).

I checked carefully. When call it on Maple, it created GIF, but not in java. I checked queryString carefully.

New Info. I find that when I t.evaluate(....query to call VeHinhNemXien to draw plot) . this code make java stop there. that mean no code after this line can run.



I'm working in a project where I use the Java Open Maple library. I need to evaluate a procedure but with a very large number. In the function engine.newNumeric() the only large option is a long which is not enough for me. I use Java BigInteger class to represent my very large numbers. Any suggestions that might help is very welcomed!


Thank you

I use Maple18 on unix 64. I have the MAPLE and the LD_LIBRARY_PATH properly set up to use OpenMaple. When I link my code to OpenMaple library I get segmentation fault when I try to debug using gdb. In order to isolate the problem, I created a simple file that contains the following:


#include <string>

#include <stdio.h>


int main()


int x = 10;

std::string abc;

abc = "testString";

printf("this is it %s\n", abc.c_str());



When I compile the code using g++ -g -o temp I can run ./temp and step into the code using gdb with no problems.


If I link to Maple Library g++ -g -o temp -L/opt/maple18/bin.X86_64_LINUX –lmaplec


I can run the code ./temp but I can not step into it using gdb. I get the error as shown below when I try to step over std::string abc.




GNU gdb (GDB) 7.8

Copyright (C) 2014 Free Software Foundation, Inc.

License GPLv3+: GNU GPL version 3 or later <>

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law.  Type "show copying"

and "show warranty" for details.

This GDB was configured as "x86_64-unknown-linux-gnu".

Type "show configuration" for configuration details.

For bug reporting instructions, please see:


Find the GDB manual and other documentation resources online at:


For help, type "help".

Type "apropos word" to search for commands related to "word"...

Reading symbols from temp...done.

(gdb) b main

Breakpoint 1 at 0x40091f: file, line 6.

(gdb) r

Starting program: xxxxxxxxxxxxxxxxxxxxxxxxxxx

[Thread debugging using libthread_db enabled]

Using host libthread_db library "/lib/".


Breakpoint 1, main () at

6         int x = 10;

(gdb) n

7       std::string abc;

(gdb) n

BFD: reopening /tmp/xf-dll/xf-1274259bc6684076beea8652f625b03bf2133.tmp: No such file or directory


BFD: reopening /tmp/xf-dll/xf-1274259bc6684076beea8652f625b03bf2133.tmp: No such file or directory


BFD: reopening /tmp/xf-dll/xf-1274259bc6684076beea8652f625b03bf2133.tmp: No such file or directory


Can't read data for section '.eh_frame' in file '/tmp/xf-dll/xf-1274259bc6684076beea8652f625b03bf2133.tmp'

0x00000000004007a8 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string()@plt


(gdb) n

Single stepping until exit from function _ZNSsC1Ev@plt,

which has no line number information.

Segmentation fault

Hello Forum:

In the Programming Guide, section 14.3 (Programming Guide: Advanced Connectivity), the subsection `Runtime Environment Prerequisites' a sample script is given in order to set up the environment varibales MAPLE and LD_LIBRARY_PATH:


export MAPLE="/usr/local/maple"
. $MAPLE/bin/maple -norun
myapp $*


For testing, `my app $*' can be replaced by `printenv': it seems not to work with Maple 2015.

Any hint ?

Thanks in advance,



when using jopenmaple, some maple command will cause jvm crash due to stack overflow exception, but has no trouble if issued in Maple GUI.


after some digging, i found that the stacklimit in Maple GUI is 130941. but if I use jopenmaple to invoke command "kernelopts(stacklimit);", the result is 893.  further more, if i try to increase stacklimit by issuing "kernelopts(stacklimit=894)", maple kenerl tells me that i cant increase it beyond hardlimit.


so here are my questions: 

1. why are the two stacklimits different?

2. is there a way to increase the hardlimit so that i can increase the stacklimit when using java invoking maple commands?

some platform information:

OS: windows 7 64bit

JAVA: jdk1.7 64bit





I'm using Java OpenMaple interface to call Maple functions from Java on Ubuntu Linux. I'm following the examples provided on Maple website. My Java code:


import com.maplesoft.openmaple.*;

import com.maplesoft.externalcall.MapleException;

class test {

    public static void main( String args[] ) throws Exception {

        String[] a = {"java"};

        Engine  t = new Engine( a, new EngineCallBacksDefault(), null, null );

        try {

            t.evaluate( "factor(-8*((16*I)*g**4*(-4*mc**2+u)**(-2)*(4*mb**2-u)**(-2)*u**(-1)*(12*mb**2-u)*(-4*s*mb**2+16*mb**4-4*u*mb**2+t*u-4*t*mb**2)*s*(4*s*mb**2+4*mc**2*s+16*mc**2*mb**2-s**2-4*t*mc**2+t**2-4*t*mb**2)*(12*mc**2-u)+(16*I)*(4*s*mb**2+4*mc**2*s+u**2-4*mc**2*u+16*mc**2*mb**2-4*u*mb**2-s**2)*(12*mc**2-t)*g**4*(t-4*mb**2)**(-2)*(4*mc**2-t)**(-2)*(-t+12*mb**2)*(-4*s*mb**2+16*mb**4-4*u*mb**2+t*u-4*t*mb**2)*s*t**(-1))**2);" );


        catch ( MapleException e ) {






Maple throws exception:

com.maplesoft.externalcall.MapleException: Error, (in evala/Factors) input must be polynomials over the integers

The input polynoial is valid (when coping and pasting `factor(...)` directly into Maple interface, all works). When trying to factor simple polynomials like "x**2 - I*x" all goes fine too. Tried both Maple 17 and 18 (Linux).

PS. There is no problem when running this code on OS X (I tried Maple 16, 17, 18),  but I need to be able to run Maple with Java on my Linux cluster.


The program below coredumps once executed:

Engine mapleEngine = new Engine(new String[]{"java"}, new EngineCallBacksCustom(), null, null );

mapleEngine.evaluate("Groebner:-Basis(numer([lend2-lend2, lenh1-lenh1, trig7-lenh1/lenk1, degb1-degb1, degc1+degb1+degz1-180, degf1+degb1-degy1, degb1+degi1+degf1-180, degc1+degb1-degr1, degi1+degb1-degg1, degc2+degb1+dege1-180, degi2+dego1+degh2+degb1-360, lenl1-lenl1, lenb2/lenl1-lena2/lenn1, areat2-(1/2)*lenl1*lenh1, trig6-lenh1/lenj1, -lend1^2+lenh1^2+lenj1^2, lenb2/lenl1-lenl1/lend1, lend1+lend2-lenb2, lend1-lend1, lenl1/lend1-lena2/lenn1, trig2-lenj1/lend1, trig3-lenh1/lend1, trig4-lenh1/lend1, trig1-lenj1/lend1, areas2-(1/2)*lenh1*lenj1, lenj1+lenk1-lenl1, lenj1-lenj1, trig5-lenj1/lenh1, degb1+degi1-90, degz1-degm1-degi1, degi2-degx1-degm1-degi1, degi1-degi1, lenb2-lenb2, lena2-lena2, areaq2-(1/2)*lene2*lenn1, lene2^2+lenn1^2-lenp1^2, lenn1-lenn1, trig8-lenn1/lenp1, trig9-lenn1/lenp1, trig10-lene2/lenn1, trig11-lenn1/lene2, lenh1^2+lenk1^2-lenn1^2, lene2/lenk1-lenn1/lenh1, lene2/lenk1-lenp1/lenn1, lenn1/lenh1-lenp1/lenn1, trig12-lenk1/lenn1, trig13-lenh1/lenn1, trig14-lenh1/lenn1, trig15-lenk1/lenn1, arear2-(1/2)*lenh1*lenk1, lenk1-lenk1, trig16-lenk1/lenh1, degb1-45, degc1-60, lend1-3*2^(1/2)]), 'tord');");


The coredump Information:

# A fatal error has been detected by the Java Runtime Environment:
# EXCEPTION_STACK_OVERFLOW (0xc00000fd) at pc=0x0000000012a53f47, pid=1860, tid=7456
# JRE version: Java(TM) SE Runtime Environment (7.0_51-b13) (build 1.7.0_51-b13)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.51-b03 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C [fgbuni.dll+0xc3f47]
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
# If you would like to submit a bug report, please visit:
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.

--------------- T H R E A D ---------------

Current thread (0x0000000002d94800): JavaThread "main" [_thread_in_native, id=7456, stack(0x0000000002c90000,0x0000000002d90000)]

siginfo: ExceptionCode=0xc00000fd, ExceptionInformation=0x0000000000000001 0x0000000002c90000

RAX=0x0000000000042f40, RBX=0x0000000000010bd0, RCX=0x00000000183ec740, RDX=0x0000000000010711
RSP=0x0000000002cc7c98, RBP=0x0000000002cc7cd0, RSI=0x0000000000000000, RDI=0x00000000183ec740
R8 =0x0000000000010bd0, R9 =0x0000000000042f40, R10=0x0000000002c84000, R11=0x0000000002c90000
R12=0x0000000019821178, R13=0x0000000000010711, R14=0x00000000132c9040, R15=0x0000000000010bd0
RIP=0x0000000012a53f47, EFLAGS=0x0000000000010206

Top of Stack: (sp=0x0000000002cc7c98)
0x0000000002cc7c98: 0000000000010bd0 0000000017ab3ec8
0x0000000002cc7ca8: 000000001299ff7c 000000000002783a
0x0000000002cc7cb8: 000000000002e025 00000000132c9050
0x0000000002cc7cc8: 0000000000000001 000000001345abac
0x0000000002cc7cd8: 0000000012997bdd 0000000000000018
0x0000000002cc7ce8: 00010bd000010bce 0000000000010711
0x0000000002cc7cf8: 00000000183ec740 000000001345abdc
0x0000000002cc7d08: 0000000000000000 00000000132c9050
0x0000000002cc7d18: 0000000000000000 0000000000000068
0x0000000002cc7d28: 0000000000010bd0 00007e5476285214
0x0000000002cc7d38: 0000000000010711 0000000000010bd0
0x0000000002cc7d48: 00000000132c9040 0000000000010711
0x0000000002cc7d58: 0000000019821178 0000000000000012
0x0000000002cc7d68: 00000000129a110a 0000000000010bd0
0x0000000002cc7d78: 0000000000000000 00000000183ec740
0x0000000002cc7d88: 000000001345abc4 00000000132c9040

Instructions: (pc=0x0000000012a53f47)
0x0000000012a53f27: d0 4d 0f 42 d3 65 4c 8b 1c 25 10 00 00 00 4d 3b
0x0000000012a53f37: d3 73 16 66 41 81 e2 00 f0 4d 8d 9b 00 f0 ff ff
0x0000000012a53f47: 41 c6 03 00 4d 3b d3 75 f0 4c 8b 14 24 4c 8b 5c
0x0000000012a53f57: 24 08 48 83 c4 10 c3 cc cc 48 83 ec 28 ff 15 26

Register to memory mapping:

RAX=0x0000000000042f40 is an unknown value
RBX=0x0000000000010bd0 is an unknown value
RCX=0x00000000183ec740 is an unknown value
RDX=0x0000000000010711 is an unknown value
RSP=0x0000000002cc7c98 is pointing into the stack for thread: 0x0000000002d94800
RBP=0x0000000002cc7cd0 is pointing into the stack for thread: 0x0000000002d94800
RSI=0x0000000000000000 is an unknown value
RDI=0x00000000183ec740 is an unknown value
R8 =0x0000000000010bd0 is an unknown value
R9 =0x0000000000042f40 is an unknown value
R10=0x0000000002c84000 is an unknown value
R11=0x0000000002c90000 is an unknown value
R12=0x0000000019821178 is an unknown value
R13=0x0000000000010711 is an unknown value
R14=0x00000000132c9040 is an unknown value
R15=0x0000000000010bd0 is an unknown value

Stack: [0x0000000002c90000,0x0000000002d90000], sp=0x0000000002cc7c98, free space=223k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [fgbuni.dll+0xc3f47]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j com.maplesoft.openmaple.Engine.evaluate(Ljava/lang/String;)Lcom/maplesoft/openmaple/Algebraic;+0
j com.tsinghuabigdata.TestMaple.main([Ljava/lang/String;)V+29
v ~StubRoutines::call_stub

--------------- P R O C E S S ---------------

Java Threads: ( => current thread )
0x000000000b214000 JavaThread "Service Thread" daemon [_thread_blocked, id=8032, stack(0x000000000c910000,0x000000000ca10000)]
0x0000000002e8e000 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=3304, stack(0x000000000c810000,0x000000000c910000)]
0x0000000002e89000 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=7072, stack(0x000000000c710000,0x000000000c810000)]
0x000000000b205800 JavaThread "Attach Listener" daemon [_thread_blocked, id=432, stack(0x000000000c610000,0x000000000c710000)]
0x000000000b1ae000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=7280, stack(0x000000000c510000,0x000000000c610000)]
0x0000000002e7f000 JavaThread "Finalizer" daemon [_thread_blocked, id=8060, stack(0x000000000c410000,0x000000000c510000)]
0x0000000002e74000 JavaThread "Reference Handler" daemon [_thread_blocked, id=4448, stack(0x000000000c310000,0x000000000c410000)]
=>0x0000000002d94800 JavaThread "main" [_thread_in_native, id=7456, stack(0x0000000002c90000,0x0000000002d90000)]

Other Threads:
0x000000000b183000 VMThread [stack: 0x000000000c210000,0x000000000c310000] [id=7992]
0x000000000b21e000 WatcherThread [stack: 0x000000000ce10000,0x000000000cf10000] [id=8124]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

PSYoungGen total 38400K, used 2663K [0x00000007d5c80000, 0x00000007d8700000, 0x0000000800000000)
eden space 33280K, 8% used [0x00000007d5c80000,0x00000007d5f19db0,0x00000007d7d00000)
from space 5120K, 0% used [0x00000007d8200000,0x00000007d8200000,0x00000007d8700000)
to space 5120K, 0% used [0x00000007d7d00000,0x00000007d7d00000,0x00000007d8200000)
ParOldGen total 86016K, used 0K [0x0000000781600000, 0x0000000786a00000, 0x00000007d5c80000)
object space 86016K, 0% used [0x0000000781600000,0x0000000781600000,0x0000000786a00000)
PSPermGen total 21504K, used 2827K [0x000000077c400000, 0x000000077d900000, 0x0000000781600000)
object space 21504K, 13% used [0x000000077c400000,0x000000077c6c2c38,0x000000077d900000)

Card table byte_map: [0x0000000005f50000,0x0000000006370000] byte_map_base: 0x000000000236e000

Polling page: 0x0000000001080000

Code Cache [0x0000000002e90000, 0x0000000003100000, 0x0000000005e90000)
total_blobs=216 nmethods=26 adapters=143 free_code_cache=48704Kb largest_free_block=49836288

Compilation events (10 events):
Event: 0.238 Thread 0x0000000002e8e000 nmethod 15 0x0000000002eff2d0 code [0x0000000002eff4e0, 0x0000000002f00240]
Event: 0.238 Thread 0x0000000002e8e000 23 sun.nio.cs.UTF_8$Decoder::decodeArrayLoop (543 bytes)
Event: 0.252 Thread 0x0000000002e89000 nmethod 22 0x0000000002f01090 code [0x0000000002f01260, 0x0000000002f024e0]
Event: 0.252 Thread 0x0000000002e89000 24 java.lang.String::replace (127 bytes)
Event: 0.255 Thread 0x0000000002e8e000 nmethod 23 0x0000000002efb610 code [0x0000000002efb840, 0x0000000002efc3b8]
Event: 0.255 Thread 0x0000000002e8e000 25 sun.nio.cs.UTF_8$Encoder::encode (361 bytes)
Event: 0.261 Thread 0x0000000002e89000 nmethod 24 0x0000000002efd010 code [0x0000000002efd160, 0x0000000002efd598]
Event: 0.261 Thread 0x0000000002e89000 26 (336 bytes)
Event: 0.262 Thread 0x0000000002e8e000 nmethod 25 0x0000000002ef69d0 code [0x0000000002ef6b20, 0x0000000002ef7008]
Event: 0.278 Thread 0x0000000002e89000 nmethod 26 0x0000000002f071d0 code [0x0000000002f07400, 0x0000000002f084d8]

GC Heap History (0 events):
No events

Deoptimization events (1 events):
Event: 0.229 Thread 0x0000000002d94800 Uncommon trap: reason=unreached action=reinterpret pc=0x0000000002ef7c70 method=java.lang.String.equals(Ljava/lang/Object;)Z @ 2

Internal exceptions (10 events):
Event: 0.033 Thread 0x0000000002d94800 Threw 0x00000007d5c90778 at C:\re\jdk7u51\527\hotspot\src\share\vm\prims\jni.cpp:3991
Event: 0.161 Thread 0x0000000002d94800 Threw 0x00000007d5d5ca68 at C:\re\jdk7u51\527\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 0.167 Thread 0x0000000002d94800 Threw 0x00000007d5d62858 at C:\re\jdk7u51\527\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 0.200 Thread 0x0000000002d94800 Threw 0x00000007d5e000c0 at C:\re\jdk7u51\527\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 0.200 Thread 0x0000000002d94800 Threw 0x00000007d5e001e8 at C:\re\jdk7u51\527\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 0.236 Thread 0x0000000002d94800 Threw 0x00000007d5eb4ef8 at C:\re\jdk7u51\527\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 0.238 Thread 0x0000000002d94800 Threw 0x00000007d5ec5658 at C:\re\jdk7u51\527\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 0.239 Thread 0x0000000002d94800 Threw 0x00000007d5ecfe40 at C:\re\jdk7u51\527\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 0.243 Thread 0x0000000002d94800 Threw 0x00000007d5edb170 at C:\re\jdk7u51\527\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 0.281 Thread 0x0000000002d94800 Threw 0x00000007d5ede4e8 at C:\re\jdk7u51\527\hotspot\src\share\vm\prims\jvm.cpp:1244

Events (10 events):
Event: 0.243 loading class 0x0000000002e82650
Event: 0.243 loading class 0x0000000002e82650 done
Event: 0.281 loading class 0x0000000002e31450
Event: 0.281 loading class 0x0000000002e313f0
Event: 0.281 loading class 0x0000000002e313f0 done
Event: 0.281 loading class 0x0000000002e31450 done
Event: 0.281 loading class 0x000000000cdbc760
Event: 0.281 loading class 0x000000000cdbc760 done
Event: 4.173 Executing VM operation: EnableBiasedLocking
Event: 4.173 Executing VM operation: EnableBiasedLocking done

Dynamic libraries:
0x00007ff66ea10000 - 0x00007ff66ea43000 C:\Program Files\Java\jdk1.7.0_51\bin\javaw.exe
0x00007ffc4d3d0000 - 0x00007ffc4d57c000 C:\Windows\SYSTEM32\ntdll.dll
0x00007ffc4c160000 - 0x00007ffc4c29e000 C:\Windows\system32\KERNEL32.DLL
0x00007ffc4a2c0000 - 0x00007ffc4a3d5000 C:\Windows\system32\KERNELBASE.dll
0x00007ffc48d50000 - 0x00007ffc48dde000 C:\Windows\system32\apphelp.dll
0x00007ffc33070000 - 0x00007ffc330c3000 C:\Windows\AppPatch\AppPatch64\AcGenral.DLL
0x00007ffc4cb80000 - 0x00007ffc4cc2a000 C:\Windows\system32\msvcrt.dll
0x00007ffc49f40000 - 0x00007ffc49f6e000 C:\Windows\SYSTEM32\SspiCli.dll
0x00007ffc4cc30000 - 0x00007ffc4cc84000 C:\Windows\system32\SHLWAPI.dll
0x00007ffc4d090000 - 0x00007ffc4d207000 C:\Windows\system32\USER32.dll
0x00007ffc4c630000 - 0x00007ffc4c7c4000 C:\Windows\system32\ole32.dll
0x00007ffc4a750000 - 0x00007ffc4bc68000 C:\Windows\system32\SHELL32.dll
0x00007ffc49720000 - 0x00007ffc49741000 C:\Windows\SYSTEM32\USERENV.dll
0x00007ffc4c9a0000 - 0x00007ffc4ca4a000 C:\Windows\system32\ADVAPI32.dll
0x00007ffc3fe10000 - 0x00007ffc3fe2e000 C:\Windows\SYSTEM32\MPR.dll
0x00007ffc4c4d0000 - 0x00007ffc4c611000 C:\Windows\system32\RPCRT4.dll
0x00007ffc4cca0000 - 0x00007ffc4ccf9000 C:\Windows\SYSTEM32\sechost.dll
0x00007ffc4bc70000 - 0x00007ffc4be81000 C:\Windows\SYSTEM32\combase.dll
0x00007ffc4d270000 - 0x00007ffc4d3c1000 C:\Windows\system32\GDI32.dll
0x00007ffc4a130000 - 0x00007ffc4a145000 C:\Windows\SYSTEM32\profapi.dll
0x00007ffc48990000 - 0x00007ffc48a42000 C:\Windows\SYSTEM32\SHCORE.dll
0x00007ffc4be90000 - 0x00007ffc4bec6000 C:\Windows\system32\IMM32.DLL
0x00007ffc4c370000 - 0x00007ffc4c4c2000 C:\Windows\system32\MSCTF.dll
0x00007ffc480b0000 - 0x00007ffc4832b000 C:\Windows\WinSxS\\COMCTL32.dll
0x00000000521a0000 - 0x0000000052272000 C:\Program Files\Java\jdk1.7.0_51\jre\bin\msvcr100.dll
0x00000000519d0000 - 0x0000000052199000 C:\Program Files\Java\jdk1.7.0_51\jre\bin\server\jvm.dll
0x00007ffc43dd0000 - 0x00007ffc43dd9000 C:\Windows\SYSTEM32\WSOCK32.dll
0x00007ffc4a720000 - 0x00007ffc4a742000 C:\Windows\system32\WINMM.dll
0x00007ffc4ca50000 - 0x00007ffc4ca57000 C:\Windows\system32\PSAPI.DLL
0x00007ffc4d210000 - 0x00007ffc4d26a000 C:\Windows\system32\WS2_32.dll
0x00007ffc4a210000 - 0x00007ffc4a23a000 C:\Windows\system32\WINMMBASE.dll
0x00007ffc4cc90000 - 0x00007ffc4cc99000 C:\Windows\system32\NSI.dll
0x00007ffc4a490000 - 0x00007ffc4a4df000 C:\Windows\SYSTEM32\cfgmgr32.dll
0x00007ffc4a1e0000 - 0x00007ffc4a208000 C:\Windows\system32\DEVOBJ.dll
0x00000000527f0000 - 0x00000000527ff000 C:\Program Files\Java\jdk1.7.0_51\jre\bin\verify.dll
0x00000000519a0000 - 0x00000000519c8000 C:\Program Files\Java\jdk1.7.0_51\jre\bin\java.dll
0x0000000051980000 - 0x0000000051995000 C:\Program Files\Java\jdk1.7.0_51\jre\bin\zip.dll
0x00007ffc30810000 - 0x00007ffc3082d000 C:\Program Files\Maple 18\bin.X86_64_WINDOWS\jopenmaple.dll
0x00007ffc293b0000 - 0x00007ffc293c1000 C:\Windows\SYSTEM32\maplec.dll
0x00007ffc24060000 - 0x00007ffc249a1000 C:\Program Files\Maple 18\bin.X86_64_WINDOWS\maple.dll
0x00007ffc46bf0000 - 0x00007ffc46c06000 C:\Windows\SYSTEM32\NETAPI32.dll
0x00007ffc4c120000 - 0x00007ffc4c136000 C:\Windows\system32\imagehlp.dll
0x00007ffc40ea0000 - 0x00007ffc40ea8000 C:\Program Files\Maple 18\bin.X86_64_WINDOWS\libhf.dll
0x0000000180000000 - 0x000000018000e000 C:\Program Files\Maple 18\bin.X86_64_WINDOWS\pthreadVC2.dll
0x00007ffc4cac0000 - 0x00007ffc4cb76000 C:\Windows\system32\COMDLG32.dll
0x00007ffc493c0000 - 0x00007ffc493cc000 C:\Windows\SYSTEM32\netutils.dll
0x00007ffc49d60000 - 0x00007ffc49d86000 C:\Windows\SYSTEM32\srvcli.dll
0x00007ffc46bb0000 - 0x00007ffc46bc7000 C:\Windows\SYSTEM32\wkscli.dll
0x000000000d710000 - 0x000000000da54000 C:\Program Files\Maple 18\bin.X86_64_WINDOWS\libmmd.dll
0x0000000052d60000 - 0x0000000052e29000 C:\Windows\WinSxS\amd64_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.8428_none_88dcdb0b2fb19957\MSVCR80.dll
0x00007ffc49990000 - 0x00007ffc499e9000 C:\Windows\system32\mswsock.dll
0x00007ffc40280000 - 0x00007ffc40295000 C:\Windows\system32\napinsp.dll
0x00007ffc402a0000 - 0x00007ffc402ba000 C:\Windows\system32\pnrpnsp.dll
0x00007ffc46c80000 - 0x00007ffc46c9b000 C:\Windows\system32\NLAapi.dll
0x00007ffc49790000 - 0x00007ffc49834000 C:\Windows\SYSTEM32\DNSAPI.dll
0x00007ffc40270000 - 0x00007ffc4027d000 C:\Windows\System32\winrnr.dll
0x00007ffc402c0000 - 0x00007ffc402d4000 C:\Windows\system32\wshbth.dll
0x00007ffc40ed0000 - 0x00007ffc40eda000 C:\Windows\System32\rasadhlp.dll
0x00000000669c0000 - 0x0000000066a4a000 C:\Program Files\Maple 18\bin.X86_64_WINDOWS\libmaplegmp-10.dll
0x00007ffc37130000 - 0x00007ffc37133000 C:\Windows\SYSTEM32\icmp.Dll
0x00007ffc43d50000 - 0x00007ffc43d7a000 C:\Windows\SYSTEM32\iphlpapi.DLL
0x00007ffc43d30000 - 0x00007ffc43d3a000 C:\Windows\SYSTEM32\WINNSI.DLL
0x00007ffc43590000 - 0x00007ffc435fb000 C:\Windows\System32\fwpuclnt.dll
0x00007ffc22c70000 - 0x00007ffc24051000 C:\Program Files\Maple 18\bin.X86_64_WINDOWS\mstring.dll
0x00007ffc25f40000 - 0x00007ffc26026000 C:\Program Files\Maple 18\bin.X86_64_WINDOWS\modLA.dll
0x00007ffc26e70000 - 0x00007ffc26e87000 C:\Program Files\Maple 18\bin.X86_64_WINDOWS\arraytools.dll
0x0000000012990000 - 0x0000000012d69000 C:\Program Files\Maple 18\bin.X86_64_WINDOWS\fgbuni.dll
0x00007ffc364a0000 - 0x00007ffc3662a000 C:\Windows\SYSTEM32\dbghelp.dll

VM Arguments:
jvm_args: -Djava.library.path=C:\Program Files\Maple 18\bin.X86_64_WINDOWS;D:\smartmatch\autojudge_V3\dll -Dfile.encoding=UTF-8
java_command: com.tsinghuabigdata.TestMaple
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=C:\Program Files\Java\jdk1.6.0_45
CLASSPATH=.;C:\Program Files\Java\jdk1.6.0_45\lib;C:\Program Files\Java\jdk1.6.0_45\lib\tools.jar;D:\JAVA_PATH
PATH=C:\Program Files\Maple 18\jre\bin\client;C:\Program Files\Maple 18\bin.X86_64_WINDOWS;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\NetSarang;c:\Program Files (x86)\Intel\iCLS Client\;c:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Windows Live\Shared;JAVA_HOME\bin;JAVA_HOME\jre\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\IDM Computer Solutions\UltraEdit\;C:\Program Files\Java\jdk1.6.0_45\bin;C:\Program Files\Java\jdk1.6.0_45\jre\bin;D:\Program Files\maven\bin;C:\Python27;C:\Python27\Scripts
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 69 Stepping 1, GenuineIntel


--------------- S Y S T E M ---------------

OS: Windows 8 , 64 bit Build 9200

CPU:total 4 (2 cores per cpu, 2 threads per core) family 6 model 69 stepping 1, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, erms, ht, tsc, tscinvbit

Memory: 4k page, physical 8290760k(3738828k free), swap 9601480k(3195268k free)

vm_info: Java HotSpot(TM) 64-Bit Server VM (24.51-b03) for windows-amd64 JRE (1.7.0_51-b13), built on Dec 18 2013 18:40:56 by "java_re" with unknown MS VC++:1600

time: Fri Apr 24 13:48:05 2015
elapsed time: 5 seconds


This is a question I have also submitted to the technical support, I am worried that it is a bit too technical for them, however:)

I am debugging a C program which links against the OpenMaple API library (under Linux and with Maple 17 and 18). I am using valgrind memcheck, because I am experiencing strange behavior which could be due to writes beyond allocated blocks of memory.  

The first thing which jumps to my eye, are many errors of the types

Use of uninitialised value of size (4/8/16)

Invalid read of size (4/8/16)

Conditional jump or move depends on uninitialised value(s)

The same errors are also printed when I use the examples that ship with Maple. For instance, I compile "simple.c" with

gcc  -Wl,--no-as-needed -lmaple -lmaplec -lrt -L /usr/lib -L $MAPLEDIR/bin.X86_64_LINUX -I $MAPLEDIR/extern/include -o simple simple.c

and run valgrind as

valgrind --tool=memcheck --error-limit=no --log-file=memcheck.log ./simple


Some, but not all, of the errors occur in __intel_sse2_strcpy or __intel_sse2_strlen. Furthermore, according to valgrind there are definite memory leaks. which appear in the library. 

Practically this makes it hard for me to identify my potential own errors. I am a bit surprised to see so many warnings because I tend to fix my own programs until memcheck does not print these anymore (before I give it away at least). The question is: Can I consider these errors as safe to ignore? How would I distinguish real errors which may appear in my application?

I am considering options to access Maple features from within a Fortran program using the OpenMaple API. I do not find any examples illustrating this (or even precise statements if this is possible in principle). (Quite surprising to me considering the presence of Fortran in scientific computing).

Is the only way to go to write a C wrapper for the API? If yes, is there an example for such a wrapper which performs common conversions between Fortran and C data types.


Hi all,

I tried to create the*.exe file by C and call the kernel of maple for calculation.

To understand the OpenMaple, I ran the OpenMaple C code sample, “simple.c” in “<Maple>\ samples\OpenMaple\simple” through Microsoft Visual C++ 2008 but got the incorrect result:


It’s seems that the error is happen due to the wrong maple directory. But according to the description of "kernelopts" in help, the value of mapledir cannot be set.


Refer to the description of  "OpenMaple,Examples" in help , both header file path and library file path had been set:

O/S: Windows (32-bit)

Header file Directories: "C:\Program Files\Maple 17\extern\include"

Library Directories: "C:\Program Files\Maple 17\"

Environment Variable: "C:\program files\Maple 17\"


I'd appreciate any help on this topic. Thank a lot.

how to use c# check whether maple is installed


Actually the goal is to output a numeric to c# variable after run a procedure

i use EvalMapleStatement to run the procedure body and then

use another EvalMapleStatement to call this procedure

it do not know the procedure or variable in last EvalMapleStatement


then i think whether i can run it once with one EvalMapleStatment

however i got maple warning about declared local variables to procedure

so, the output...

1 2 3 Page 1 of 3