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: Java JAR application bundle question



Hi Geoff,

Thanks for the advice. I've tried copying the app package to a new file, renaming it in the Info.plist, etc. but to no avail. Here's the Info.plist, btw, in case its obvious from that what I'm doing wrong:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http:// www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleAllowMixedLocalizations</key>
<string>true</string>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>*</string>
</array>
<key>CFBundleTypeMIMETypes</key>
<array>
<string>text/plain</string>
</array>
<key>CFBundleTypeName</key>
<string>Text File</string>
<key>CFBundleTypeOSTypes</key>
<array>
<string>****</string>
</array>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
</array>
<key>CFBundleExecutable</key>
<string>JavaApplicationStub</string>
<key>CFBundleGetInfoString</key>
<string>Alex 1.0 Copyright Datatech Software</string>
<key>CFBundleIconFile</key>
<string>wii.icns</string>
<key>CFBundleIdentifier</key>
<string>com.dtsoft.cms.uploader</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>Alex</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>Java</key>
<dict>
<key>ClassPath</key>
<array>
<string>$JAVAROOT/cms.jar</string>
<string>$JAVAROOT/activation.jar</string>
<string>$JAVAROOT/aspectjlib.jar</string>
<string>$JAVAROOT/aspectjrt.jar</string>
<string>$JAVAROOT/aspectjtools.jar</string>
<string>$JAVAROOT/aspectjweaver.jar</string>
<string>$JAVAROOT/clover.jar</string>
<string>$JAVAROOT/cms.jar</string>
<string>$JAVAROOT/commons-beanutils.jar</string>
<string>$JAVAROOT/commons-logging-api.jar</string>
<string>$JAVAROOT/commons-logging.jar</string>
<string>$JAVAROOT/eltima-chart.jar</string>
<string>$JAVAROOT/forms.jar</string>
<string>$JAVAROOT/jaxen-core.jar</string>
<string>$JAVAROOT/jaxen-jdom.jar</string>
<string>$JAVAROOT/jcommon-1.0.0.jar</string>
<string>$JAVAROOT/jdic.jar</string>
<string>$JAVAROOT/jdom.jar</string>
<string>$JAVAROOT/jfd-loader.jar</string>
<string>$JAVAROOT/jfreechart-1.0.1.jar</string>
<string>$JAVAROOT/jgoodies-uif-lite.jar</string>
<string>$JAVAROOT/junit.jar</string>
<string>$JAVAROOT/log4j-1.2.8.jar</string>
<string>$JAVAROOT/looks.jar</string>
<string>$JAVAROOT/lorentz-2.0.0.jar</string>
<string>$JAVAROOT/mail.jar</string>
<string>$JAVAROOT/packer.jar</string>
<string>$JAVAROOT/poi.jar</string>
<string>$JAVAROOT/quaqua.jar</string>
<string>$JAVAROOT/saaj-api.jar</string>
<string>$JAVAROOT/saaj-impl.jar</string>
<string>$JAVAROOT/saxpath.jar</string>
<string>$JAVAROOT/stax-api-1.0.jar</string>
<string>$JAVAROOT/swing-layout.jar</string>
<string>$JAVAROOT/swingx.jar</string>
<string>$JAVAROOT/synthetica.jar</string>
<string>$JAVAROOT/syntheticaBlackMoon.jar</string>
<string>$JAVAROOT/syntheticaBlackStar.jar</string>
<string>$JAVAROOT/syntheticaBlueMoon.jar</string>
<string>$JAVAROOT/syntheticaGreenDream.jar</string>
<string>$JAVAROOT/timing.jar</string>
<string>$JAVAROOT/winlaf-0.5.1.jar</string>
<string>$JAVAROOT/wstx-asl-2.9.3.jar</string>
<string>$JAVAROOT/xercesImpl.jar</string>
</array>
<key>JVMVersion</key>
<string>1.5+</string>
<key>MainClass</key>
<string>com.dtsoft.cms.CMSApp</string>
</dict>
</dict>
</plist>


Thanks,

Ben


On Jan 10, 2007, at 7:12 PM, Geoff Levner wrote:

If I recall correctly, when something goes wrong while launching an application package, launch services sets a flag somewhere indicating that there is a problem with it and thus cannot be launched. And sometimes that flag can remain set even after you have corrected the original problem. So you might try one of two things: 1) do some googling to find out where that flag is, so you can maybe figure out a way to reset it; or 2) make a new application package, copying or moving the files from the broken package.

Geoff

On 10 Jan 2007, at 23:38, Ben Galbraith wrote:

Hi,

I built an OS X application bundle using the JavaApplicationStub and so forth. It worked for a while, then I made some changes, and it stopped working (i.e., launching the app when I double-click the icon). I can't figure out why. I put logging statements in the first lines of my main method, but they never arrive in the console. I've studied the Info.plist file, I've tried launching it using "java" from the command-line (worked fine), reduced it down to the smallest set of data I thought I could (one JAR, one class) and no matter what I try, I can't get it to launch.

Obviously, I'm doing something stupid. But I wonder, are there any tools I can use to troubleshoot what's happening? I've built many other double-clickable OS X app bundles from Java apps, and all of them work.

I could start over building the bundle from scratch, etc., but just wondering if there are some tools, techniques, etc. other than double-clicking and banging my head against the wall as I've been doing now.

Thx for any help,

Ben



_______________________________________________ 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
References: 
 >Java JAR application bundle question (From: Ben Galbraith <email@hidden>)
 >Re: Java JAR application bundle question (From: Geoff Levner <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.