Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

trying to install CQ public instance ?

Mahesh_Vikram
Level 5
Level 5

java -XX:MaxPermSize=256m -Xmx1024M -jar cq5-publish-p4503.jar
Error: Unable to access jarfile cq5-publish-p4503.jar

1 Accepted Solution
BrijeshYadav
Correct answer by
Level 5
Level 5

Hi Mahesh,

Is your machine 32bit or 64 bit ? because command you are executing is for 64bit machine.

Just try below command it may help you irrespective 32 or 64 bit machine

java -jar  *.jar

Make sure that you are in correct directory of CQ5 installer jar file.

Regards

Brijesh Yadav

View solution in original post

9 Replies
BrijeshYadav
Correct answer by
Level 5
Level 5

Hi Mahesh,

Is your machine 32bit or 64 bit ? because command you are executing is for 64bit machine.

Just try below command it may help you irrespective 32 or 64 bit machine

java -jar  *.jar

Make sure that you are in correct directory of CQ5 installer jar file.

Regards

Brijesh Yadav

View solution in original post

Mahesh_Vikram
Level 5
Level 5

Hi Brijesh Yadav,

java -jar cq-author-p4502.jar
Loading quickstart properties: default
Loading quickstart properties: instance
Low-memory action set to fork
Using 32bit VM settings, min.heap=768MB, min permgen=192MB, default fork arguments=[-Xmx768m, -XX:MaxPermSize=192m]
**** WARNING: insufficent heap memory ******************************************
The JVM reports 247 MB but we recommend at least 768 MB +/- 20
Use your JVM's heap size option (like -Xmx768M) to set that size.
Will fork a JVM to get enough memory.
********************************************************************************
**** WARNING: insufficent PermGen memory ***************************************
The JVM MBean:Perm Gen reports 64 MB but we recommend at least 192 MB +/- 20
Use your JVM's PermGen size option (like -XX:MaxPermSize=192M) to set that size.
Will fork a JVM to get enough memory.
********************************************************************************
Available memory below specified limits and low-memory action set to fork, will fork to get enough memory
Preparing to fork JVM, OS name=Linux, isWindows=false
Forking JVM: [/usr/java/jdk1.7.0_09/jre/bin/java, -Xmx768m, -XX:MaxPermSize=192m, -jar, /home/author/cq-author-p4502.jar, -nofork, -pt, CHILD]
Loading quickstart properties: default
Loading quickstart properties: instance
Low-memory action set to fork
Using 32bit VM settings, min.heap=768MB, min permgen=192MB, default fork arguments=[-Xmx768m, -XX:MaxPermSize=192m]
**** WARNING: insufficent heap memory ******************************************
The JVM reports 742 MB but we recommend at least 768 MB +/- 20
Use your JVM's heap size option (like -Xmx768M) to set that size.
Will fork a JVM to get enough memory.
********************************************************************************
The JVM MBean:Perm Gen reports a maximum size of 192 MB, meets our expectation of 192 MB +/- 20
Available memory below specified limits and low-memory action set to fork, will fork to get enough memory
Not forking JVM as -nofork option is set
Setting properties from filename '/home/author/cq-author-p4502.jar'
Option '-quickstart.server.port' set to '4502' from filename cq-author-p4502.jar
Verbose option not active, closing stdin and redirecting stdout and stderr
Redirecting stdout to /home/author/crx-quickstart/logs/stdout.log
Redirecting stderr to /home/author/crx-quickstart/logs/stderr.log

smacdonald2008
Level 10
Level 10

There are a few reasons why this may happen. If, for example, Java is not set-up properly. I recommend that you consult this AEM troubleshooting information: http://dev.day.com/docs/en/cq/5-5/deploying/installing_cq.html#Troubleshooting

Mahesh_Vikram
Level 5
Level 5

i went through that link.. it was not helpful.

 

Thanks

Mahesh

Ojjis
Level 7
Level 7

A few questions:
1) Are you running it from the correct directory ?
2) Are all the right permissions set for the jar and the folder in which you have it ? 
3) Are you running the publish instance as a user that have the permission to do so ?

It would be good to get some more information of how you have it setup and how you try to start it
Regards
/Johan

Sham_HC
Level 10
Level 10

ALong with Johan recommendation Make sure
    *    The jar file name in command matches with the file system
    *     You are executing the command from directory jar exists.

Mahesh_Vikram
Level 5
Level 5

Hi Johan, Sham,

Have proper permissions.

ya i am executing the command from the directory jar exists.

jar name and jar file name in the command are same.

Sham_HC
Level 10
Level 10

Then it is permission issue or jar file not downloaded completely. Could you place download the fresh jar in the another directory where you have full access & try it out again

Karthi23
Level 2
Level 2
Please check the extension of the .jar exists twice .Same happened in my scenario.