[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.jdt] Re: compiling with eclipse

CL,

Workspaces tend to have references to things that are machine specific so you can't generally share a workspace between machines. You could export projects to a zip and then import existing projects into a different workspace on another machine...


CL 'dnoyeB' Gilbert wrote:
Ahh yes of course.  I never thought of that.  The problem I have been
having is when I move from one computer that I am developing on, to
another, sometimes Eclipse has all the JRE classes in red as if the
library is missing.  But I know its there.  And recompiling does not
always make it right.

What I think is happening is certain of my projects have set 1.5 or 1.4
for their environment.  The mapping of 1.5 or 1.4 to the actual JRE seems
to not be part of the eclipse workspace.  So when I open the workspace on
a diffenet computer, that happens to have no 1.4 JRE set for the 1.4
environment, then the classes that were compiled against 1.4 all the
sudden
 show as red OR maybe just 1 class near the root shows as red and that
 causes all
above it to be red.

Recompiling everything probably should actually fix that.  But I try to
recompile projects 1 at a time.  but the one project is red because a
project it uses is red, etc.  So I should start with the root project.


I just needed to understand what was going on. I almost filed a bug for that a month ago, but I figured there was someting else to it...

Thanks!



On Sat, 04 Aug 2007 20:00:30 -0400, Ed Merks wrote:

CL,

Yes, JDT has its own incremental compiler.  I'm pretty sure when you
deploy, it's just packaging up the .class files you already have.  I
don't think that javac is used at all.  When you change the JVM, you
care compiling against a different library, and that could result in
calls to different methods (when the overloads change) than before.


CL 'dnoyeB' Gilbert wrote:
I was under the impression that java files being developed in eclipse
are compiled using the eclipse internal compiler. Is this correct? When I deploy, are those class files also created by the eclipse
internal compiler? IS the sun compiler ever used for anything in
eclipse at all?


I am wondering because if this is true then I do not understand why
changing the JVM within eclipse requires a project rebuild if the
compiled classes are using the eclipse internal compiler anyway?


What compiler is used to compile the java classes when using eclipse JDT?



THanks,


CL