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

  • Home
  • SEARCH
  • 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 6904579
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:04:44+00:00 2026-05-27T08:04:44+00:00

UPDATE: Eclipse is the problem — it’s working from console. But I’d still like

  • 0

UPDATE: Eclipse is the problem — it’s working from console. But I’d still like it to work in Eclipse.

My printenv output contains the line:

PROTCAD3DIR=/home/brent/Desktop/protCAD

But from the program I’m trying to run (in Eclipse), I get output:

Environment variable PROTCAD3DIR undefined.
Please set it properly and re-execute the program.

I searched for this message in the source and found 1 result:

string PCGeneralIO::getEnvironmentVariable(const string& _evname)
{
    const char* convEVName = _evname.c_str();
    char* pEVString = getenv(convEVName);
    if (pEVString == 0)
    {   cout << "Environment variable " << _evname << " undefined." << endl;
        cout << "Please set it properly and re-execute the program." <<     endl;             
        exit(1);
    }               
    string EVstring = charToString(pEVString);    
    return EVstring;
}

I’m pretty sure this is calling the above function:

string evname = "PROTCAD3DIR";
string path = PCGeneralIO::getEnvironmentVariable(evname);

So what could be causing getenv() to find it as undefined?

  • 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-05-27T08:04:45+00:00Added an answer on May 27, 2026 at 8:04 am

    Check the “Environment” Tab in the Eclipse “Run Configuration” for your program. The list should be empty and “Append environment to native environment” should be checked.

    Edit if that does not help, then most probably Eclipse has not been started with the missing variable. Check this by creating a new “External Tool Configuration” using /usr/bin/printenv as the program. Start this external tool and examine the output. If the missing variable is not mentioned, then you have to specify exactly the

    I added the definition and export within a file (.configuration or something of the like).

    part from your comment 🙂

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

Sidebar

Related Questions

Android 2.1 update 1 Eclipse 3.5 I have a problem reading data from my
My problem is somewhat like the question here and here , but none of
I have problem with eclipse & android sdk after latest update , my question
I am trying to fix a problem in Eclipse for like 3 hours and
I have a problem regarding Subclipse and the Eclipse Package Explorer. The svn update-progress
I use AppEngine to host an Eclipse update site. I would like to keep
Im having a problem starting or running any activity unit tests from within eclipse.
Since the configuration manager and update manager for eclipse 3.2 is devoid of nice
I just installed Eclipse Galileo for Java developers and noticed that the update site
How to disable auto Update Maven Dependencies after saving a pom.xml in Eclipse IDE

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.