Expand my Community achievements bar.

SOLVED

Unable to launch the .jar file for publish instance

Avatar

Level 2

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

muskan_mala_0-1694764159985.png

muskan_mala_1-1694764209756.png

Can someone guide me.

 

Thank you...!!!

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @muskan_mala 

Did you get a chance to go through the below documentation 

https://experienceleague.adobe.com/docs/experience-manager-65/deploying/deploying/custom-standalone-...

 

sherinregi_0-1694765380211.png

 

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.

https://saturncloud.io/blog/how-to-solve-problems-running-jar-on-amazon-ec2/#:~:text=Problem%202%3A%....

 

Hope this helps to debug

 

View solution in original post

4 Replies

Avatar

Correct answer by
Community Advisor

Hi @muskan_mala 

Did you get a chance to go through the below documentation 

https://experienceleague.adobe.com/docs/experience-manager-65/deploying/deploying/custom-standalone-...

 

sherinregi_0-1694765380211.png

 

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.

https://saturncloud.io/blog/how-to-solve-problems-running-jar-on-amazon-ec2/#:~:text=Problem%202%3A%....

 

Hope this helps to debug

 

Avatar

Community Advisor

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:

  1. Incorrect File Path: Ensure that you are running the 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.
  2. File Doesn't Exist
  3. File Name Case Sensitivity
  4. Permission Issues: You might not have the necessary permissions to access the JAR file. Ensure that you have read and execute permissions for the JAR file and its containing directory.
  5. Java Installation: Make sure that Java is installed and configured correctly on your system. You can check the Java version by running 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



Esteban Bustamante

Avatar

Community Advisor

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?

Avatar

Administrator

@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.



Kautuk Sahni