Mailing Lists: Apple Mailing Lists

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

Info.plist, WorkingDirectory, and User's Home Dir



Hi there.... I'm working on packaging my java program into a neat
little .app. The app needs to both load other java jars located inside
my ~/Library/Application Support/MyApp/ and write settings files to
that folder. I've been tinkering with my Info.plist the whole day
today, but I still can't figure out how to change the WorkingDirectory
to some path relative to my home dir, because the Java VM doesn't
understand "~/" or env variables like "$HOME". Can someone help me out
here?

I know I have a lot of options as far as what to use for my
WorkingDirectory, and I wouldn't have had this headache if I did
everything inside my $APP_PACKAGE or $JAVAROOT. But this is exactly my
question: is there a key similar to $APP_PACKAGE that would point to
my ~/ ?

Below is a cutout from my Info.plist:

	<key>Java</key>
	<dict>
		<key>ClassPath</key>
		<string>$JAVAROOT/wsShell.jar</string>
		<key>JVMVersion</key>
		<string>1.5*</string>
		<key>MainClass</key>
		<string>com.xxxxxx.shell.Shell</string>
		<key>Properties</key>
		<dict>
			<key>apple.laf.useScreenMenuBar</key>
			<string>true</string>
			<key>java.library.path</key>
			<string>$JAVAROOT/native_libs/</string>
			<key>user.dir</key>
			<string>~/Library/Application Support/Workstation</string>
		</dict>
		<key>VMOptions</key>
		<string>-XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=10 -Xms64M
-Xmx256M -XX:NewRatio=16 </string>
	</dict>


Thanks in advance! Yahya _______________________________________________ Do not post admin requests to the list. They will be ignored. Java-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to 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.