[vtkusers] Mac OS X, Java guru needed, please.

Bernard Giroux giroux at geo.polymtl.ca
Wed Jan 17 08:44:52 EST 2007


Kenneth Sloan a écrit :
> 
> On Jan 16, 2007, at 5:11 PM, David E DeMarle wrote:
> 
>> It's likely that your CLASSPATH or LD_LIBRARY_PATH (or whatever the
>> Mac uses to say where shared libs are) is missing the jre's awt lib.
> 
> OK.  A little research shows that under Mac OS X the LD_LIBRARY_PATH is 
> called DYLD_LIBRARY_PATH.
> Alas, I can't find the jre's awt lib.  Java is installed, and I have 
> many working Java programs that have been built on this machine.  
> But...some of the files are hidden away in strange places (usually 
> involving "Framework"...).  I'm afraid normal *nix experience doesn't 
> help here - we need a Mac OS X wizard.

Hi Kenneth,

I don't remeber having you problem to build vtk 5 on my ppc OSX system. 
  Which version of CMake are you using, latest?  Anyway, here's what is 
found in  my  CMakeCache.txt file (note that I had previously installed 
java 5 and selected it as default on my system).  Also, I remember I had 
to turn carbon off and coca on, but I don't know if it still really matters.


JAVACOMMAND:FILEPATH=/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Commands/java
JAVA_ARCHIVE:FILEPATH=/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Commands/jar
JAVA_AWT_INCLUDE_PATH:PATH=/System/Library/Frameworks/JavaEmbedding.framework/Headers
JAVA_AWT_LIBRARY:FILEPATH=-framework JavaVM -framework JavaEmbedding
JAVA_COMPILE:FILEPATH=/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Commands/javac
JAVA_INCLUDE_PATH:PATH=/System/Library/Frameworks/JavaVM.framework/Headers
JAVA_INCLUDE_PATH2:PATH=/System/Library/Frameworks/JavaVM.framework/Headers
JAVA_RUNTIME:FILEPATH=/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Commands/java

And BTW, I really don't pretend to be any sort of guru...  :-)


-- 
Bernard Giroux, ing., Ph.D.
Associé de recherche

http://geo.polymtl.ca/~giroux
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3253 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070117/81db5e0e/attachment.bin>


More information about the vtkusers mailing list