Mailing Lists: Apple Mailing Lists

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

setting env variable APPLE_AWT_DISABLE_THREAD_ASSERTS



I am trying to set an environment variable for my double-clickable Swing
app (app bundle created with Jar Bundler). The variable is
APPLE_AWT_DISABLE_THREAD_ASSERTS and it doesn't need a value. This is to
avoid a crash of my program when using a URLClassLoader to invoke
NSWorkspace.openURL or openFile.

I can't use the -D flag or the System.setProperty... these do not actually
set environment variables. If I use "setenv
APPLE_AWT_DISABLE_THREAD_ASSERTS" on the command line (in a command line
version of the app), it works, but I have no access to that in the
double-clickable version.

Runtime.getRunTime().exec doesn't work either because it sets the variable
for another process, not mine. I've tried using a script, but getting Jar
Bundler to run a script instead of my app seems impossible. Anyone know
how to do this? Thanks.

Erich


~~~~~~~~~~~~~~~
Erich G. Roth, Ph.D.
Onset Computer Corporation
Bourne, MA
www.onsetcomp.com
508.759.9500
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Do not post admin requests to the list. They will be ignored.




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.