on Java Advanced Imaging I/O and MAC OS X.

504 views
Skip to first unread message

Brian O’Brien

unread,
Jul 7, 2014, 12:52:36 PM7/7/14
to rsnas-ctpmir...@googlegroups.com
I'm finding it hard to figure out the status of this library and its availability on mac os x. 
I found this link: 

http://download.java.net/media/jai-imageio/builds/release/1.1/ 

I decided that: 
  jai_imageio-1_1-lib-linux-i586.tar.gz   

was the correct file for mac os x. 

This contained these files: (and others) 

clibwrapper_jiio.jar 
jai_imageio.jar 


Following instructions I found at: 
http://mircwiki.rsna.org/index.php?title=CTP-The_RSNA_Clinical_Trial_Processor#ImageIO_Tools_for_Macintosh 

I Place these two files into /System/Library/Java/Extensions. 

I'm not sure this will work in a 64bit environment... Much of what I found seemed to point me to using a 32 bit environment. 

Can anyone comment on this? 

After installing as per instructions, I do not see it as active in the web interface.

David Clunie

unread,
Jul 7, 2014, 1:29:39 PM7/7/14
to rsnas-ctpmir...@googlegroups.com
I use these with my tools on Mac with a 64 bit Java version.

BUT, I assume you realize that lots of things (like lossless
JPEG) are not supported on the Mac, because only native codecs
were written for these, and these were never compiled and released
for the Mac, only Windows.

David

Brian O’Brien

unread,
Jul 7, 2014, 1:53:04 PM7/7/14
to rsnas-ctpmir...@googlegroups.com, dcl...@dclunie.com
I am pondering the use of the word 'native' codecs.
I thought there was external C code that was called by java to do compression/decompression... I think this is what you mean.

David Clunie

unread,
Jul 7, 2014, 3:25:58 PM7/7/14
to rsnas-ctpmir...@googlegroups.com
Yes, and these are not available for the Mac.

David

John Perry

unread,
Jul 7, 2014, 3:29:57 PM7/7/14
to rsnas-ctpmir...@googlegroups.com
The two files contain Java class files, so they work on all Java implementations, both 32-bit and 64-bit.
 
The ImageIOTools for most platforms include native code for acceleration, which must run in the same bit-depth as the JVM, so you would need 32-bit ImageIOTools for a 32-bit Java.
 
For Windows, the native code is available only in 32 bits. That is why most of the CTP and TFS (MIRC) documentation says to run the 32-bit Java.
 
In the case of a Mac, there is no native component for the ImageIOTools, so you are running pure Java, and the bit-depth comments are not relevant.
 
l don’t know the directory structure of Java on a Mac. On a Windows machine, the default extensions directory is Java/jre7/bin/ext, and the two files you listed are placed there. If you’re sure the extensions directory on a Mac is .../Java/Extensions, then it makes sense to put the files in it.
 
To test that the ImageIOTools are being recognized, do something that requires them to be used and see if the log shows a ClassDefNotFound exception. One thing you could do is to put a DicomDecompressor stage in a pipeline and send the pipeline a compressed image.
 
JP
--
You received this message because you are subscribed to the Google Groups "RSNA's CTP/MIRC User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rsnas-ctpmirc-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages