Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8270291
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T06:32:11+00:00 2026-06-08T06:32:11+00:00

I am trying to compile a code base using ant and the javac 1.7

  • 0

I am trying to compile a code base using ant and the javac 1.7 compiler.
Currently, the code base compiles using the 1.6 compiler but when I switch to the 1.7 compiler, I get the following two oddities.

1) I get a warning: “warning: x is internal proprietary API and may be removed in a future release” where x is part of an internal proprietary API yet the line in the code it references does not reference x (nor does it reference x anywhere in the given file). This happened in a few places and the line it references is in a comment block.

2) The compile terminates with the following:

[javac] The system is out of resources.
[javac] Consult the following stack trace for details.
[javac] java.lang.StackOverflowError
[javac]     at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:418)
[javac]     at com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:460)
[javac]     at com.sun.tools.javac.comp.Attr.visitBinary(Attr.java:2053)
[javac]     at com.sun.tools.javac.tree.JCTree$JCBinary.accept(JCTree.java:1565)

The relevant parameters that are in my ant script for javac are:

      source="1.6" 
        target="1.6" 
        debug="on" 
        debuglevel="lines,vars,source" 
        nowarn="on" 
        fork="yes" 
        executable="C:\Program Files\Java\jdk1.7.0_04\bin\javac"
        memorymaximumsize="1500m"

I tried changing the source and target versions. I also tried ajusting the memory size. It does not seem to help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T06:32:12+00:00Added an answer on June 8, 2026 at 6:32 am

    (Just copying my comment to an answer, in case it turns out to be the answer.)

    This may well be a Java 7 compiler bug. You can however give the compiler more memory by running javac with an argument like -Xss16M. This makes the thread stack size 16MB vs default of 1MB. It may be a viable workaround.

    The message about internal APIs is unrelated and can be ignored.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to compile the following code using clang but got the following
I am trying to compile code that works on os x and linux using
When trying to compile this code: #include <iostream> #include <vector> using namespace std; class
I'm trying to compile some code which contains the following declaration, because I would
I'm currently trying to compile some code examples from http://developer.gnome.org/gtkmm-tutorial/unstable/sec-treeview-examples.html.en but from what I
I'm trying to compile the following code with GHC: module Test where import Maybe
We are trying to upgrade our code base to use Visual Studio 2010 but
Trying to compile a unity3d project in xcode but i'm getting the following compile
I'm trying out some code from a singleton base class article . But when
I am trying to get a very simple program to compile while using functions

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.