Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [platform-ant-dev] Compiler Problem


Hmmm, you know, I don't know an explicit way to tell which VM eclipse chose.  You can tell in a  backwards way but looking at the Java VM preferneces and see which ones Eclipse has discovered.  The one you are currenly running should show up in that list.  I always explicitly tell eclipse which VM to use using hte -vm command line option.  If you are willing, perhaps try your test case and run eclipse with -vm <you jdk location>/bin/java.exe.  This will ensure you know which one you are running.

To tell the differnece between the JDK and JRE you'd likely have to look at the Java install locaiton and see if it has tools.jar etc (ie., all the JDK only stuff).  Even thne, there may be a JRE dir.  The above approach of explicitly indicating the JDK VM should clarify it all.

Jeff



"Maddison, David" <MaddisonD@xxxxxxx>
Sent by: platform-ant-dev-admin@xxxxxxxxxxx

11/16/2001 04:41 AM
Please respond to platform-ant-dev

       
        To:        "'platform-ant-dev@xxxxxxxxxxx'" <platform-ant-dev@xxxxxxxxxxx>
        cc:        
        Subject:        RE: [platform-ant-dev] Compiler Problem


As far as I'm aware I'm running off the 1.3 JDK, at least I am when I run programs from the shell.  How do I make sure that eclipse is using the JDK rather than the JRE?
 
Dave.
-----Original Message-----
From: Jeff McAffer/OTT/OTI [mailto:Jeff_McAffer@xxxxxxx]
Sent: 16 November 2001 01:41
To: platform-ant-dev@xxxxxxxxxxx
Subject: RE: [platform-ant-dev] Compiler Problem


Question for both Mark and Dave, are you running on a real JDK or just a JRE?  The theory is that the tools.jar (which contains the javac code) is not ending up on the class path.  The only real issue I can imagine is that you are running a JRE and JRE's don't come with tools.jar.  Can you confirm?


As you've noted, if you use the workaround then the ant scripts don't work outside Eclipse.    You should on ly have to set the build.compile property if you explicitly want to use the Eclipse (JDT) compiler.


Jeff



"Mark Ayad" <mayad@xxxxxxxxxx>
Sent by: platform-ant-dev-admin@xxxxxxxxxxx

11/15/2001 11:51 AM
Please respond to platform-ant-dev

       
       To:        <platform-ant-dev@xxxxxxxxxxx>
       cc:        
       Subject:        RE: [platform-ant-dev] Compiler Problem



I don't think so, I had the same problem and found the
answer on the newsgroup. I believe it has something to
do with JAVA_HOME.

I'm just a user, or am I since this is Open Source!

-----Original Message-----
From: platform-ant-dev-admin@xxxxxxxxxxx
[mailto:platform-ant-dev-admin@xxxxxxxxxxx]On Behalf Of Maddison, David
Sent: Thursday, November 15, 2001 5:38 PM
To: 'platform-ant-dev@xxxxxxxxxxx'
Subject: RE: [platform-ant-dev] Compiler Problem


Yeeha! Thanks mark that fixed the problem!

BTW is this documented somewhere?  It would be nice if it worked without
amending the build script so that it works in and outside eclipse.

Thanks again,

Dave

>>  -----Original Message-----
>>  From: Mark Ayad [mailto:mayad@xxxxxxxxxx]
>>  Sent: 15 November 2001 16:22
>>  To: platform-ant-dev@xxxxxxxxxxx
>>  Subject: RE: [platform-ant-dev] Compiler Problem
>>  
>>  
>>  David
>>  
>>   <!-- set global properties for this build -->
>>   <property name="build.compiler"
>>  value="org.eclipse.pde.internal.core.JDTCompilerAdapter"/>
>>  
>>   Well it worked for me.
>>  
>>   Regards
>>  
>>   Mark
>>  
>>  
>>  -----Original Message-----
>>  From: platform-ant-dev-admin@xxxxxxxxxxx
>>  [mailto:platform-ant-dev-admin@xxxxxxxxxxx]On Behalf Of
>>  Maddison, David
>>  Sent: Thursday, November 15, 2001 5:05 PM
>>  To: 'platform-ant-dev@xxxxxxxxxxx'
>>  Subject: [platform-ant-dev] Compiler Problem
>>  
>>  
>>  Love the ANT integration, however whenever I try and run my
>>  build.xml file
>>  the ant console reports:
>>  
>>  BuildException:
>>  D:\programfiles\eclipse\workspace\Test\build.xml:13: Cannot
>>  use classic compiler, as it is not available A common
>>  solution is to set the
>>  environment variable JAVA_HOME to your jdk directory..
>>  
>>  However the JAVA_HOME variable is set (WinNT), I've even
>>  got the build file
>>  to echo the value.  The ant script works outside of eclipse.
>>  
>>  Am I doing something wrong or is this a known problem?
>>  
>>  Thanks,
>>  David Maddison                  <<<< D&B >>>>
>>  
>>  
>>  _______________________________________________
>>  platform-ant-dev mailing list
>>  platform-ant-dev@xxxxxxxxxxx
>>  http://dev.eclipse.org/mailman/listinfo/platform-ant-dev
>>  
>>  _______________________________________________

>>  platform-ant-dev mailing list
>>  platform-ant-dev@xxxxxxxxxxx
>>  http://dev.eclipse.org/mailman/listinfo/platform-ant-dev
>>  
_______________________________________________
platform-ant-dev mailing list
platform-ant-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-ant-dev

_______________________________________________
platform-ant-dev mailing list
platform-ant-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-ant-dev




Back to the top