4 Replies Latest reply: Oct 7, 2010 7:12 AM by 799299 RSS

    Eclipse Java compiler

    802634
      HI,

      I want to use the ecj compiler code as a project in my eclipse IDE.
      Am getting error in my JDTcompilerAdapter.java file saying none of
      the attributes can be resolved.

      I want to run the ecj compiler a a project in my IDE .
      so can you tell me how can I resolve this build issues.

      Thanks in advance.
        • 1. Re: Eclipse Java compiler
          802634
          Hi,

          can anyone please reply.

          Edited by: 799631 on Oct 3, 2010 11:04 AM
          • 2. Re: Eclipse Java compiler
            802650
            799631 wrote:
            Hi,

            can anyone please reply.

            Regards
            Pranesh Bhardwaj
            You called?
            • 3. Re: Eclipse Java compiler
              802634
              Cant get you?
              • 4. Re: Eclipse Java compiler
                799299
                Hello,

                I think that you are using an outdated invocation org.eclipse.jdt.core.JDTCompilerAdapter from previous version of eclipse sdk.

                Check this link
                [http://dev.eclipse.org/viewcvs/index.cgi/jdt-core-home/howto/batch%20compile/batchCompile.html?revision=1.4|Run the Batch Compiler ]
                http://dev.eclipse.org/viewcvs/index.cgi/jdt-core-home/howto/batch%20compile/batchCompile.html?revision=1.4

                In my case whith an eclipse helios release I can invoke the compiler as
                String[] vargs = {"-verbose", "-log", "A.log", "-classpath", "rt.jar", "C:\\SRC_ECLIPSE\\ECJ\\src\\A.java"};
                org.eclipse.jdt.internal.compiler.batch.Main.main(vargs);
                including this jars to the project
                org.eclipse.jdt.core_3.6.0.v_A58.jar
                org.eclipse.jdt_3.6.0.v201006080911.jar
                org.eclipse.jdt.apt.core_3.3.400.v20100513-0845.jar
                org.eclipse.jdt.apt.pluggable.core_1.0.300.v20100513-0845.jar
                org.eclipse.jdt.apt.ui_3.3.300.v20100513-0845.jar
                org.eclipse.jdt.compiler.apt_1.0.300.v20100513-0845.jar
                org.eclipse.jdt.compiler.tool_1.0.100.v_A58.jar
                org.eclipse.jdt.core.manipulation_1.3.0.v20100520-0800.jar
                org.eclipse.jdt.debug.ui_3.5.0.v20100602-0830.jar
                org.eclipse.jdt.doc.user_3.6.0.v20100608.jar
                org.eclipse.jdt.junit4.runtime_1.1.100.v20100526-0800.jar
                org.eclipse.jdt.junit.core_3.6.0.v20100526-0800.jar
                org.eclipse.jdt.junit.runtime_3.4.200.v20100526-0800.jar
                org.eclipse.jdt.junit_3.6.0.v20100526-0800.jar
                org.eclipse.jdt.launching_3.5.100.v20100526.jar
                org.eclipse.jdt.ui_3.6.0.v20100602-1600.jar
                Best reggards,