Re: No compiler is provided in this environment - how to stop this error ?

2018-07-03 Thread Karen Goh



On Sun, 6/24/18, Karl Heinz Marbaise  wrote:

 Subject: Re: No compiler is provided in this environment - how to stop this 
error ?
 To: "Maven Users List" , jeffma...@jeffmaury.com
 Date: Sunday, June 24, 2018, 3:00 PM
 
 Hi,
 
 do you really want to work with SNAPSHOT
 versions? I would prefer to 
 work with
 releases instead ..
 
 org.springframework.boot
 spring-boot-starter-parent
 2.0.3.RELEASE
 
 which is available from
 Central...
 
 So you don't
 need any definition of repositories in your pom file...if
 
 you have just remove them...
 
 Furthermore I see in the
 screenshots that there are compilation 
 errors...furthermore to drill down to the
 problem it would be more 
 helpful to test on
 plain command line...and from within Eclipse etc..

Thanks Karl.  Guess there is alot of things I have to pick up. Will watch 
youtube for tutorial in this area.
 
 
 Kind
 regards
 Karl Heinz Marbaise
 
 
 On 24/06/18 06:02, Karen
 Goh wrote:
 > Thanks Jeff.  It is working
 now.
 > 
 > However,
 I'd like to know is it possible to change the version to
 2.0.3 from 2.1.0 in maven pom.xml ?
 > 
 > 
 >    
    
 org.springframework.boot
 >        
 spring-boot-starter-parent
 >        
 2.0.3.BUILD-SNAPSHOT
 > 
 > 
 > I have tried to change on the advice of a
 forum member in Java Range.
 > 
 > But, I keep receiving error message :
 > 
 > Project build error:
 Non-resolvable parent POM for
 com.Superhi5:SpringBootHi5CRUD:0.0.1-SNAPSHOT: Could not
 transfer artifact org.springframework.boot:spring-
 >  
 boot-starter-parent:pom:2.0.3.BUILD-SNAPSHOT from/to
 spring-snapshots (https://repo.spring.io/snapshot):
 repo.spring.io and 'parent.relativePath' points at
 no local
 >   POM
 >
 
 > 
 > I tried various
 ways like doing mvn clean, mvn purge local repositories,
 update and then sue the below as per stackoverflow
 suggestion to change the version but to no avai.
 > 
 >   
 >https://books.google.de/books?id=yEqrMNX3LAgC=PA124=IoIU0MYUp-=huettermann+automatic+releasing=de=PA123#v=onepage=huettermann%20automatic%20releasing=false
 > 
 > Hope you could let
 me know how should I go about changing the version without
 all these errros.
 > 
 >
 Tks & rgds,
 > Karen
 > 
 > 
 >
 
 > On Fri, 6/22/18, Jeff MAURY 
 wrote:
 > 
 >  
 Subject: Re: No compiler is provided in this environment -
 how to stop this error ?
 >   To:
 "Maven Users List" ,
 "Karen Goh" 
 >   Date: Friday, June 22, 2018, 7:24 PM
 >   
 >   Your JAVA_HOME
 must point a jdk
 >   not à jre
 >   
 >   Le ven. 22
 juin
 >   2018 à 13:16, Karen Goh 
 >   a
 >   écrit :
 >   
 >   >
 >   Hi,
 >   >
 >   > I have been
 > 
  trying to tackle the below error without avail.
 >   >
 >   > In my
 due diligence,
 >   I have done the
 necessary checking like making sure
 >  
 > that the environment is run on 1.8JDK
 >   >
 >   >
 Please see
 >   screenshot
 >   >
 >   > https://ibb.co/eopTVT
 >   >
 >   > https://ibb.co/g2wE4o
 >   >
 >   > I got
 the below when
 >   I did the
 following:
 >   >
 >   > 1st, I did run maven clean
 >   > 2nd, I did maven install
 >   >
 >   > And
 the error
 >   appeared.
 >   >
 >   >
 >   >
 >   >
 ---
 >  
 maven-resources-plugin:3.0.1:resources
 (default-resources)
 >   @
 >   > SpringBootHi5CRUD ---
 >   > [INFO] Using 'UTF-8'
 encoding to
 >   copy filtered
 resources.
 >   > [INFO] Copying
 >   1 resource
 >   >
 [INFO] Copying 0 resource
 >   >
 [INFO]
 >   > [INFO] ---
 >   maven-compiler-plugin:3.7.0:compile
 (default-compile) @
 >   >
 SpringBootHi5CRUD ---
 >   >
 >   [INFO] Changes detected - recompiling
 the module!
 >   > [INFO] Compiling 6
 source files to
 >   >
 >  
 C:\Users\Karen.Goh\eclipse-workspace\SpringBoothi5\target\classes
 >   > [INFO]
 >  
 -
 >   > [ERROR] COMPILATION ERROR :
 >   > [INFO]
 >  
 -
 >   > [ERROR] No compiler is provided in
 this
 >   environment. Perhaps you are
 >   > running on
 >  
 a JRE rather than a JDK?
 >   > [INFO]
 1
 >   error
 >   >
 [INFO]
 >  
 -
 >   > [INFO]
 >  
 >
 >  
 
 >   > [INFO] BUILD FAILURE
 >   >
 >   [INFO]
 >   >
 >  
 
 >   > [INFO] Total time: 16.031 s
 >   > [INFO] Finished at:
 >   2018-06-22T18:53:34+08:00
 >   > [INFO] Final
 >   Memory: 20M/182M
 > 
  > [INFO]
 >   >
 >  
 
 >   > [ERROR] Failed to execute goal
 >   >
 >  
 org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile
 >   > (default-compile) on project
 >   SpringBootHi5CRUD: Compilation
 failure
 >   >
 >  
 [ERROR] No compiler is provided in this environment.
 Perhaps
 >   you are
 >   > running on a JRE 

Re: No compiler is provided in this environment - how to stop this error ?

2018-06-24 Thread Karl Heinz Marbaise

Hi,

do you really want to work with SNAPSHOT versions? I would prefer to 
work with releases instead ..


org.springframework.boot
spring-boot-starter-parent
2.0.3.RELEASE

which is available from Central...

So you don't need any definition of repositories in your pom file...if 
you have just remove them...


Furthermore I see in the screenshots that there are compilation 
errors...furthermore to drill down to the problem it would be more 
helpful to test on plain command line...and from within Eclipse etc..



Kind regards
Karl Heinz Marbaise


On 24/06/18 06:02, Karen Goh wrote:

Thanks Jeff.  It is working now.

However, I'd like to know is it possible to change the version to 2.0.3 from 
2.1.0 in maven pom.xml ?


org.springframework.boot
spring-boot-starter-parent
2.0.3.BUILD-SNAPSHOT


I have tried to change on the advice of a forum member in Java Range.

But, I keep receiving error message :

Project build error: Non-resolvable parent POM for 
com.Superhi5:SpringBootHi5CRUD:0.0.1-SNAPSHOT: Could not transfer artifact 
org.springframework.boot:spring-
  boot-starter-parent:pom:2.0.3.BUILD-SNAPSHOT from/to spring-snapshots 
(https://repo.spring.io/snapshot): repo.spring.io and 'parent.relativePath' 
points at no local
  POM


I tried various ways like doing mvn clean, mvn purge local repositories, update 
and then sue the below as per stackoverflow suggestion to change the version 
but to no avai.

  
https://books.google.de/books?id=yEqrMNX3LAgC=PA124=IoIU0MYUp-=huettermann+automatic+releasing=de=PA123#v=onepage=huettermann%20automatic%20releasing=false

Hope you could let me know how should I go about changing the version without 
all these errros.

Tks & rgds,
Karen



On Fri, 6/22/18, Jeff MAURY  wrote:

  Subject: Re: No compiler is provided in this environment - how to stop this 
error ?
  To: "Maven Users List" , "Karen Goh" 

  Date: Friday, June 22, 2018, 7:24 PM
  
  Your JAVA_HOME must point a jdk

  not à jre
  
  Le ven. 22 juin

  2018 à 13:16, Karen Goh 
  a
  écrit :
  
  >

  Hi,
  >
  > I have been
  trying to tackle the below error without avail.
  >
  > In my due diligence,
  I have done the necessary checking like making sure
  > that the environment is run on 1.8JDK
  >
  > Please see
  screenshot
  >
  > https://ibb.co/eopTVT
  >
  > https://ibb.co/g2wE4o
  >
  > I got the below when
  I did the following:
  >
  > 1st, I did run maven clean
  > 2nd, I did maven install
  >
  > And the error
  appeared.
  >
  >
  >
  > ---
  maven-resources-plugin:3.0.1:resources (default-resources)
  @
  > SpringBootHi5CRUD ---
  > [INFO] Using 'UTF-8' encoding to
  copy filtered resources.
  > [INFO] Copying
  1 resource
  > [INFO] Copying 0 resource
  > [INFO]
  > [INFO] ---
  maven-compiler-plugin:3.7.0:compile (default-compile) @
  > SpringBootHi5CRUD ---
  >
  [INFO] Changes detected - recompiling the module!
  > [INFO] Compiling 6 source files to
  >
  C:\Users\Karen.Goh\eclipse-workspace\SpringBoothi5\target\classes
  > [INFO]
  -
  > [ERROR] COMPILATION ERROR :
  > [INFO]
  -
  > [ERROR] No compiler is provided in this
  environment. Perhaps you are
  > running on
  a JRE rather than a JDK?
  > [INFO] 1
  error
  > [INFO]
  -
  > [INFO]
  >
  
  > [INFO] BUILD FAILURE
  >
  [INFO]
  >
  
  > [INFO] Total time: 16.031 s
  > [INFO] Finished at:
  2018-06-22T18:53:34+08:00
  > [INFO] Final
  Memory: 20M/182M
  > [INFO]
  >
  
  > [ERROR] Failed to execute goal
  >
  org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile
  > (default-compile) on project
  SpringBootHi5CRUD: Compilation failure
  >
  [ERROR] No compiler is provided in this environment. Perhaps
  you are
  > running on a JRE rather than a
  JDK?
  > [ERROR] -> [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]
  >
  > If I run using -X
  switch, I get the below error :
  >
  > [ERROR] Failed to execute goal
  >
  org.springframework.boot:spring-boot-maven-plugin:2.1.0.BUILD-SNAPSHOT:run
  > (default-cli) on project
  SpringBootHi5CRUD: An exception occurred while
  > running. null: InvocationTargetException:
  Error creating bean with name
  >
  'articleServiceImpl': Unsatisfied dependency
  expressed through field
  >
  'articleRepository'; nested exception is
  >
  org.springframework.beans.factory.BeanCreationException:
  Error creating
  > bean with name
  'articleRepository': 

Re: No compiler is provided in this environment - how to stop this error ?

2018-06-24 Thread Karen Goh
Sorry Jeff, I do not understand your reply.

Anyway, I have now remove 

and replaced it with  and the pom error went away.

Could you let me know if it makes any difference to change the version ? 

 
org.springframework.boot
spring-boot-starter-parent
2.0.3.BUILD-SNAPSHOT
 


On Sun, 6/24/18, Jeff MAURY  wrote:

 Subject: Re: No compiler is provided in this environment - how to stop this 
error ?
 To: "Karen Goh" 
 Cc: "Maven Users List" 
 Date: Sunday, June 24, 2018, 2:00 PM
 
 This is because this repo only delivers only
 non snapshot artifacts
 
 Jeff
 
 Le dim. 24 juin 2018 à 06:02, Karen
 Goh 
 a écrit :
 
 > Thanks Jeff.  It is working
 now.
 >
 > However, I'd like to know is it
 possible to change the version to 2.0.3
 > from 2.1.0 in maven pom.xml ?
 >
 > 
 >         
       
 org.springframework.boot
 >         
       
 spring-boot-starter-parent
 >         
       
 2.0.3.BUILD-SNAPSHOT
 > 
 >
 > I have tried to change on the
 advice of a forum member in Java Range.
 >
 > But, I keep receiving error
 message :
 >
 > Project build error:
 Non-resolvable parent POM for
 >
 com.Superhi5:SpringBootHi5CRUD:0.0.1-SNAPSHOT: Could not
 transfer artifact
 > org.springframework.boot:spring-
 > 
 boot-starter-parent:pom:2.0.3.BUILD-SNAPSHOT from/to
 spring-snapshots (
 > https://repo.spring.io/snapshot): repo.spring.io and
 > 'parent.relativePath' points at no
 local
 >  POM
 >
 >
 > I tried various ways like doing
 mvn clean, mvn purge local repositories,
 > update and then sue the below as
 per stackoverflow suggestion to change the
 > version but to no avai.
 >
 >
 > https://books.google.de/books?id=yEqrMNX3LAgC=PA124=IoIU0MYUp-=huettermann+automatic+releasing=de=PA123#v=onepage=huettermann%20automatic%20releasing=false
 >
 > Hope you could let me know how
 should I go about changing the version
 > without all these errros.
 >
 > Tks & rgds,
 > Karen
 >
 >
 >
 
 > On Fri, 6/22/18, Jeff MAURY 
 wrote:
 >
 >  Subject: Re: No compiler is
 provided in this environment - how to stop
 > this error ?
 >  To: "Maven Users List"
 ,
 "Karen Goh" <
 > karenwo...@yahoo.com>
 >  Date: Friday, June 22, 2018,
 7:24 PM
 >
 >  Your JAVA_HOME must point a
 jdk
 >  not à jre
 >
 >  Le ven. 22 juin
 >  2018 à 13:16, Karen Goh
 
 >  a
 >  écrit :
 >
 >  >
 >  Hi,
 >  >
 >  > I have been
 >  trying to tackle the below
 error without avail.
 >  >
 >  > In my due diligence,
 >  I have done the necessary
 checking like making sure
 >  > that the environment is
 run on 1.8JDK
 >  >
 >  > Please see
 >  screenshot
 >  >
 >  > https://ibb.co/eopTVT
 >  >
 >  > https://ibb.co/g2wE4o
 >  >
 >  > I got the below when
 >  I did the following:
 >  >
 >  > 1st, I did run maven
 clean
 >  > 2nd, I did maven
 install
 >  >
 >  > And the error
 >  appeared.
 >  >
 >  >
 >  >
 >  > ---
 > 
 maven-resources-plugin:3.0.1:resources (default-resources)
 >  @
 >  > SpringBootHi5CRUD ---
 >  > [INFO] Using 'UTF-8'
 encoding to
 >  copy filtered resources.
 >  > [INFO] Copying
 >  1 resource
 >  > [INFO] Copying 0
 resource
 >  > [INFO]
 >  > [INFO] ---
 > 
 maven-compiler-plugin:3.7.0:compile (default-compile) @
 >  > SpringBootHi5CRUD ---
 >  >
 >  [INFO] Changes detected -
 recompiling the module!
 >  > [INFO] Compiling 6
 source files to
 >  >
 > 
 C:\Users\Karen.Goh\eclipse-workspace\SpringBoothi5\target\classes
 >  > [INFO]
 > 
 -
 >  > [ERROR] COMPILATION
 ERROR :
 >  > [INFO]
 > 
 -
 >  > [ERROR] No compiler is
 provided in this
 >  environment. Perhaps you
 are
 >  > running on
 >  a JRE rather than a JDK?
 >  > [INFO] 1
 >  error
 >  > [INFO]
 > 
 -
 >  > [INFO]
 >  >
 > 
 
 >  > [INFO] BUILD FAILURE
 >  >
 >  [INFO]
 >  >
 > 
 
 >  > [INFO] Total time:
 16.031 s
 >  > [INFO] Finished at:
 >  2018-06-22T18:53:34+08:00
 >  > [INFO] Final
 >  Memory: 20M/182M
 >  > [INFO]
 >  >
 > 
 
 >  > [ERROR] Failed to
 execute goal
 >  >
 > 
 org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile
 >  > (default-compile) on
 project
 >  SpringBootHi5CRUD:
 Compilation failure
 >  >
 >  [ERROR] No compiler is
 provided in this environment. Perhaps
 >  you are
 >  > running on a JRE rather
 than a
 >  JDK?
 >  > [ERROR] -> [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]
 >  >
 >  > If I run using -X
 >  switch, I get the below
 error :
 >  >
 >  > [ERROR] 

Re: No compiler is provided in this environment - how to stop this error ?

2018-06-24 Thread Jeff MAURY
This is because this repo only delivers only non snapshot artifacts

Jeff

Le dim. 24 juin 2018 à 06:02, Karen Goh  a écrit :

> Thanks Jeff.  It is working now.
>
> However, I'd like to know is it possible to change the version to 2.0.3
> from 2.1.0 in maven pom.xml ?
>
> 
> org.springframework.boot
> spring-boot-starter-parent
> 2.0.3.BUILD-SNAPSHOT
> 
>
> I have tried to change on the advice of a forum member in Java Range.
>
> But, I keep receiving error message :
>
> Project build error: Non-resolvable parent POM for
> com.Superhi5:SpringBootHi5CRUD:0.0.1-SNAPSHOT: Could not transfer artifact
> org.springframework.boot:spring-
>  boot-starter-parent:pom:2.0.3.BUILD-SNAPSHOT from/to spring-snapshots (
> https://repo.spring.io/snapshot): repo.spring.io and
> 'parent.relativePath' points at no local
>  POM
>
>
> I tried various ways like doing mvn clean, mvn purge local repositories,
> update and then sue the below as per stackoverflow suggestion to change the
> version but to no avai.
>
>
> https://books.google.de/books?id=yEqrMNX3LAgC=PA124=IoIU0MYUp-=huettermann+automatic+releasing=de=PA123#v=onepage=huettermann%20automatic%20releasing=false
>
> Hope you could let me know how should I go about changing the version
> without all these errros.
>
> Tks & rgds,
> Karen
>
>
> 
> On Fri, 6/22/18, Jeff MAURY  wrote:
>
>  Subject: Re: No compiler is provided in this environment - how to stop
> this error ?
>  To: "Maven Users List" , "Karen Goh" <
> karenwo...@yahoo.com>
>  Date: Friday, June 22, 2018, 7:24 PM
>
>  Your JAVA_HOME must point a jdk
>  not à jre
>
>  Le ven. 22 juin
>  2018 à 13:16, Karen Goh 
>  a
>  écrit :
>
>  >
>  Hi,
>  >
>  > I have been
>  trying to tackle the below error without avail.
>  >
>  > In my due diligence,
>  I have done the necessary checking like making sure
>  > that the environment is run on 1.8JDK
>  >
>  > Please see
>  screenshot
>  >
>  > https://ibb.co/eopTVT
>  >
>  > https://ibb.co/g2wE4o
>  >
>  > I got the below when
>  I did the following:
>  >
>  > 1st, I did run maven clean
>  > 2nd, I did maven install
>  >
>  > And the error
>  appeared.
>  >
>  >
>  >
>  > ---
>  maven-resources-plugin:3.0.1:resources (default-resources)
>  @
>  > SpringBootHi5CRUD ---
>  > [INFO] Using 'UTF-8' encoding to
>  copy filtered resources.
>  > [INFO] Copying
>  1 resource
>  > [INFO] Copying 0 resource
>  > [INFO]
>  > [INFO] ---
>  maven-compiler-plugin:3.7.0:compile (default-compile) @
>  > SpringBootHi5CRUD ---
>  >
>  [INFO] Changes detected - recompiling the module!
>  > [INFO] Compiling 6 source files to
>  >
>  C:\Users\Karen.Goh\eclipse-workspace\SpringBoothi5\target\classes
>  > [INFO]
>  -
>  > [ERROR] COMPILATION ERROR :
>  > [INFO]
>  -
>  > [ERROR] No compiler is provided in this
>  environment. Perhaps you are
>  > running on
>  a JRE rather than a JDK?
>  > [INFO] 1
>  error
>  > [INFO]
>  -
>  > [INFO]
>  >
>  
>  > [INFO] BUILD FAILURE
>  >
>  [INFO]
>  >
>  
>  > [INFO] Total time: 16.031 s
>  > [INFO] Finished at:
>  2018-06-22T18:53:34+08:00
>  > [INFO] Final
>  Memory: 20M/182M
>  > [INFO]
>  >
>  
>  > [ERROR] Failed to execute goal
>  >
>  org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile
>  > (default-compile) on project
>  SpringBootHi5CRUD: Compilation failure
>  >
>  [ERROR] No compiler is provided in this environment. Perhaps
>  you are
>  > running on a JRE rather than a
>  JDK?
>  > [ERROR] -> [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]
>  >
>  > If I run using -X
>  switch, I get the below error :
>  >
>  > [ERROR] Failed to execute goal
>  >
>  org.springframework.boot:spring-boot-maven-plugin:2.1.0.BUILD-SNAPSHOT:run
>  > (default-cli) on project
>  SpringBootHi5CRUD: An exception occurred while
>  > running. null: InvocationTargetException:
>  Error creating bean with name
>  >
>  'articleServiceImpl': Unsatisfied dependency
>  expressed through field
>  >
>  'articleRepository'; nested exception is
>  >
>  org.springframework.beans.factory.BeanCreationException:
>  Error creating
>  > bean with name
>  'articleRepository': Invocation of init method
>  failed;
>  > nested exception is
>  java.lang.IllegalArgumentException: Not a managed type:
>  > class com.StudentRecruit.model.Article
>  -> [Help 1]
>  >
>  org.apache.maven.lifecycle.LifecycleExecutionException:
>  Failed to execute
>  

Re: No compiler is provided in this environment - how to stop this error ?

2018-06-23 Thread Karen Goh
Thanks Jeff.  It is working now.

However, I'd like to know is it possible to change the version to 2.0.3 from 
2.1.0 in maven pom.xml ?


org.springframework.boot
spring-boot-starter-parent
2.0.3.BUILD-SNAPSHOT


I have tried to change on the advice of a forum member in Java Range.

But, I keep receiving error message :

Project build error: Non-resolvable parent POM for 
com.Superhi5:SpringBootHi5CRUD:0.0.1-SNAPSHOT: Could not transfer artifact 
org.springframework.boot:spring-
 boot-starter-parent:pom:2.0.3.BUILD-SNAPSHOT from/to spring-snapshots 
(https://repo.spring.io/snapshot): repo.spring.io and 'parent.relativePath' 
points at no local 
 POM


I tried various ways like doing mvn clean, mvn purge local repositories, update 
and then sue the below as per stackoverflow suggestion to change the version 
but to no avai.

 
https://books.google.de/books?id=yEqrMNX3LAgC=PA124=IoIU0MYUp-=huettermann+automatic+releasing=de=PA123#v=onepage=huettermann%20automatic%20releasing=false

Hope you could let me know how should I go about changing the version without 
all these errros.

Tks & rgds,
Karen



On Fri, 6/22/18, Jeff MAURY  wrote:

 Subject: Re: No compiler is provided in this environment - how to stop this 
error ?
 To: "Maven Users List" , "Karen Goh" 

 Date: Friday, June 22, 2018, 7:24 PM
 
 Your JAVA_HOME must point a jdk
 not à jre
 
 Le ven. 22 juin
 2018 à 13:16, Karen Goh 
 a
 écrit :
 
 >
 Hi,
 >
 > I have been
 trying to tackle the below error without avail.
 >
 > In my due diligence,
 I have done the necessary checking like making sure
 > that the environment is run on 1.8JDK
 >
 > Please see
 screenshot
 >
 > https://ibb.co/eopTVT
 >
 > https://ibb.co/g2wE4o
 >
 > I got the below when
 I did the following:
 >
 > 1st, I did run maven clean
 > 2nd, I did maven install
 >
 > And the error
 appeared.
 >
 >
 >
 > ---
 maven-resources-plugin:3.0.1:resources (default-resources)
 @
 > SpringBootHi5CRUD ---
 > [INFO] Using 'UTF-8' encoding to
 copy filtered resources.
 > [INFO] Copying
 1 resource
 > [INFO] Copying 0 resource
 > [INFO]
 > [INFO] ---
 maven-compiler-plugin:3.7.0:compile (default-compile) @
 > SpringBootHi5CRUD ---
 >
 [INFO] Changes detected - recompiling the module!
 > [INFO] Compiling 6 source files to
 >
 C:\Users\Karen.Goh\eclipse-workspace\SpringBoothi5\target\classes
 > [INFO]
 -
 > [ERROR] COMPILATION ERROR :
 > [INFO]
 -
 > [ERROR] No compiler is provided in this
 environment. Perhaps you are
 > running on
 a JRE rather than a JDK?
 > [INFO] 1
 error
 > [INFO]
 -
 > [INFO]
 >
 
 > [INFO] BUILD FAILURE
 >
 [INFO]
 >
 
 > [INFO] Total time: 16.031 s
 > [INFO] Finished at:
 2018-06-22T18:53:34+08:00
 > [INFO] Final
 Memory: 20M/182M
 > [INFO]
 >
 
 > [ERROR] Failed to execute goal
 >
 org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile
 > (default-compile) on project
 SpringBootHi5CRUD: Compilation failure
 >
 [ERROR] No compiler is provided in this environment. Perhaps
 you are
 > running on a JRE rather than a
 JDK?
 > [ERROR] -> [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]
 >
 > If I run using -X
 switch, I get the below error :
 >
 > [ERROR] Failed to execute goal
 >
 org.springframework.boot:spring-boot-maven-plugin:2.1.0.BUILD-SNAPSHOT:run
 > (default-cli) on project
 SpringBootHi5CRUD: An exception occurred while
 > running. null: InvocationTargetException:
 Error creating bean with name
 >
 'articleServiceImpl': Unsatisfied dependency
 expressed through field
 >
 'articleRepository'; nested exception is
 >
 org.springframework.beans.factory.BeanCreationException:
 Error creating
 > bean with name
 'articleRepository': Invocation of init method
 failed;
 > nested exception is
 java.lang.IllegalArgumentException: Not a managed type:
 > class com.StudentRecruit.model.Article
 -> [Help 1]
 >
 org.apache.maven.lifecycle.LifecycleExecutionException:
 Failed to execute
 > goal
 >
 org.springframework.boot:spring-boot-maven-plugin:2.1.0.BUILD-SNAPSHOT:run
 > (default-cli) on project
 SpringBootHi5CRUD: An exception occurred while
 > running. null
 >     
    at
 >
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
 >         at
 >
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
 >         at
 >
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
 >   

Re: No compiler is provided in this environment - how to stop this error ?

2018-06-22 Thread Jeff MAURY
Your JAVA_HOME must point a jdk not à jre

Le ven. 22 juin 2018 à 13:16, Karen Goh  a
écrit :

> Hi,
>
> I have been trying to tackle the below error without avail.
>
> In my due diligence, I have done the necessary checking like making sure
> that the environment is run on 1.8JDK
>
> Please see screenshot
>
> https://ibb.co/eopTVT
>
> https://ibb.co/g2wE4o
>
> I got the below when I did the following:
>
> 1st, I did run maven clean
> 2nd, I did maven install
>
> And the error appeared.
>
>
>
> --- maven-resources-plugin:3.0.1:resources (default-resources) @
> SpringBootHi5CRUD ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 1 resource
> [INFO] Copying 0 resource
> [INFO]
> [INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @
> SpringBootHi5CRUD ---
> [INFO] Changes detected - recompiling the module!
> [INFO] Compiling 6 source files to
> C:\Users\Karen.Goh\eclipse-workspace\SpringBoothi5\target\classes
> [INFO] -
> [ERROR] COMPILATION ERROR :
> [INFO] -
> [ERROR] No compiler is provided in this environment. Perhaps you are
> running on a JRE rather than a JDK?
> [INFO] 1 error
> [INFO] -
> [INFO]
> 
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time: 16.031 s
> [INFO] Finished at: 2018-06-22T18:53:34+08:00
> [INFO] Final Memory: 20M/182M
> [INFO]
> 
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile
> (default-compile) on project SpringBootHi5CRUD: Compilation failure
> [ERROR] No compiler is provided in this environment. Perhaps you are
> running on a JRE rather than a JDK?
> [ERROR] -> [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]
>
> If I run using -X switch, I get the below error :
>
> [ERROR] Failed to execute goal
> org.springframework.boot:spring-boot-maven-plugin:2.1.0.BUILD-SNAPSHOT:run
> (default-cli) on project SpringBootHi5CRUD: An exception occurred while
> running. null: InvocationTargetException: Error creating bean with name
> 'articleServiceImpl': Unsatisfied dependency expressed through field
> 'articleRepository'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'articleRepository': Invocation of init method failed;
> nested exception is java.lang.IllegalArgumentException: Not a managed type:
> class com.StudentRecruit.model.Article -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal
> org.springframework.boot:spring-boot-maven-plugin:2.1.0.BUILD-SNAPSHOT:run
> (default-cli) on project SpringBootHi5CRUD: An exception occurred while
> running. null
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
> at
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
> at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
> at
> 

No compiler is provided in this environment - how to stop this error ?

2018-06-22 Thread Karen Goh
Hi,

I have been trying to tackle the below error without avail.

In my due diligence, I have done the necessary checking like making sure that 
the environment is run on 1.8JDK

Please see screenshot

https://ibb.co/eopTVT

https://ibb.co/g2wE4o

I got the below when I did the following:

1st, I did run maven clean
2nd, I did maven install

And the error appeared.



--- maven-resources-plugin:3.0.1:resources (default-resources) @ 
SpringBootHi5CRUD ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 0 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ 
SpringBootHi5CRUD ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 6 source files to 
C:\Users\Karen.Goh\eclipse-workspace\SpringBoothi5\target\classes
[INFO] -
[ERROR] COMPILATION ERROR : 
[INFO] -
[ERROR] No compiler is provided in this environment. Perhaps you are running on 
a JRE rather than a JDK?
[INFO] 1 error
[INFO] -
[INFO] 
[INFO] BUILD FAILURE
[INFO] 
[INFO] Total time: 16.031 s
[INFO] Finished at: 2018-06-22T18:53:34+08:00
[INFO] Final Memory: 20M/182M
[INFO] 
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) 
on project SpringBootHi5CRUD: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on 
a JRE rather than a JDK?
[ERROR] -> [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] 

If I run using -X switch, I get the below error :

[ERROR] Failed to execute goal 
org.springframework.boot:spring-boot-maven-plugin:2.1.0.BUILD-SNAPSHOT:run 
(default-cli) on project SpringBootHi5CRUD: An exception occurred while 
running. null: InvocationTargetException: Error creating bean with name 
'articleServiceImpl': Unsatisfied dependency expressed through field 
'articleRepository'; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'articleRepository': Invocation of init method failed; nested 
exception is java.lang.IllegalArgumentException: Not a managed type: class 
com.StudentRecruit.model.Article -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal 
org.springframework.boot:spring-boot-maven-plugin:2.1.0.BUILD-SNAPSHOT:run 
(default-cli) on project SpringBootHi5CRUD: An exception occurred while 
running. null
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at 
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: An exception 
occurred while running. null
at