Dear Joe,

>From the error msg, it seems that Maven is looking for the Java
compiler (javac) in a JRE directory. It should be looking in a JDK
directory instead of a JRE directory. Can you try
export JAVA_HOME=<your JDK dir>
before running Maven?

Best,
Gábor




Joe San <[email protected]> ezt írta (időpont: 2022. jan. 15.,
Szo, 20:36):
>
> Java version seems not to be the problem. To just try out something, I
> added some Scala code to the wayang-core and this gives me the following
> error. Without any src/main/scala, it compiles fine. I will try it out
> tonight and see what causes this.
>
> [ERROR] Failed to execute goal
> net.alchim31.maven:scala-maven-plugin:4.5.6:compile (compile-scala) on
> project wayang-core: wrap: java.io.IOException: Cannot run program
> "/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/javac" (in directory
> "/home/joesan/Projects/Private/apache-projects/incubator-wayang/wayang-commons/wayang-core"):
> error=2, No such file or directory
>
>
>
> On Sat, Jan 15, 2022 at 5:05 PM Alexander Alten <[email protected]> wrote:
>
> > export the java version you want to use
> >
> > > On 15. Jan 2022, at 16:02, Joe San <[email protected]> wrote:
> > >
> > > Figured out that I had different scala versions set in my .bash_profile.
> > > Once I got down from Scala 3 to Scala 2.12, I was able to proceed with
> > the
> > > compilation, until I hit the next one which I guess is related to a Java
> > > settings. Again I have quite a few java versions that I use for various
> > > projects and there is something that is causing this issue.
> > >
> > >
> > >
> > > On Sat, Jan 15, 2022 at 7:30 AM Joe San <[email protected]> wrote:
> > >
> > >> I checked out and tried the following against the top level project and
> > >> ran into errors as I tried using scala profile, thinking that it would
> > >> compile any scala sources, but it seems it has some problems. Has anyone
> > >> tried using scala as a profile for the Wayang builds?
> > >>
> > >> joesan@joesan-InfinityBook-S-14-v5
> > :~/Projects/Private/apache-projects/incubator-wayang$
> > >> mvn clean install -P scala
> > >> .....
> > >> .....
> > >> [INFO] BUILD FAILURE
> > >> [INFO]
> > >> ------------------------------------------------------------------------
> > >> [INFO] Total time:  2.056 s
> > >> [INFO] Finished at: 2022-01-15T07:24:39+01:00
> > >> [INFO]
> > >> ------------------------------------------------------------------------
> > >> [ERROR] Failed to execute goal
> > >> net.alchim31.maven:scala-maven-plugin:4.5.6:compile (compile-scala) on
> > >> project wayang: Execution compile-scala of goal
> > >> net.alchim31.maven:scala-maven-plugin:4.5.6:compile failed: invalid
> > >> versionNumber : major.minor(.bugfix)(modifier) :${scala.version} ->
> > [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/PluginExecutionException
> > >> joesan@joesan-InfinityBook-S-14-v5
> > >> :~/Projects/Private/apache-projects/incubator-wayang$
> > >>
> >
> >

Reply via email to