Error Starting Modern Compiler Ant Linux
Contents |
"Error starting modern compiler" Summary: Build error starting modern compiler intellij fails with "Error starting modern compiler" Status: CLOSED FIXED Product:
Run With --stacktrace Option To Get The Stack Trace.
www Classification: Unclassified Component: Builds & Repositories Version: 6.x Hardware: PC Linux Priority: P2 (vote) TargetMilestone: run with --stacktrace option to get the stack trace android studio TBD Assigned To: Tim Lebedkov QA Contact: nbbuild-issues@ide URL: Whiteboard: Keywords: Depends on: Blocks: Show dependency tree /graph Reported: 2007-05-17 15:35 UTC by stacktrace option to get the stack trace. run with --info or --debug option to get more log output Tim Lebedkov Modified: 2007-07-16 13:07 UTC (History) CC List: 1 user (show) jdtran88 See Also: Issue Type: DEFECT Exception Report : Attachments Add an attachment (proposed patch, testcase, etc.) Note You need to log in before you can comment on or make changes to this bug. Description Tim Lebedkov 2007-05-17
Execution Failed For Task ':cordovalib:processdebugresources'.
15:35:30 UTC Linux timpc2 2.6.20-15-386 #2 Sun Apr 15 07:34:00 UTC 2007 i686 GNU/Linux java version "1.5.0_11" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03) Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode, sharing) Apache Ant version 1.7.0 compiled on December 13 2006 compile: [depend] Deleted 115 out of date files in 1 seconds [javac] Compiling 41 source files to /home/tim/projects/netbeans/trunk/core/startup/build/classes [repeat] [nbmerge] Failed to build target: all-core/startup BUILD FAILED /home/tim/projects/netbeans/trunk/nbbuild/build.xml:645: The following error occurred while executing this line: /home/tim/projects/netbeans/trunk/nbbuild/build.xml:640: The following error occurred while executing this line: /home/tim/projects/netbeans/trunk/nbbuild/build.xml:679: The following error occurred while executing this line: /home/tim/projects/netbeans/trunk/nbbuild/build.xml:661: The following error occurred while executing this line: /home/tim/projects/netbeans/trunk/nbbuild/build.xml:640: The following error occurred while executing this line: /home/tim/projects/netbeans/trunk/nbbuild/build.xml:679: The following error occurred while executing this line: /home/tim/projects/netbeans/trunk/nbbuild/build.xml:661: The following error occurred while executing this line: /home/tim/projects/netbeans/trunk/nbbuild/build.xml:640: The following error occurred while executing this line: /home/tim/projects/netbeans/trunk/nbbuild/build.xml:679: The following error occurred while executing this line: /home/tim/p
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 reasons are all related - the version of Java being used execution failed for task ':app:transformclasseswithdexfordebug'. by the compiler does not match that already loaded by the VM, or being referred to in execution failed for task ':app:processdebugresources'. JAVA_HOME. To solve this in Eclipse, I first 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 change still resulted in the "modern compiler" error being displayed. The final step? Despite the prompt asking for a separate JRE - https://netbeans.org/bugzilla/show_bug.cgi?id=104185 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 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, http://stevehealy.org/techblog/?p=60 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 Raghu July 6, 2012 - 4:39 am Thank you! By Nagarjuna August 1, 2012 - 3:01 pm Thank you so much.. Here only i skipped. I have benefited a lot from this..! Thanks All. By Anshul Agarwal September 5, 2012 - 10:09 am Thanks a lot!!! It worked out. By KN August 7, 2013 - 9:51 am Spent an hour with this problem. And it worked, as desc
2008 23:49 None I had been using IntelliJ IDEA 7.0.3 for a few weeks, and I just got a new laptop. I copied my IDEA setup from my old laptop to this new one, but https://intellij-support.jetbrains.com/hc/en-us/community/posts/206985975-Error-starting-modern-compiler-OutOfMemoryError I am running into some problems.When I run certain ant tasks from within idea, I get this "Error starting modern compiler", and an OutOfMemoryError. This ant task works fine when run directly from http://ant.1045680.n5.nabble.com/Error-starting-modern-compiler-td1346450.html the command line.Full error log is attached.What might be the cause of this?I have set a max memory size for IDEA(in idea.vmoptions) to about 1.5GB, so I don't think that is the issue.The new run with laptop is running Ubuntu 8.04 "Hardy" 64-bit Linux with gnome desktop environment.Edited by: hloeblich on Apr 19, 2008 2:50 AMAttachment(s):OutOfMemoryError.log Facebook Twitter LinkedIn Google+ Date Votes 5 comments 0 Stephen Boesch April 20, 2008 03:41 check your ant javac target: the target may say fork="yes", in which case it gets its own VM that does not inherit the 1.5GB you configured for IDEA Permalink 0 Hans Loeblich option to get April 21, 2008 15:42 My the javac line in my build.xml looks like this: ]]>fork attribute is not being set there. This same exact build.xml worked on my previous computer, I wonder if it's something about my java setup that is messed up. Also, my previous computer was 32bit linux, and this is 64bit. Permalink 0 Stephen Boesch April 21, 2008 15:46 Given the additional details you provided, agreed that my rsponse would not be correct. Sounds like a jvm/platform specific bug. Permalink 0 Hans Loeblich April 21, 2008 16:33 Well, I mentioned my problem to another person I work with, and they showed me that you can bump up the memory for the ant task by right clicking on the task and going to properties. I bumped it from 128 to 384 and now I can run that task that was giving me trouble. It's still a little odd, that I never had to do that on my old computer, but I'm just satisfied that it runs now. Permalink 0 Hans Loeblich April 21, 2008 23:53 I just reported a different bug(IDEA stability issues) to IntelliJ, and they informed me(very promptly I should mention :-D ) that 6
Report Content as Inappropriate ♦ ♦ Error starting modern compiler Hi guys, I encounter this error when trying to build my project (it works fine previously): BUILD FAILED /www/dist/production/common/build.xml:78: Error starting modern compiler. Line 78 is: