IO package: Difference between revisions

36 bytes added ,  5 December 2011
using <pre> blocks for code blocks in lists
(using <pre> blocks for code blocks in lists)
(using <pre> blocks for code blocks in lists)
Line 367: Line 367:
#:exl = actxserver ('Excel.Application') ## Note the period between 'Excel' and 'Application'
#:exl = actxserver ('Excel.Application') ## Note the period between 'Excel' and 'Application'
##If a COM object is returned, ActiveX / COM / Excel works. Do:
##If a COM object is returned, ActiveX / COM / Excel works. Do:
##: exl.Quit(); delete (exl) ## to shut down the (hidden) Excel invocation.
##:<pre>exl.Quit(); delete (exl) ## to shut down the (hidden) Excel invocation.</pre>
##If you get an error message, your last resort is re-installing the windows package, or trying the Java-based interfaces.
##If you get an error message, your last resort is re-installing the windows package, or trying the Java-based interfaces.
#Check if java works. Do a ''pkg list'' and see:
#Check if java works. Do a ''pkg list'' and see:
Line 373: Line 373:
##If there's an asterisk on the java package line (then the package is loaded). If not, do a pkg rebuild -auto java
##If there's an asterisk on the java package line (then the package is loaded). If not, do a pkg rebuild -auto java
#Check Java memory settings. Try
#Check Java memory settings. Try
#:javamem
#:<pre>javamem</pre>
##If it works, check if it reports sufficiently large max memory (had better be 200 MiB, the bigger the better)
##If it works, check if it reports sufficiently large max memory (had better be 200 MiB, the bigger the better)
##If it doesn't work, do:
##If it doesn't work, do:
##:<pre>
##:rt = java_invoke ('java.lang.Runtime', 'getRuntime')
##:rt = java_invoke ('java.lang.Runtime', 'getRuntime')
##:rt.gc
##:rt.gc
##:rt.maxMemory ().doubleValue () / 1024 / 1024 ## show MaxMemory in MiB.
##:rt.maxMemory ().doubleValue () / 1024 / 1024 ## show MaxMemory in MiB.</pre>
##In case you have insufficient memory, see in "GOTCHAS", "Java memory pool allocation size", how to increase java's memory pre-reservation.
##In case you have insufficient memory, see in "GOTCHAS", "Java memory pool allocation size", how to increase java's memory pre-reservation.
#Check if all classes (.jarfiles) are in class path. Do a 'javaclasspath' (under unix/linux, do 'tmp = javaclasspath; strsplit (tmp,":")' (w/o quotes). See above under "REQUIRED SUPPORT SOFTWARE" what classes should be mentioned.
#Check if all classes (.jarfiles) are in class path. Do a 'javaclasspath' (under unix/linux, do 'tmp = javaclasspath; strsplit (tmp,":")' (w/o quotes). See above under "REQUIRED SUPPORT SOFTWARE" what classes should be mentioned.