Did you actually install the JDK?   The error is suggesting you might have
just installed the JRE.

The JDK is a superset of the JRE that includes the compiler and more.

On Mon, Mar 21, 2016 at 11:55 AM, Unesco Iha <[email protected]> wrote:

> Yes, I set the JAVA_HOME using these steps :
> https://confluence.atlassian.com/doc/setting-the-java_home-variable-in-windows-8895.html
>
> And I have Java 8, but in the tutorial setup, it says:
>
> If you have Java 8, you must specify Java 7 as the source and the target.
>> In Maven, you do this in the pom.xml file for your project, within the
>> maven-compiler-plugin configuration settings:
>>         <plugin>
>>             <groupId>org.apache.maven.plugins</groupId>
>>             <version>3.2</version>
>>             <artifactId>maven-compiler-plugin</artifactId>
>>             <configuration>
>>                 <source>7</source>
>>                 <target>7</target>
>>             </configuration>
>>         </plugin>
>
>
> Which I did.
>
>
>
> On Monday, March 21, 2016 at 2:45:55 PM UTC-4, Les Vogel wrote:
>>
>> Have you set your JAVA_HOME variable?  It's necessary for Windows.
>>
>> Note - you should be using Java 7 for AppEngine, Java 8 works with
>> managed VMs https://cloud.google.com/appengine/docs/managed-vms/
>>
>>
>> On Mon, Mar 21, 2016 at 11:32 AM, Unesco Iha <[email protected]> wrote:
>>
>>> Another question about the JAVA tutorial:
>>>
>>> In "Testing the finished sample" in the section 4. Adding Apllication
>>> Code and IU, I get the following error:
>>>
>>>
>>>> F:\[MY PATH]\guestbook>mvn appengine:devserver
>>>
>>> [INFO] Scanning for projects...
>>>
>>> [INFO]
>>>
>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>
>>> [INFO] Building guestbook 1.0-SNAPSHOT
>>>
>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>
>>> [INFO]
>>>
>>> [INFO] >>> appengine-maven-plugin:1.9.34:devserver (default-cli) >
>>>> package @ guestbook >>>
>>>
>>> [INFO]
>>>
>>> [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @
>>>> guestbook ---
>>>
>>> [INFO] Using 'UTF-8' encoding to copy filtered resources.
>>>
>>> [INFO] skip non existing resourceDirectory
>>>> F:\Roy\Documents_Roy_Nahas\SIG\IHA\Google
>>>> Engine\guestbook\src\main\resources
>>>
>>> [INFO]
>>>
>>> [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @
>>>> guestbook ---
>>>
>>> [INFO] Changes detected - recompiling the module!
>>>
>>> [INFO] Compiling 1 source file to
>>>> F:\Roy\Documents_Roy_Nahas\SIG\IHA\Google
>>>> Engine\guestbook\target\guestbook-1.0-SNAPSHOT\WEB-INF\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: 0.876 s
>>>
>>> [INFO] Finished at: 2016-03-21T14:25:10-04:00
>>>
>>> [INFO] Final Memory: 7M/18M
>>>
>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>
>>> [ERROR] Failed to execute goal
>>>> org.apache.maven.plugins:maven-compiler-plugin:3.1:compile
>>>> (default-compile) on project guestbook: 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]
>>>
>>> [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/MojoFailureException
>>>
>>>
>>> How can I correct this?
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Google App Engine" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>> Visit this group at https://groups.google.com/group/google-appengine.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/google-appengine/8254d301-ebb6-4499-b1c6-209725bf6f2c%40googlegroups.com
>>> <https://groups.google.com/d/msgid/google-appengine/8254d301-ebb6-4499-b1c6-209725bf6f2c%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>>
>>
>> *  •  **Les Vogel*
>> *  •  *Cloud Developer Relations
>> *  •  *[email protected]
>> *  •  *+1-408-676-7023
>>
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-appengine/eafbe16c-fa99-4f51-91a8-350724ae3efc%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/eafbe16c-fa99-4f51-91a8-350724ae3efc%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 


*  •  **Les Vogel*
*  •  *Cloud Developer Relations
*  •  *[email protected]
*  •  *+1-4 <%2B1-650-338-7103>08-676-7023

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CAGB1p5iocn_dgs5Rh-JfcLPkZ1PXcMJSW9XXQDq9k5uNReYUGw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to