• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ImageIO Native Java 1.6 / Small Progress
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ImageIO Native Java 1.6 / Small Progress


  • Subject: Re: ImageIO Native Java 1.6 / Small Progress
  • From: Johnny Miller <email@hidden>
  • Date: Tue, 02 Apr 2013 09:55:34 -1000

OK.  So I added this argument to the application's additional arguments in WOMonitor:

-Djava.library.path=/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java

And it is now finding the JNI.  But now I'm on to a new problem!

java.lang.UnsatisfiedLinkError: /Library/Java/Extensions/libImageIOImageProcessor.jnilib: no suitable image found. Did find: /Library/Java/Extensions/libImageIOImageProcessor.jnilib: mach-o, but wrong architecture

So the Google seems to think this is because the JNI is compiled for 32 bit but I'm using 64 bit java.  That would make sense.  I've tried recompiling the JNI and I've changed the ARCHS variable in the build properties to x86_64 but I'm still getting the error.  Does anyone who is wise in the ways of MacOSX programming know where I've gone wrong?  I'm using 10.5 and XCode 3.1

Thanks,

Johnny

On Apr 2, 2013, at 9:25 AM, Johnny Miller <email@hidden> wrote:

Thanks for the advice guys.  Although, I'd really like to get the native going...

The error I'm seeing is a com.webobjects.foundation.NSForwardException [java.lang.NoClassDefFoundError] Could not initialize class er.attachment.thumbnail.ImageIOImageProcessor:java.lang.NoClassDefFoundError: 

I made a simple class that prints out the java class path from the command line and I see that /Library/Java/Extensions is in there.  But... getting WebObjects to use Java 1.6 was kind of a hack to begin with.  I had to create the file /etc/launchd.conf which contains these two lines:

setenv JAVA_VERSION 1.6
setenv JAVA_HOME /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home

Philippe Rabier pointed me to this solution a few months back -> http://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x

Do you think I also need to add a Java class path variable to this file?  If so does anyone know what the variable would be?

Thanks,

Johnny
Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: ImageIO Native Java 1.6 / Small Progress
      • From: Tim Worman <email@hidden>
References: 
 >ImageIO Native Java 1.6 (From: Johnny Miller <email@hidden>)
 >Re: ImageIO Native Java 1.6 (From: Kieran Kelleher <email@hidden>)
 >Re: ImageIO Native Java 1.6 (From: Þór Sigurðsson <email@hidden>)
 >Re: ImageIO Native Java 1.6 (From: Kieran Kelleher <email@hidden>)
 >Re: ImageIO Native Java 1.6 (From: Þór Sigurðsson <email@hidden>)
 >Re: ImageIO Native Java 1.6 (From: Tim Worman <email@hidden>)
 >Re: ImageIO Native Java 1.6 (From: Ramsey Gurley <email@hidden>)
 >Re: ImageIO Native Java 1.6 (From: Tim Worman <email@hidden>)
 >Re: ImageIO Native Java 1.6 (From: Ramsey Gurley <email@hidden>)
 >Re: ImageIO Native Java 1.6 (From: Johnny Miller <email@hidden>)

  • Prev by Date: Re: ImageIO Native Java 1.6
  • Next by Date: Re: ImageIO Native Java 1.6 / Small Progress
  • Previous by thread: Re: ImageIO Native Java 1.6
  • Next by thread: Re: ImageIO Native Java 1.6 / Small Progress
  • Index(es):
    • Date
    • Thread