Results 1 to 4 of 4
  1. #1
    efth is offline Member
    Join Date
    Mar 2011
    Posts
    15
    Rep Power
    0

    Default How to set filepath to JDK on Mac?

    Simple question that google just won't answer.

  2. #2
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    7

    Default

    Can you give us insight on what you are trying to do? Java is built into the MacOS so you don't need to set the (CLASS_PATH). Are you having trouble using javac and the like?

  3. #3
    efth is offline Member
    Join Date
    Mar 2011
    Posts
    15
    Rep Power
    0

    Default

    Exactly! I'm having problems with javac and such. I get the error that it can't find the file, I assumed that the class path was the problem

  4. #4
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,524
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by efth View Post
    Exactly! I'm having problems with javac and such. I get the error that it can't find the file, I assumed that the class path was the problem
    Nope, you have to put the directory name (where javac is stored) in your 'path' variable. Probably you have to change your login script or your .bashrc or .cshrc file for that.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. Replies: 2
    Last Post: 04-07-2009, 06:25 AM
  2. Filepath Issue
    By mokonji in forum New To Java
    Replies: 0
    Last Post: 02-28-2009, 04:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •