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: Invalid memory access? (was on qtj list)



Hendrik,
Thanks for the suggestion.

java -version -d32
java version "1.5.0_13"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13- b05-237)
Java HotSpot(TM) Client VM (build 1.5.0_13-119, mixed mode, sharing)


On the command line this works flawlessly:
java -d32 -jar Lexinomicon.jar edu.dartmouth.lex.Lexinomicon

However, on accessing media, the app crashes showing the following in the console:
shows in the console:
A 64-bit JVM is available for 1.5.0
JVMArchs not found in Java dictionary
Unrecognized Java VM option ignored: -d32
...
Invalid memory access of location f875897b eip=96cc86e8


The info.plist:
	<key>Java</key>
	<dict>
		<key>JVMVersion</key>
		<string>1.5*</string>
		<key>MainClass</key>
		<string>edu.dartmouth.lex.Lexinomicon</string>
		<key>ClassPath</key>
		<array>
			<string>$JAVAROOT/Lexinomicon.jar</string>
		</array>
		<key>Properties</key>
		<dict>
			<key>apple.awt.textantialiasing</key>
			<string>true</string>
			<key>apple.laf.useScreenMenuBar</key>
			<string>true</string>
		</dict>
		<key>VMOptions</key>
		<string>-d32</string>
	</dict>


what am I missing here?

I am looking for a good resource explaining how to set up a plist for a java app...


thanks, -m

On Jun 30, 2008, at 4:48 PM, Hendrik Schreiber wrote:

Hi,

If you are not already doing it, you'll need to insist on Java 5, i.e. something like:

[...]
   <key>Java</key>
   <dict>
       <key>MainClass</key>
       <string>YOUR.MAIN>CLASS</string>
       <key>JVMVersion</key>
       <string>1.5*</string>
[...]

Java 6 on Leopard is 64bit only, which will not work with QTJ.

-hendrik

On Jun 30, 2008, at 16:40 , Mark A. O'Neil wrote:

Hello,

Trying to track down a solution to an issue with my QTJ app (built and bundled using Xcode)...

When opening a media file on Leopard the app consistently crashes outputting the below to the console - same address every time....

6/30/08 4:33:42 PM [0x0-0x71071] Invalid memory access of location f875897b eip=96cc86e8

this seems to be a 32bit to 64 bit addressing issue (?) as running it at the command line with the -d32 switch == no crash.

What can I add to the info.plist to make it run in 32 bit?

Thanks,
-m
_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-java mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-java/email@hidden

This email sent to email@hidden


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

This email sent to email@hidden
References: 
 >Invalid memory access? (From: "Mark A. O'Neil" <email@hidden>)
 >Re: Invalid memory access? (From: Hendrik Schreiber <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.