Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa & Java on Intel fails with "Java for ppc cannot run in this configuration"



Rosetta does not support Java.
Have you tried making your app Intel-native? Does it work then?
Alternatively, I suppose you could spawn a new process instead of trying to fire up a VM inside your own process.



Alexander Hartner wrote:
I have an Cocoa Application which internally creates JVM via :

NSJavaVirtualMachine *jvm = [NSJavaVirtualMachine defaultVirtualMachine];
printf("CLASSPATH %s \n",[[NSJavaVirtualMachine defaultClassPath] cString]);
[jvm initWithClassPath:@"Contents/Resources"];
id connectorClass =[jvm findClass:@"com.j2anywhere.ldap.Connector"];


On PPC this works great, but on intel I get the following message :

Java for ppc cannot run in this configuration.
Please consult documentation.
-[NSJavaVirtualMachine initWithClassPath:] cannot instantiate a Java virtual machine
Started Initialize LDAP Connector
Initialize
Java for ppc cannot run in this configuration.
Please consult documentation.
-[NSJavaVirtualMachine initWithClassPath:] cannot instantiate a Java virtual machine
CLASSPATH /Users/vincent/Library/Java:/Library/Java:/System/Library/Java:/Network/Library/Java:/System/Library/Frameworks/JavaVM.framework/Classes/classes.jar:/System/Library/Frameworks/JavaVM.framework/Classes/ui.jar


Reading Preferences

I am not performing any ui in java, just communication with the backend. So I don't need the Cocoa / Java. All I need to do it to use the JVM to call my class. Is there an easy / quick way to get my application to work on intel ?

Alexander Hartner
email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Cocoa & Java on Intel fails with "Java for ppc cannot run in this configuration" (From: Alexander Hartner <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.