HOW JAVA is used to read in Xradia *.txrm files which are in a binary format 
called Microsoft Structured Storage.
=========

file: SSRL-Xradia-TXRM-readin-Java.txt
last changed: 14-Apr-2103 (aph)

==========
Before Java can be called from IDL, the Environment Variable on the windows (or Unix) system must be set.

In the IDL 6.3 Help manaul, search  Environment variables then Path 
  to see how to change this

SETENV, 

========
From: "Florian Meirer" <fmeirer@gmail.com>
To: "Adam Hitchcock" <aph@mcmaster.ca>
Subject: Re: IDL
Date: Sun, 14 Apr 2013 10:37:48 +0200
From: Florian Meirer 
Sent: Thursday, April 11, 2013 9:38 PM
To: Adam Hitchcock 
Subject: Re: IDL
 
Hi Adam,
please find attached two .jar files including methods to read txm files.
I created them with some major help from my friend and colleague Dieter Ingerle from the Atominstitut of the Technical University of Vienna.
 
I included an IDL example program showing how it works.

In order to load the java objects I put the two *.jar files 
TxmImage.jar
poi-3.9-20121203.jar

into
C:\RSI\IDL63\resource\bridges\import\java

and changed the path variable in the file: idljavabrc

JVM Classpath = $CLASSPATH;C:\RSI\\IDL63\resource\bridges\import\java\TxmImage.jar;C:\RSI\\IDL63\resource\bridges\import\java\poi-3.9-20121203.jar
 
The TxmImage_methods.txt  file  lists all methods provided by the TxmImage class.

The poi-*.jar file is a bit on the large side because it is the Java API for Microsoft Documents but it takes care of all the issues reading structured storage files.
It will increase your package a bit but to me this is the most elegant solution.
 
I had not enough time to test everything thoroughly but so far it works for me  please let me know if you encounter any problems.
 
Cheers,
Florian
 
 
 