Hi All,
I am trying to run aem .jar file for publish instance on ec2 machine but unable to run it. Command I used to run the jar file:- java -Xmx1024M -jar aem-publish-p4503.jar
Can someone guide me.
Thank you...!!!
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @muskan_mala
Did you get a chance to go through the below documentation
Its recommended to unpack and then start the jar for publish instance on EC2
Also make sure you have the appropriate permission to run the jar and the java path is also set correctly.
Hope this helps to debug
Hi @muskan_mala
Did you get a chance to go through the below documentation
Its recommended to unpack and then start the jar for publish instance on EC2
Also make sure you have the appropriate permission to run the jar and the java path is also set correctly.
Hope this helps to debug
hi @muskan_mala
The issue is not related to AEM but to your environment and how to execute a JAR file. This error typically occurs when the Java command cannot find the specified JAR file. There are a few potential reasons why you might be encountering this issue:
java
command from the directory where the aem-publish-p4503.jar
file is located. If the JAR file is in a different directory, you'll need to provide the full or relative path to the JAR file.java -version
. If Java is not installed or not in your system's PATH, you'll need to install it or adjust your PATH variable.Please give try above and additionally try to execute the command with the full path like this:
java -jar /your/absolute/path/to/aem-publish-p4503.jar -Xmx1024M
Additionally, keep in mind what is mentioned by @sherinregi , you may need to follow the installation method suggested by the documentation.
Hope this helps
From the log that you shared, It says unable to access jar file aem-publish-p4503.jar can you check your permissions for the jar file on ec2 machine?
@muskan_mala Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies