Myeclipse Ant Error Starting Modern Compiler
Contents |
Technologies Java EE Development WebSphere App Coding Spring Tools & IDE JavaScript with JSjet REST Web Services Web Development Tools Maven Enablement Eclipse Code Sharing for Slack Live Preview Database & Persistence View All RegisterLog In 0 Items Products MyEclipse IDE Secure intellij error starting modern compiler Delivery Center Webclipse GapDebug WebPad Our Company About Careers Contact Us Community Blog Press
Run With --stacktrace Option To Get The Stack Trace.
Twitter Support Genuitec Advanced Support Services Select Page Your Internet Explorer version is not compatible with our shopping cart system. Please use
Run With --stacktrace Option To Get The Stack Trace Android Studio
version 9 or higher to avoid problems with your order(s). Close Getting Error starting modern compiler while ANT execution Genuitec :: Driving Development for Leading Organizations › Forums › MyEclipse IDE › General Development This
Stacktrace Option To Get The Stack Trace. Run With --info Or --debug Option To Get More Log Output
topic contains 17 replies, has 8 voices, and was last updated by Loyal Water 7 years, 3 months ago. Viewing 15 posts - 1 through 15 (of 18 total) 1 2 → Author Posts July 9, 2007 at 4:31 am #272464 Reply deepakgupta_72Member Hi, I am using MyEclipse Enterprise Workbench Version: 5.5.1 GA Build id: 20070521-5.5.1-GA JDK 6 when i am trying to run the build.xml through MyEclipse ide its giving me execution failed for task ':cordovalib:processdebugresources'. error Error starting modern compiler for the target
I received the following error when trying to build the spring core project using execution failed for task ':app:transformclasseswithdexfordebug'. Ant build: Buildfile: C:\Projects\ProjectName\projectSpringCore\build.xml compile: [mkdir] Created dir: C:\Projects\ProjectName\projectSpringCore\build execution failed for task ':app:processdebugresources'. [copy] Copying 20 files to C:\Projects\ProjectName\projectSpringCore\build [javac] Compiling 17 source files to C:\Projects\ProjectName\projectSpringCore\build BUILD FAILED C:\Projects\ProjectName\projectSpringCore\build.xml:25: Error starting modern compiler Total time: 285 milliseconds After some searching http://www.myeclipseide.com/index.php?name=PNphpBB2&file=viewtopic&t=17956 This can arise for different reasons - though generally these reasons https://www.genuitec.com/forums/topic/getting-error-starting-modern-compiler-while-ant-execution/ are all related - the version of Java being used by the Ant compiler in IDE does not match that already and referred to in JAVA_HOME. To solve this in Eclipse, Go to Run > External Tools > External Tools Configurations > JRE Select Separate JRE and match that with the one http://ejvyas.blogspot.com/2011/11/ant-error-error-starting-modern.html selected as JAVA_HOME. You can verify the selected Java is the same using the Installed JREs tab Tweet at 10:47 PM Labels: Eclipse, Java, MyEclipse Newer Post Older Post Home Subscribe to: Post Comments (Atom) Archive ► 2016 (12) ► August (1) ► May (1) ► April (1) ► March (4) ► February (2) ► January (3) ► 2015 (18) ► December (1) ► November (2) ► October (1) ► September (2) ► August (1) ► July (1) ► June (1) ► May (1) ► February (4) ► January (4) ► 2014 (10) ► December (3) ► November (1) ► September (2) ► August (1) ► July (2) ► May (1) ► 2013 (27) ► December (2) ► November (3) ► October (6) ► September (3) ► July (2) ► June (1) ► April (4) ► March (4) ► February (1) ► January (1) ► 2012 (68) ► December (1) ► Novemb
them into a ZIP file.
BUILD FAILED
%my XML file%: Error starting modern compiler
This problem can arise in different development environments, and for different reasons - though generally these http://stevehealy.org/techblog/?p=60 reasons are all related - the version of Java being used by the compiler does not match that already loaded by the VM, or being referred to in JAVA_HOME. To solve this in Eclipse, I first https://my.oschina.net/zhaoyou/blog/9073 went to Run > External Tools > External Tools Configurations … and accessed the JRE tab. The next step, change from "Run in the same JRE as the workspace" to specifying a "Separate JRE": However, this run with change still resulted in the "modern compiler" error being displayed. The final step? Despite the prompt asking for a separate JRE - it is in fact the JDK that needs to be selected: And voila - you should now see these happy words…
BUILD SUCCESSFUL
This entry was posted in Code Monkey and tagged Ant, compiler, eclipse, Java, Windows. Bookmark the permalink. Previous PostNext Post 20 Responses to "Ant option to get Errors: "Error starting modern compiler"" By Graham October 22, 2010 - 10:45 pm Works like a charm! By Tim February 23, 2011 - 10:55 pm Fixed my exact problem, Cheers! By Santosh March 7, 2011 - 9:04 pm Thanks for your help. It helpmed me alot 🙂 By Manjunath June 19, 2011 - 6:49 am 🙂 wonderful, this is the exact solution. Other blogs the leads you to check Window-Preferences-Java section, that actually wouldn't help me to fix though one might have to look at their as well. Thanks helpful post. By Miguel August 10, 2011 - 7:53 pm Bravo, my dear friend! You saved me a lot of time! By fabricio September 6, 2011 - 11:00 pm thanks a lot! That helped me! By Carlos December 8, 2011 - 1:58 am Amazing! By JJ February 1, 2012 - 7:18 pm Thanks Stevo! This actually helped me today 🙂 By Ravi March 1, 2012 - 12:20 am Thanks, you nailed it. By Ashok April 4, 2012 - 9:08 am Thanks a lot By Rashmi April 23, 2012 - 8:36 am It works great.. thank you By aniruddha June 20, 2012 - 3:23 pm Excellent ! Unblocked me . Thanks. By Mohamed June 28, 2012 - 2:27 pm Thanks, i works for me . By R
职业生涯 站务/建议 支付宝专区 MoPaaS专区 开源硬件专区 动弹 博客 翻译 资讯 专题 源创会 视频 高手问答 访谈 周刊 乱弹 公司开源导航页 Android开发专区 iOS开发专区 iOS代码库 Windows Phone 城市圈 全部城市圈 [ 登录 | 注册 ] zhaoyou的博客 > 详情 Ant 编译出现:Error starting modern compiler zhaoyou 发表于6年前 分享到: 一键分享 QQ空间 微信 腾讯微博 新浪微博 QQ好友 有道云笔记 转 Ant 编译出现:Error starting modern compiler 收藏 zhaoyou 发表于 6年前 阅读 1677 收藏 1 点赞 0 评论 0 我通过ant,执行start的时候就出现下面问题,,我用的是ant 1.7.0,jikes1.22,jdk1.6.1,为什么出下以下问题,谁能来救救我, Buildfile: D:\liferay\portal\build.xml start: compile: compile: [javac] Compiling 232 source files to D:\liferay\portal\portal-kernel\classes BUILD FAILED D:\liferay\portal\build.xml:15: The following error occurred while executing this line: D:\liferay\portal\build.xml:230: The following error occurred while executing this line: D:\liferay\portal\portal-kernel\build.xml:23: Error starting modern compiler Total time: 18 seconds ----------------------------------------- 我也遇到过这个问题,修改下面的就可解决问题 在这个文件中build.properties 修改编译器的类型 #javac.compiler=modern javac.compiler=jikes -------------------------------------- 我用的Jdk是1.6,在MyEclipse下编译Liferay4.3也遇到过这个问题,解决方法如下: 从JDK 1.5的类库中copy了一个tool.jar,放在我的C:\Program Files\MyEclipse 6.0\jre\lib\ext路径中,就OK了。原因是ant还不能支持JDK 1.6。 源文档