This means that the class is compiled with a higher version of java than
the version with which you try to run it (compiled with 11 and try to run
it now with 8). You need to set the `JAVA_HOME` environment variable with
the correct version of java (needed for the project - if I remember
correct from 4.14 it is java 11 before that java 8) and rerun the build.

Best regards,
Slavka

On Mon, Mar 14, 2022 at 2:17 PM Дикевич Евгений Александрович <
[email protected]> wrote:

> Thx, Slavka!
>
> But when I try command `mvn clean install -DskipTests` in tools directory
> now I have new error:
>
> [INFO] --- exec-maven-plugin:1.2.1:exec (compile) @ cloud-apidoc ---
> Error: A JNI error has occurred, please check your installation and try
> again
> Exception in thread "main" java.lang.UnsupportedClassVersionError:
> com/cloud/api/doc/ApiXmlDocWriter has been compiled by a more recent
> version of the Java Runtime (class file version 55.0), this version of the
> Java Runtime only recognizes class file versions up to 52.0
>         at java.lang.ClassLoader.defineClass1(Native Method)
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
>         at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
>         at java.net.URLClassLoader.defineClass(URLClassLoader.java:473)
>         at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
>         at
> sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:601)
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Apache CloudStack Developer Tools ................. SUCCESS [1.058s]
> [INFO] Apache CloudStack apidocs ......................... FAILURE [4.473s]
> [INFO] Apache CloudStack marvin .......................... SKIPPED
> [INFO] Apache CloudStack DevCloud4 ....................... SKIPPED
> [INFO] Apache CloudStack DevCloud-KVM .................... SKIPPED
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 5.715s
> [INFO] Finished at: Mon Mar 14 15:14:59 MSK 2022
> [INFO] Final Memory: 36M/154M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (compile) on project
> cloud-apidoc: Command execution failed. Process exited with an error: 1
> (Exit value: 1) -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the
> command
> [ERROR]   mvn <goals> -rf :cloud-apidoc
>
>
>
>
>
> -----Original Message-----
> From: Slavka Peleva [mailto:[email protected]]
> Sent: Monday, March 14, 2022 1:53 PM
> To: [email protected]
> Subject: [!!Mass Mail]Re: Build CS from Sources
>
> Hi Evgeniy,
>
> I don't tell that this solution is perfect, but I had this problem once
> and those steps helped me to solve it:
> - In the main CS directory, execute - `mvn clean install -DskipTests`
> (this will download all required dependencies and build the CS modules
> locally. I use the option `-DskipTests` because in this case, you don't
> want to run all tests )
> - when the build finishes you should go to the `tools` directory and
> execute the same command `mvn clean install -DskipTests` it could fail like
> this:
>
> [INFO] Apache CloudStack Developer Tools .................. SUCCESS [
>  0.781 s]
> [INFO] Apache CloudStack apidocs .......................... SUCCESS [
> 10.257 s]
> [INFO] Apache CloudStack marvin ........................... SUCCESS [
>  3.650 s]
> [INFO] Apache CloudStack DevCloud4 ........................ FAILURE [
>  0.059 s]
> [INFO] Apache CloudStack DevCloud-KVM ..................... SKIPPED
>
> But you can proceed after that with packaging.
>
> Best regards,
> Slavka
>
>
> On Mon, Mar 14, 2022 at 11:12 AM Дикевич Евгений Александрович <
> [email protected]> wrote:
>
> > Hi all!
> >
> > Does somebody try to build CS from sources?
> > Try It with official documentation and on one step I get ERROR:
> >
> > Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec
> > (compile) on project cloud-apidoc: Command execution failed. Process
> > exited with an error: 1 (Exit value: 1) -> [Help 1]
> >
> > I try to build rmps for el8.
> >
> >
> >
> > Внимание!
> > Это электронное письмо и все прикрепленные к нему файлы являются
> > конфиденциальными и предназначены исключительно для использования
> > лицом (лицами), которому (которым) оно предназначено. Если Вы не
> > являетесь лицом (лицами), которому (которым) предназначено это письмо,
> > не копируйте и не разглашайте его содержимое и удалите это сообщение и
> > все вложения из Вашей почтовой системы. Любое несанкционированное
> > использование, распространение, раскрытие, печать или копирование
> > этого электронного письма и прикрепленных к нему файлов, кроме как
> > лицом (лицами) которому (которым) они предназначены, является
> > незаконным и запрещено. Принимая во внимание, что передача данных
> > посредством Интернет не является безопасной, мы не несем никакой
> > ответственности за любой потенциальный ущерб, причиненный в результате
> > ошибок при передаче данных или этим сообщением и прикрепленными к нему
> файлами.
> >
> > Attention!
> > This email and all attachments to it are confidential and are intended
> > solely for use by the person (or persons) referred to (mentioned) as
> > the intended recipient (recipients). If you are not the intended
> > recipient of this email, do not copy or disclose its contents and
> > delete the message and any attachments to it from your e-mail system.
> > Any unauthorized use, dissemination, disclosure, printing or copying
> > of this e-mail and files attached to it, except by the intended
> > recipient, is illegal and is prohibited. Taking into account that data
> > transmission via Internet is not secure, we assume no responsibility
> > for any potential damage caused by data transmission errors or this
> message and the files attached to it.
> >
> Внимание!
> Это электронное письмо и все прикрепленные к нему файлы являются
> конфиденциальными и предназначены исключительно для использования лицом
> (лицами), которому (которым) оно предназначено. Если Вы не являетесь лицом
> (лицами), которому (которым) предназначено это письмо, не копируйте и не
> разглашайте его содержимое и удалите это сообщение и все вложения из Вашей
> почтовой системы. Любое несанкционированное использование, распространение,
> раскрытие, печать или копирование этого электронного письма и прикрепленных
> к нему файлов, кроме как лицом (лицами) которому (которым) они
> предназначены, является незаконным и запрещено. Принимая во внимание, что
> передача данных посредством Интернет не является безопасной, мы не несем
> никакой ответственности за любой потенциальный ущерб, причиненный в
> результате ошибок при передаче данных или этим сообщением и прикрепленными
> к нему файлами.
>
> Attention!
> This email and all attachments to it are confidential and are intended
> solely for use by the person (or persons) referred to (mentioned) as the
> intended recipient (recipients). If you are not the intended recipient of
> this email, do not copy or disclose its contents and delete the message and
> any attachments to it from your e-mail system. Any unauthorized use,
> dissemination, disclosure, printing or copying of this e-mail and files
> attached to it, except by the intended recipient, is illegal and is
> prohibited. Taking into account that data transmission via Internet is not
> secure, we assume no responsibility for any potential damage caused by data
> transmission errors or this message and the files attached to it.
>
  • Build CS from Sou... Дикевич Евгений Александрович
    • Re: Build CS... Slavka Peleva
      • RE: [!!M... Дикевич Евгений Александрович
        • Re: ... Suresh Anaparti
        • Re: ... Slavka Peleva
          • ... Wei ZHOU
            • ... Дикевич Евгений Александрович
              • ... Rohit Yadav

Reply via email to