Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Re: Windows XP Path Woes on eclipse.platform too
Re: Windows XP Path Woes on eclipse.platform too [message #141690] Wed, 23 March 2005 15:54 Go to next message
Michael Aars is currently offline Michael AarsFriend
Messages: 9
Registered: July 2009
Junior Member
I tried that too....sorry, should have specified before. I am not
completely sure where eclipse is pulling the PATH when spawning an outside
process, like cmd.exe. I assume since a .bat to run eclipse like:

set PATH=blah;blah;c:\cygwin\bin;%PATH%
call eclipse.exe
doesn't seem to work

And sending Path in the call to eclipse as vmargs like:
eclipse.exe -vmargs -Dsystem.path=Blah;blah;%PATH%
doesn't work either....

I am guessing that eclipse is either pulling the PATH evironment variable
dynamically from the XP system settings and sending that as the "PATH" for
cmd.exe, or it is just making a plain vanilla call to cmd.exe without
supplying PATH information (so by default, it gets whatever the XP System
PATH variable is currently...It's probably this);however, eclipse does
seem to set other environment things like CLASSPATH, etc; since I don't
have the right CLASSPATH settings in the XP environment variables....well
besides the normal SDK1.5 stuff... ;) Maybe they just send the Classpath
as a VMARG? and that's how they get around it for external stuff like Ant
maybe , etc...?

Anyone with some insights on this and maybe a fix? Should this be a
Workspace setting with Project override/append ability? It seems like a
lot of work to make these changes in each 'external' process call, right?

Oh yes, I also tried... In a CDT project, I changed all the
build/make/discovery/etc calls to c:\cygwin\bin\...make/gcc/g++/etc, but
now eclipse can't find all the libraries...like cygwinBlah.dll. Clearly a
path issue when calling those processes...Right?



Thanks in advance.




>Thomas Mäder wrote:
>
> Use a batch file to start eclipse?

>>javatexan wrote:

>>through a configuration file? The only way I've found to change the path of
>>the console and/or external instances of cmd.exe, etc is to change it at the
>>system level: XP > System Properties > Advanced > Environment Variables.
Can >>eclipse spawn the cmd.exe with a workspace or project configured PATH
>>environment variable?
>>
>> I tried the eclipse -vmargs -Dsystem.path=Blah;blah;%PATH%
>>
>> Maybe I did it wrong, but it did not work.
>>
>> The problem is that making this change to my XP system's Environment
>>Variables, setting Cygwinbin in the path to get CDT to compile using make
>>correctly, breaks the behavior of other applications I use.
>>
>> Thanks in advance.
Hack (Fix): Windows XP Path Woes on eclipse.platform too [message #141768 is a reply to message #141690] Thu, 24 March 2005 14:03 Go to previous message
Eclipse UserFriend
Originally posted by: markus.milleder.example.com

Since all seems to be well when eclipse is started from a cygwin prompt, I
did:

* eclipse.cmd
----
start <cygwin-bin>\bash.exe --login -c <full path>\eclipse.sh
----
* eclipse.sh
----
#!/bin/bash
cd <full cygwin path to eclipse>
/eclipse.exe
----

Even with the call to "start" I have to close the cmd window manually, but
it automates starting eclipse in a way that makes building work (I only
tried managed make).

It's definitely a hack, but I was far too lazy work out something that
looks more like a solution :-)
Previous Topic:Indexer sucks!!!
Next Topic:how to compile only a single file
Goto Forum:
  


Current Time: Thu Apr 25 06:15:43 GMT 2024

Powered by FUDForum. Page generated in 0.03065 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top