Return-Path: X-Original-To: apmail-cayenne-dev-archive@www.apache.org Delivered-To: apmail-cayenne-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 227071065E for ; Fri, 8 Nov 2013 18:55:55 +0000 (UTC) Received: (qmail 20000 invoked by uid 500); 8 Nov 2013 18:55:55 -0000 Delivered-To: apmail-cayenne-dev-archive@cayenne.apache.org Received: (qmail 19942 invoked by uid 500); 8 Nov 2013 18:55:54 -0000 Mailing-List: contact dev-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cayenne.apache.org Delivered-To: mailing list dev@cayenne.apache.org Received: (qmail 19934 invoked by uid 99); 8 Nov 2013 18:55:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Nov 2013 18:55:54 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [208.78.103.231] (HELO vorsha.objectstyle.org) (208.78.103.231) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 08 Nov 2013 18:55:47 +0000 Received: (qmail 32720 invoked from network); 8 Nov 2013 19:03:38 -0000 Received: from unknown (HELO ?192.168.2.103?) (212.98.191.4) by vorsha.objectstyle.org with SMTP; 8 Nov 2013 19:03:38 -0000 From: Andrus Adamchik Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Fwd: [jira] [Commented] (CAY-1881) CayenneModeler (Mac version) doesn't work with Java 7 Date: Fri, 8 Nov 2013 21:55:21 +0300 References: To: dev@cayenne.apache.org Message-Id: <18844595-C647-407E-831E-F06AFAC34F28@objectstyle.org> Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1816\)) X-Mailer: Apple Mail (2.1816) X-Virus-Checked: Checked by ClamAV on apache.org Some random licensing comments.=20 So Appbundler source is GPL-2.0 [1]. Which is ok for the build tool I = guess, we are not releasing the tool, only our stuff built with it.. Now = what about JRE? Not sure if there are precedents for Apache projects = bundling a JRE in a distro. I guess we stay on the safe side and ship = CayenneModeler.app without the JRE (it will be much smaller too this = way). Andrus [1] https://java.net/projects/appbundler Begin forwarded message: > From: "Andrus Adamchik (JIRA)" > Subject: [jira] [Commented] (CAY-1881) CayenneModeler (Mac version) = doesn't work with Java 7 > Date: November 8, 2013 at 9:08:17 PM GMT+3 > To: commits@cayenne.apache.org > Reply-To: dev@cayenne.apache.org >=20 >=20 > [ = https://issues.apache.org/jira/browse/CAY-1881?page=3Dcom.atlassian.jira.p= lugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D13817525#c= omment-13817525 ]=20 >=20 > Andrus Adamchik commented on CAY-1881: > -------------------------------------- >=20 > I think we'll be able to fix that with relatively little pain. Oracle = OS X java preserved "com.apple.eawt" package. So I downloaded Appbundler = [1], created a small change in the Mac assembly [2], and assembled = Modeler with the following Ant script [3]. This produced clickable app = that starts with expected OS X look-and-feel and is otherwise = indistinguishable from Java 6 OS X modeler. I guess now we need to = integrate this into the build process.=20 >=20 > BTW, with " " option we can = include Java 7 runtime in the app... too bad the size of the app goes up = from ~8 to 148 MB (56MB when gzipped). So I guess we'll rely on users = installing their own JRE. >=20 > [1] https://java.net/projects/appbundler/pages/Home > [2] diff --git a/modeler/cayenne-modeler-mac/pom.xml = b/modeler/cayenne-modeler-mac/pom.xml > index d807151..40662e5 100644 > --- a/modeler/cayenne-modeler-mac/pom.xml > +++ b/modeler/cayenne-modeler-mac/pom.xml > @@ -85,9 +85,8 @@ > = ${project.version} > = target/modeler > = org.apache.cayenne.modeler.osx.OSXMain > - = src/japplication/resources/CayenneModeler.icns > - mac > - 1.5+ > + java > + 1.7+ > = -Xmx500m > > >=20 > [3] > name=3D"bundleapp"=20 > classname=3D"com.oracle.appbundler.AppBundlerTask"=20 > classpath=3D"lib/appbundler-1.0.jar" /> > > > outputdirectory=3D"dist"=20 > name=3D"CayenneModeler"=20 > displayname=3D"CayenneModeler"=20 > identifier=3D"org.apache.cayenne" > mainclassname=3D"org.apache.cayenne.modeler.osx.OSXMain" > = icon=3D"/Users/cayenne/work/cayenne/modeler/cayenne-modeler-mac/src/jappli= cation/resources/CayenneModeler.icns"> > > > > >=20 >=20 >> CayenneModeler (Mac version) doesn't work with Java 7 >> ----------------------------------------------------- >>=20 >> Key: CAY-1881 >> URL: https://issues.apache.org/jira/browse/CAY-1881 >> Project: Cayenne >> Issue Type: Bug >> Components: Modeler >> Affects Versions: 3.2M1 >> Environment: Mac OS X 10.9 Mavericks >> Oracle Java jdk1.7.0_45 >> Reporter: D Tim Cummings >> Priority: Minor >>=20 >> The Mac specific CayenneModeler 3.2M1 doesn't work when the only java = on the Mac is jdk1.7.0_45. The symptom is it won't open. I tried = installing it again, but OS X Mavericks says CayenneModeler is damaged = and gives me the option to delete it. The platform independent version = of CayenneModeler 3.2M1 works fine with jdk1.7.0_45.=20 >> I can confirm that installing java 6 from Apple solved the problem.=20= >> To prevent Java 6 from wanting to install, I had edited = /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Info.plist >> and replaced >> JVMCapabilities >> >> CommandLine >> >> with the following: >> JVMCapabilities >> >> JNI >> BundledApp >> WebStart >> Applets >> CommandLine >> >=20 >=20 >=20 > -- > This message was sent by Atlassian JIRA > (v6.1#6144) >=20