Inside the amp file (my.amp), I have a Java class (Hello.java) .
In this Hello.java (which is a driver class), I have code as:
public static void main(String[] args){
// some code
}
After deploy, the code of this Hello.java will get compiled into the jar file, that is found under D:\Alfresco\tomcat\webapps\alfresco\WEB-INF\lib
My question is, how can I run/execute the Hello.java, after deploy?
In other words, the deployed amp file has a jar file with a driver code, and how to execute it?
Perhaps I could write the client code (Hello.java) outside of amp and deploy it in another machine. However, it would be ideal if I could deploy it within the amp. I do not plan to use any Share UI, or any other Alfresco component to execute this Hello.java driver class. but run it using either command line prompt, or run this on a schedule.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.