Skip to main content
Level 3
July 19, 2024
Solved

AEM Setup on MAC OS

I'm trying to setup AEM on my MACOS with Java 11 and I'm seeing the following error during the launch.

 

18.07.2024 16:14:29.173 *ERROR* [main] Cannot launch: Cannot install jar:file: AEM/Author/crx-quickstart/app/cq-quickstart-cloudready-2021.11.6058.20211123T163652Z-211100-standalone-quickstart.jar!/resources/org.apache.sling.launchpad.base.jar for use
18.07.2024 16:14:29.173 *ERROR* [main] java.util.zip.ZipException: Invalid CEN header (invalid extra data field size for tag: 0xbfef at 559)
18.07.2024 16:14:29.173 *ERROR* [main] at java.base/java.util.zip.ZipFile$Source.zerror(ZipFile.java:1776)
18.07.2024 16:14:29.173 *ERROR* [main] at java.base/java.util.zip.ZipFile$Source.checkExtraFields(ZipFile.java:1275)
18.07.2024 16:14:29.173 *ERROR* [main] at java.base/java.util.zip.ZipFile$Source.initCEN(ZipFile.java:1741)
18.07.2024 16:14:29.173 *ERROR* [main] at java.base/java.util.zip.ZipFile$Source.<init>(ZipFile.java:1470)
18.07.2024 16:14:29.173 *ERROR* [main] at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1433)
18.07.2024 16:14:29.173 *ERROR* [main] at java.base/java.util.zip.ZipFile$CleanableResource.<init>(ZipFile.java:743)
18.07.2024 16:14:29.173 *ERROR* [main] at java.base/java.util.zip.ZipFile$CleanableResource.get(ZipFile.java:860)
18.07.2024 16:14:29.173 *ERROR* [main] at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:258)
18.07.2024 16:14:29.173 *ERROR* [main] at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:187)
18.07.2024 16:14:29.173 *ERROR* [main] at java.base/java.util.jar.JarFile.<init>(JarFile.java:348)
18.07.2024 16:14:29.173 *ERROR* [main] at java.base/java.util.jar.JarFile.<init>(JarFile.java:319)
18.07.2024 16:14:29.173 *ERROR* [main] at java.base/java.util.jar.JarFile.<init>(JarFile.java:285)
18.07.2024 16:14:29.173 *ERROR* [main] at org.apache.sling.commons.osgi.bundleversion.FileBundleVersionInfo.<init>(FileBundleVersionInfo.java:40)
18.07.2024 16:14:29.173 *ERROR* [main] at org.apache.sling.launchpad.base.shared.Loader.installLauncherJar(Loader.java:172)
18.07.2024 16:14:29.173 *ERROR* [main] at org.apache.sling.launchpad.app.Main.doStart(Main.java:382)
18.07.2024 16:14:29.173 *ERROR* [main] at org.apache.sling.launchpad.app.Main.doStart(Main.java:347)
18.07.2024 16:14:29.173 *ERROR* [main] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
18.07.2024 16:14:29.173 *ERROR* [main] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
18.07.2024 16:14:29.173 *ERROR* [main] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
18.07.2024 16:14:29.173 *ERROR* [main] at java.base/java.lang.reflect.Method.invoke(Method.java:566)
18.07.2024 16:14:29.173 *ERROR* [main] at com.adobe.granite.quickstart.base.impl.exec.Bootstrap.run(Bootstrap.java:107)
18.07.2024 16:14:29.173 *ERROR* [main] at com.adobe.granite.quickstart.base.impl.Quickstart.run(Quickstart.java:272)
18.07.2024 16:14:29.173 *ERROR* [main] at com.adobe.granite.quickstart.base.impl.Main.<init>(Main.java:918)
18.07.2024 16:14:29.173 *ERROR* [main] at com.adobe.granite.quickstart.base.impl.Main.main(Main.java:980)
MAIN process: shutdown hook
MAIN process: exiting

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

5 replies

EstebanBustamante
Adobe Champion and Community Advisor
Adobe Champion and Community Advisor
July 19, 2024

Why you are installing a 2021 version? Is there any reason for that?, if not just download the latest version of the SDK and make sure to rename the JAR. 

 

Hope this helps

Translate
Esteban Bustamante
B_Sravan
Community Advisor
Community Advisor
July 21, 2024

Try using the latest version SDK, you can get it from the software distribution portal.
Re-name it to "AEM-author-p4502" - "AEM" here is just a placeholder name, you can write anthing there.
"author" here is mandatory if you want to run on Author mode and p4502 is the port number, the letter p is optional here but mentioning it would specifically says that it is a port number.

try the command; java -jar AEM-author-p4502.jar

Translate
Rohan_Garg
Community Advisor
Community Advisor
July 22, 2024

@pixislinger - Renaming the jar to aem-author-p4502.jar and running with java -jar aem-author-p4502.jar should help!

Translate
Rohan Garg
Hemalatha
Level 4
July 24, 2024

Hi @pixislinger ,

 

I did the AEM setup in MacOS recently. As like in windows, yu cannot double click on the Jar for the installation/ Startup. Also ensure your Java environment variables are set up in .zsh file. If you do it via command prompt/ Start script it will work fine. Just give it a try. 

 

Regards,

Hemalatha C

Translate