trying to install CQ public instance ?

Avatar

Avatar

Mahesh_Vikram

Avatar

Mahesh_Vikram

Mahesh_Vikram

15-10-2015

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

BrijeshYadav

Avatar

BrijeshYadav

BrijeshYadav

15-10-2015

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

Answers (7)

Answers (7)

Avatar

Avatar

Sham_HC

Total Posts

2.1K

Likes

160

Correct Reply

1.2K

Avatar

Sham_HC

Total Posts

2.1K

Likes

160

Correct Reply

1.2K
Sham_HC

15-10-2015

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

Avatar

Avatar

Mahesh_Vikram

Avatar

Mahesh_Vikram

Mahesh_Vikram

15-10-2015

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.

Avatar

Avatar

Sham_HC

Total Posts

2.1K

Likes

160

Correct Reply

1.2K

Avatar

Sham_HC

Total Posts

2.1K

Likes

160

Correct Reply

1.2K
Sham_HC

15-10-2015

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.

Avatar

Avatar

Ojjis

Avatar

Ojjis

Ojjis

15-10-2015

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

Avatar

Avatar

Mahesh_Vikram

Avatar

Mahesh_Vikram

Mahesh_Vikram

15-10-2015

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

 

Thanks

Mahesh

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

15-10-2015

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

Avatar

Avatar

Mahesh_Vikram

Avatar

Mahesh_Vikram

Mahesh_Vikram

15-10-2015

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