0

For school we need to add a library for Java development. These are the steps that we need to follow:

  1. $ cd ~
  2. nano ~/.profile
  3. Add: export CLASSPATH=.:~/Library/javautils/*:$CLASSPATH
  4. Save with Ctrl+o and Enter
  5. Quit nano with Ctrl+x
  6. Quit and reopen Terminal

But when I try echo $CLASSPATH it doesn't return anything. On Mavericks it didn't seem to be a problem. So it's Yosemite's fault. Anybody have any I idea on how I can fix this?

Biffen
  • 6,249
  • 6
  • 28
  • 36
Yoshi Peters
  • 196
  • 1
  • 2
  • 13

1 Answers1

0

Look at this Where is JAVA_HOME on OSX Sierra (10.12), El Captain (10.11), Yosemite (10.10), Mavericks (10.9), Mountain Lion (10.8) or OSX Lion (10.7)?

Java 6 is not compatible with Yosemite, if you have Java6 you should update to a newer version.

Community
  • 1
  • 1
RobCat
  • 420
  • 3
  • 7