Expand my Community achievements bar.

SOLVED

recompile all classes under /var/classes

Avatar

Level 2

how can i request cq to recompile all classes?

i amhaving some problem because i started my instance with java 8. and nwo compiling problems appeared. 

i need to recompile al classes in java 7 version now configured. how to do it?

i tried deleting /var/classes but couldnt make it recompile. it just gave errors on the screen. 

any tips?

thanks.

1 Accepted Solution

Avatar

Correct answer by
Level 10
5 Replies

Avatar

Correct answer by
Level 10

Avatar

Level 10

Its not recommended to compile classes under this JCR branch. In AEM, you typically compile classes as part of deploying OSGi bundles. Are you following some Knowledge base article that is instructing you to compile these classes? 

Avatar

Level 10

Java 8 is only supported with AEM 6 SP1.

[img]Java2.png[/img]

For previous AEM versions - Java 8 is not supported. 

[img]Java8.png[/img]

Instead of trying to recompile AEM classes - its recommended to install AEM on supported platforms. 

Avatar

Level 2

no, 

the problem is that i installed AEM using Java 8, and now event restarting with Java 7 sometimes some scripts have problems using the cmpiled classes . 

i reloaded all Scripting bndles in felix (to reload), but still having problem in specific files. last probem i had was with scripts for MSM. 

thats why i would like to recompile all again. 

Avatar

Level 10

Let me look into this issue - i doubt the recommended action is to recompile the classes.