01-21-2020 03:51 AM
Hi All,
I was trying https://github.com/loftuxab/alfresco-ubuntu-install and it helped me alot in installing alfresco 6. I am having some issues. Previously I have installed it normally and uncommented export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/jre in alfreso-service.sh file and started tomcat . It was working fine, even in migration from alfresco 5.2.
Now, I have created a repo project having some java classes using sdk 4.0.0 and compiled with jdk 11 as it is the only jdk installed in my system(uninstalled/removed jdk 8). I have created its amp and applied to the "alfresco" instance using ./apply.sh all inside /opt/alfresco/addons. Again I have restarted it. But this time its throwing error saying "class should compile with jdk 11 but found compiled with jdk 8" This is what understood with the exceptions.
I have checked multiple time for the jdk version (only jdk11 installed and default compiler for ecllipse is jdk 11).
I have replaced export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/jre with
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
in alfresco-service.sh file and tried restarting. but its just printing some lines on catalina.out file.
NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED Unrecognized option: -d64 Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED Unrecognized option: -d64 Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED Unrecognized option: -d64 Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED Unrecognized option: -d64 Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED Unrecognized option: -d64 Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.
This issue is with tomcat 8.5.50 and 8.0.53 as well.
what should I do.. I am just trying to apply my code to this instance.
Please advise.
Thanks.
01-22-2020 07:43 PM
Log says about:
Unrecognized option: -d64
This option is deprecated and was removed after 9 version.
https://www.oracle.com/technetwork/java/javase/9-deprecated-features-3745636.html
01-22-2020 07:43 PM
Log says about:
Unrecognized option: -d64
This option is deprecated and was removed after 9 version.
https://www.oracle.com/technetwork/java/javase/9-deprecated-features-3745636.html
Explore our Alfresco products with the links below. Use labels to filter content by product module.