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

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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T23:03:49+00:00 2026-05-14T23:03:49+00:00

First off I’m running Ubuntu 9.10 I’ve edited the /etc/environment file to look like

  • 0

First off I’m running Ubuntu 9.10

I’ve edited the /etc/environment file to look like this:

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
JAVA_HOME="/usr/lib/jvm/java-6-sun-1.6.0.20"
CLASSPATH="/home/travis/freetts/lib/freetts.jar:/home/travis/freetts/lib/jsapi.jar:."

I then run “source /etc/environment” to make sure the changes are included.
Then I try compiling my simple test program using this:

javac Test.java

It throws out a few errors, but when I compile like this:

javac -cp /home/travis/freetts/lib/freetts.jar:/home/travis/freetts/lib/jsapi.jar:. Test.java

It works just fine, this leads me to believe that for some reason javac isn’t seeing the CLASSPATH environment variable? I can echo it and everything in the terminal:

echo $CLASSPATH gives me what I put in.

Any help on this would be greatly appreciated.

  • 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-14T23:03:49+00:00Added an answer on May 14, 2026 at 11:03 pm

    Does it work if you put export in /etc/environment?

    export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
    export JAVA_HOME="/usr/lib/jvm/java-6-sun-1.6.0.20"
    export CLASSPATH="/home/travis/freetts/lib/freetts.jar:/home/travis/freetts/lib/jsapi.jar:."
    

    I’m guessing that CLASSPATH isn’t set before you source the script, and so you are only setting a local variable.


    Here’s an illustration of what might be happening:

    superman@metro:~$ Z=foo        # Only sets for this shell
    superman@metro:~$ echo $Z
    foo
    superman@metro:~$ /bin/bash
    superman@metro:~$ echo $Z      # Not set in sub-processes
    
    superman@metro:~$ exit
    exit
    superman@metro:~$ export Z     # When exported, is part of environment
    superman@metro:~$ /bin/bash
    superman@metro:~$ echo $Z      # And now visible to sub-processes
    foo
    superman@metro:~$ exit
    exit
    superman@metro:~$ help export
    export: export [-nf] [name[=value] ...] or export -p
         NAMEs are marked for automatic export to the environment of
        subsequently executed commands.  If the -f option is given,
        the NAMEs refer to functions.  If no NAMEs are given, or if '-p'
        is given, a list of all names that are exported in this shell is
        printed.  An argument of '-n' says to remove the export property
        from subsequent NAMEs.  An argument of '--' disables further option
        processing.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First off, I am running Eclipse 3.7.2 Build: M20120208-0800 on Ubuntu 12.04 (installed using
First off id like to note that this works when there is 1 row
First off if you're unaware, samba or smb == Windows file sharing, \\computer\share etc.
First off, I would like to make clear, that I am SUPER NEW TO
First off I use this code to make the navigation bar always stay fixed;
First off, kudos to the amazing apache cordova team for making a platform-independent native-like
First off tags wont work. I say this because i create 4 buttons all
First off, I am a complete noob. Please respond as if teaching this to
First off I want to say I saw a couple of posts on this
First off, I know this is a base JS issue, not jQuery. I am

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.