recompile all classes under /var/classes | Community
Skip to main content
October 16, 2015
Solved

recompile all classes under /var/classes

  • October 16, 2015
  • 5 replies
  • 1113 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

5 replies

Sham_HC
Sham_HCAccepted solution
October 16, 2015
smacdonald2008
October 16, 2015

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? 

smacdonald2008
October 16, 2015

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. 

October 16, 2015

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. 

smacdonald2008
October 16, 2015

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