Re: Eclipse is running in JRE, but JDK is required-
Jahia papez <[email protected]> Wed, 11 Feb 2009 21:38:13 +0100
| Newsgroups | gmane.comp.cms.jahia.template |
|---|---|
| Message-ID | <[email protected]> |
--===============1081497553== Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=UTF-8" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> Hello,<br> <br> On 11.02.2009 19:32, ali DAN-BOUZOUA wrote: <blockquote cite="mid:[email protected]" type="cite"> <style type="text/css"><!-- DIV {margin:0px;} --></style> <div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"> <div><br> <p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-size: 10pt; color: black; font-family: Arial;"> <span style=""> Using Eclipse for Jahia Template Development</span></span></p> <p class="MsoNormal" style="margin: 0in 0in 0pt;"><o:p><font face="Times New Roman" size="3"> </font></o:p></p> <p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-size: 10pt; color: black; font-family: Arial;">I am setting eclipse/jahia6 following the instructions <o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-size: 10pt; color: black; font-family: Arial;"> <o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-size: 10pt; color: black; font-family: Arial;"> <o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-size: 10pt; color: black; font-family: Arial;">1. I have a question first:<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-size: 10pt; color: black; font-family: Arial;"> <o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-size: 10pt; color: black; font-family: Arial;">I am confuse about the two ins install of Maven 2 .<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-size: 10pt; color: black; font-family: Arial;">Do we have to do the two, seems there is redundency there <o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-size: 10pt; color: black; font-family: Arial;"> <o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-size: 10pt; color: black; font-family: Symbol;">·</span><span style="font-size: 10pt; color: black; font-family: Arial;"><span style=""> </span>Maven 2 (<a moz-do-not-send="true" title="http://maven.apache.org/download.html" href="http://maven.apache.org/download.html"><span style="color: blue;">http://maven.apache.org/download.html</span></a>)<o:p></o:p></span></p> <p><span style="font-size: 10pt; color: black; font-family: Arial;"> <o:p></o:p></span></p> <p><span style="font-size: 10pt; color: black; font-family: Arial;">OR ? AND ?<o:p></o:p></span></p> <p><span style="font-size: 10pt; color: black; font-family: Arial;"> <o:p></o:p></span></p> <p><span style="font-size: 10pt; color: black; font-family: Symbol;">·</span><span style="font-size: 10pt; color: black; font-family: Arial;"><span style=""> </span>Maven 2 Eclipse Plugin (<a moz-do-not-send="true" title="http://m2eclipse.codehaus.org/" href="http://m2eclipse.codehaus.org/"><span style="color: blue;">http://m2eclipse.codehaus.org/</span></a> with installation requirements <o:p></o:p><br> </span></p> </div> </div> </blockquote> <br> This is an AND - you need to download and install "Maven 2" on your local disk first, and then you need to install the Eclipse plugin for Maven 2<br> <br> <blockquote cite="mid:[email protected]" type="cite"> <div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"> <div> <p><span style="font-size: 10pt; color: black; font-family: Arial;"><o:p></o:p></span></p> <p><span style="font-size: 10pt; color: black; font-family: Arial;">2 I did exactly the steps in the tutorial . But Maven complains about jre.<o:p></o:p></span></p> <p><span style="font-size: 10pt; color: black; font-family: Arial;"><span style=""> </span>I have fixed Installed JRE <span style=""> </span>to use JDK it in eclipse and in the eclipse.ini, add the option <span style=""> </span>–vm c:\jdk1.6_10\bin\javaw.exe.<o:p></o:p></span></p> <p><span style="font-size: 10pt; color: black; font-family: Arial;"><span style=""> </span><o:p></o:p></span></p> <p><span style="font-size: 10pt; color: black; font-family: Arial;">I can see my project in my workspace but Open Project disabled and Maven <span style=""> </span>still complaining about <span style=""> </span>“Eclipse is running in JRE, but JDK is required-<span style=""> </span>some Maven Plugging may not works…”</span></p> </div> </div> </blockquote> <br> I had the same issue first. What worked for me is to add the parameter not in eclipse.ini but directly in the Windows shortcut calling eclipse <br> (e.g. I am using: "D:\Program Files\eclipse\eclipse.exe" -vm "D:\Program Files\Java\jdk1.6.0_11\bin\javaw.exe" -showlocation)<span style="font-size: 10pt; color: black; font-family: Arial;"></span><br> <br> Regards,<br> Benjamin<br> </body> </html> --===============1081497553== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ template_list mailing list [email protected] http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list --===============1081497553==--