AEM jar file doesn't run | Community
Skip to main content
Level 3
October 23, 2021
Solved

AEM jar file doesn't run

  • October 23, 2021
  • 2 replies
  • 17341 views

Hello,
I have a jar file of AEM 6.5. I created the two instances (author and publish) but when I start the jar file the crx quickstart folder is created, with the "logs" folder inside, and an empty "upgrade" notepad file.


It should be noted that before doing this I installed Maven on my pc.

Can anyone help me? I can't start AEM from my pc.

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

And strange, i can't insert the passord admin admin!

 


C:\Users\ruutu\Desktop\UDEMY\corso AEM\Adobe Experience Manager\Nuovo sito>java -jar AEM_6.3_Quickstart.jar
Loading quickstart properties: default
Loading quickstart properties: instance
Low-memory action set to fork
Using 64bit VM settings, min.heap=1024MB, min permgen=256MB, default fork arguments=[-Xmx1024m, -XX:MaxPermSize=256m]
The JVM reports a heap size of 1682 MB, meets our expectation of 1024 MB +/- 20
Setting properties from filename 'C:/Users/ruutu/Desktop/UDEMY/corso AEM/Adobe Experience Manager/Nuovo sito/AEM_6.3_Quickstart.jar'
The admin password for this instance hasn't been defined yet.
Please enter the desired admin password:
Please re-enter password:
Passwords do not match.
Please enter the desired admin password:


Hi @francobarresi ,

       Yesterday I got the same issue and I followed below url and resolved it.

https://experienceleague.adobe.com/docs/experience-manager-65/administering/security/security-configure-admin-password.html?lang=en

 

 

2 replies

Asutosh_Jena_
Community Advisor
Community Advisor
October 23, 2021

Hi @francobarresi 

 

Please ensure the correct JDK version is installed on the machine.

 

AEM 6.5 supports the following JDK:

  1. Oracle JDK 1.8
  2. Oracle JDK 11
  3. Azul Zulu Open JDK 8
  4. Azul Zulu Open JDK 11

Any other version of JDK will not allow the AEM JAR to run on the machine.

 

Please validate the JDK installation by running the below command:

 

java -version

 

Now navigate to the folder where the AEM JAR file is kept and run the following command to start the instance:

 

java -jar aem-author-p4502.jar

 

Note: Here the AEM Jar file name is aem-author-p4502.jar

 

You should be able to start the application and AEM should be up and running in approx. 4-5 min depending upon the machine configuration.

 

Hope this helps!

 

Thanks!

Level 3
October 23, 2021

Hello! This is the responde of java -version on my Prompt's Command

 

C:\Users\ruutu>java -version
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)

Level 3
October 23, 2021

And strange, i can't insert the passord admin admin!

 


C:\Users\ruutu\Desktop\UDEMY\corso AEM\Adobe Experience Manager\Nuovo sito>java -jar AEM_6.3_Quickstart.jar
Loading quickstart properties: default
Loading quickstart properties: instance
Low-memory action set to fork
Using 64bit VM settings, min.heap=1024MB, min permgen=256MB, default fork arguments=[-Xmx1024m, -XX:MaxPermSize=256m]
The JVM reports a heap size of 1682 MB, meets our expectation of 1024 MB +/- 20
Setting properties from filename 'C:/Users/ruutu/Desktop/UDEMY/corso AEM/Adobe Experience Manager/Nuovo sito/AEM_6.3_Quickstart.jar'
The admin password for this instance hasn't been defined yet.
Please enter the desired admin password:
Please re-enter password:
Passwords do not match.
Please enter the desired admin password:

GK-007
Level 9
October 23, 2021

If you are using double clicking quick start jar,this will not work.

use this command java -jar aem-author-p4502.jar

Level 3
October 25, 2021

hello

i'm starting AEM only clicking batch file "quickstart", under the folder bin. But i can't use "author" and "publish" jar file, they don't start. When i click these (author or publish jar file) i see only a folder, inside the new folder quickstart who appears, called "logs" with a file empty named "upgrade". The others files don't appears. 

 

So in this case i can use AEM, in other way. But it's very strange: why i can't use "publish" and "author" files jar, and i can use only the folder quickstart-bin-start with jar file AEM_6.5_Quickstart?

Manu_Mathew_
Community Advisor
Community Advisor
October 29, 2021

That's it

 

start.bat of publish

 

@16521188 off
:: This script configures the start information for this server.
::
:: The following variables may be used to override the defaults.
:: For one-time overrides the variable can be set as part of the command-line; e.g.,
::
:: SET CQ_PORT=1234 & ./start.bat
::
setlocal

::* TCP port used for stop and status scripts
if not defined CQ_PORT set CQ_PORT=4502

::* hostname of the interface that this server should listen to
:: if not defined CQ_HOST set CQ_HOST=

::* runmode(s)
::* will not be used if repository is already present
if not defined CQ_RUNMODE set CQ_RUNMODE=author

::* name of the jarfile
:: if not defined CQ_JARFILE set CQ_JARFILE=

::* default JVM options
if not defined CQ_JVM_OPTS set CQ_JVM_OPTS=-Xmx1024m -XX:MaxPermSize=256M -Djava.awt.headless=true
::* add the required JPMS modules, if needed
java --add-modules java.se.ee --version > nul 2>&1
if %errorlevel% EQU 0 set CQ_JVM_OPTS=--add-modules java.se.ee %CQ_JVM_OPTS%

::* ------------------------------------------------------------------------------
::* authentication
::* ------------------------------------------------------------------------------
::* when using oak (crx3) authentication must be configured using the
::* Apache Felix JAAS Configuration Factory service via the Web Console
::* see http://jackrabbit.apache.org/oak/docs/security/authentication/externalloginmodule.html

::* use jaas.config (legacy: only used for crx2 persistence)
:: if not defined CQ_USE_JAAS set CQ_USE_JAAS=true

::* config for jaas (legacy: only used for crx2 persistence)
if not defined CQ_JAAS_CONFIG set CQ_JAAS_CONFIG=etc\jaas.config

::* ------------------------------------------------------------------------------
::* persistence mode
::* ------------------------------------------------------------------------------
::* the persistence mode can not be switched for an existing repository
set CQ_RUNMODE=%CQ_RUNMODE%,crx3,crx3tar
:: set CQ_RUNMODE=%CQ_RUNMODE%,crx3,crx3mongo

::* settings for mongo db
:: if not defined CQ_MONGO_HOST set CQ_MONGO_HOST=127.0.0.1
:: if not defined CQ_MONGO_PORT set CQ_MONGO_PORT=27017
:: if not defined CQ_MONGO_DB set CQ_MONGO_DB=aem6

::* ------------------------------------------------------------------------------
::* CLDR
::* ------------------------------------------------------------------------------
::* https://docs.oracle.com/javase/8/docs/technotes/guides/intl/enhancements.8.html#cldr
if not defined CQ_USE_CLDR set CQ_USE_CLDR=true

::* ------------------------------------------------------------------------------
::* do not configure below this point
::* ------------------------------------------------------------------------------

chdir /D %~dp0
cd ..
if exist conf\controlport del conf\controlport
if not defined CQ_JARFILE for %%X in (app\*.jar) do set CQ_JARFILE=%%X
for %%* in (.) do set CurrDirName=%%~n*
cd ..

set START_OPTS=start -c %CurrDirName% -i launchpad
if defined CQ_PORT set START_OPTS=%START_OPTS% -p %CQ_PORT%
if defined CQ_RUNMODE set CQ_JVM_OPTS=%CQ_JVM_OPTS% -Dsling.run.modes=%CQ_RUNMODE%
if defined CQ_HOST set CQ_JVM_OPTS=%CQ_JVM_OPTS% -Dorg.apache.felix.http.host=%CQ_HOST%
if defined CQ_HOST set START_OPTS=%START_OPTS% -a %CQ_HOST%
if defined CQ_MONGO_HOST set START_OPTS=%START_OPTS% -Doak.mongo.host=%CQ_MONGO_HOST%
if defined CQ_MONGO_PORT set START_OPTS=%START_OPTS% -Doak.mongo.port=%CQ_MONGO_PORT%
if defined CQ_MONGO_DB set START_OPTS=%START_OPTS% -Doak.mongo.db=%CQ_MONGO_DB%
if defined CQ_USE_JAAS set CQ_JVM_OPTS=%CQ_JVM_OPTS% -Djava.security.auth.login.config=%CQ_JAAS_CONFIG%
if defined CQ_USE_CLDR set CQ_JVM_OPTS=%CQ_JVM_OPTS% -Djava.locale.providers=CLDR,JRE,SPI
set START_OPTS=%START_OPTS% -Dsling.properties=conf/sling.properties

if exist newTaskList.txt del newTaskList.txt
if exist oldTaskList.txt del oldTaskList.txt
tasklist /FI "IMAGENAME eq java.exe" /NH > oldTaskList.txt
start "CQ" cmd.exe /C java %CQ_JVM_OPTS% -jar %CurrDirName%\%CQ_JARFILE% %START_OPTS%
timeout /T 1 /NOBREAK >nul
tasklist /FI "IMAGENAME eq java.exe" /NH > newTaskList.txt
java -cp %~dp0 GetProcessID oldTaskList.txt newTaskList.txt java.exe > %CurrDirName%\conf\cq.pid
if exist newTaskList.txt del newTaskList.txt
if exist oldTaskList.txt del oldTaskList.txt

 

 

And that's start.bat of author

 

@16521188 off
:: This script configures the start information for this server.
::
:: The following variables may be used to override the defaults.
:: For one-time overrides the variable can be set as part of the command-line; e.g.,
::
:: SET CQ_PORT=1234 & ./start.bat
::
setlocal

::* TCP port used for stop and status scripts
if not defined CQ_PORT set CQ_PORT=4502

::* hostname of the interface that this server should listen to
:: if not defined CQ_HOST set CQ_HOST=

::* runmode(s)
::* will not be used if repository is already present
if not defined CQ_RUNMODE set CQ_RUNMODE=author

::* name of the jarfile
:: if not defined CQ_JARFILE set CQ_JARFILE=

::* default JVM options
if not defined CQ_JVM_OPTS set CQ_JVM_OPTS=-Xmx1024m -XX:MaxPermSize=256M -Djava.awt.headless=true
::* add the required JPMS modules, if needed
java --add-modules java.se.ee --version > nul 2>&1
if %errorlevel% EQU 0 set CQ_JVM_OPTS=--add-modules java.se.ee %CQ_JVM_OPTS%

::* ------------------------------------------------------------------------------
::* authentication
::* ------------------------------------------------------------------------------
::* when using oak (crx3) authentication must be configured using the
::* Apache Felix JAAS Configuration Factory service via the Web Console
::* see http://jackrabbit.apache.org/oak/docs/security/authentication/externalloginmodule.html

::* use jaas.config (legacy: only used for crx2 persistence)
:: if not defined CQ_USE_JAAS set CQ_USE_JAAS=true

::* config for jaas (legacy: only used for crx2 persistence)
if not defined CQ_JAAS_CONFIG set CQ_JAAS_CONFIG=etc\jaas.config

::* ------------------------------------------------------------------------------
::* persistence mode
::* ------------------------------------------------------------------------------
::* the persistence mode can not be switched for an existing repository
set CQ_RUNMODE=%CQ_RUNMODE%,crx3,crx3tar
:: set CQ_RUNMODE=%CQ_RUNMODE%,crx3,crx3mongo

::* settings for mongo db
:: if not defined CQ_MONGO_HOST set CQ_MONGO_HOST=127.0.0.1
:: if not defined CQ_MONGO_PORT set CQ_MONGO_PORT=27017
:: if not defined CQ_MONGO_DB set CQ_MONGO_DB=aem6

::* ------------------------------------------------------------------------------
::* CLDR
::* ------------------------------------------------------------------------------
::* https://docs.oracle.com/javase/8/docs/technotes/guides/intl/enhancements.8.html#cldr
if not defined CQ_USE_CLDR set CQ_USE_CLDR=true

::* ------------------------------------------------------------------------------
::* do not configure below this point
::* ------------------------------------------------------------------------------

chdir /D %~dp0
cd ..
if exist conf\controlport del conf\controlport
if not defined CQ_JARFILE for %%X in (app\*.jar) do set CQ_JARFILE=%%X
for %%* in (.) do set CurrDirName=%%~n*
cd ..

set START_OPTS=start -c %CurrDirName% -i launchpad
if defined CQ_PORT set START_OPTS=%START_OPTS% -p %CQ_PORT%
if defined CQ_RUNMODE set CQ_JVM_OPTS=%CQ_JVM_OPTS% -Dsling.run.modes=%CQ_RUNMODE%
if defined CQ_HOST set CQ_JVM_OPTS=%CQ_JVM_OPTS% -Dorg.apache.felix.http.host=%CQ_HOST%
if defined CQ_HOST set START_OPTS=%START_OPTS% -a %CQ_HOST%
if defined CQ_MONGO_HOST set START_OPTS=%START_OPTS% -Doak.mongo.host=%CQ_MONGO_HOST%
if defined CQ_MONGO_PORT set START_OPTS=%START_OPTS% -Doak.mongo.port=%CQ_MONGO_PORT%
if defined CQ_MONGO_DB set START_OPTS=%START_OPTS% -Doak.mongo.db=%CQ_MONGO_DB%
if defined CQ_USE_JAAS set CQ_JVM_OPTS=%CQ_JVM_OPTS% -Djava.security.auth.login.config=%CQ_JAAS_CONFIG%
if defined CQ_USE_CLDR set CQ_JVM_OPTS=%CQ_JVM_OPTS% -Djava.locale.providers=CLDR,JRE,SPI
set START_OPTS=%START_OPTS% -Dsling.properties=conf/sling.properties

if exist newTaskList.txt del newTaskList.txt
if exist oldTaskList.txt del oldTaskList.txt
tasklist /FI "IMAGENAME eq java.exe" /NH > oldTaskList.txt
start "CQ" cmd.exe /C java %CQ_JVM_OPTS% -jar %CurrDirName%\%CQ_JARFILE% %START_OPTS%
timeout /T 1 /NOBREAK >nul
tasklist /FI "IMAGENAME eq java.exe" /NH > newTaskList.txt
java -cp %~dp0 GetProcessID oldTaskList.txt newTaskList.txt java.exe > %CurrDirName%\conf\cq.pid
if exist newTaskList.txt del newTaskList.txt
if exist oldTaskList.txt del oldTaskList.txt


@francobarresi Both looks identical,

One way to start in publisher is to rename the jar to aem-publish-p4503.jar and double click to generate the crx-quickstart folder , then edit properties in start.bat :

. . .

...

if not defined CQ_PORT set CQ_PORT=4503

 . . .

if not defined CQ_RUNMODE set CQ_RUNMODE=publisher

 . . .

...