Latest Diablo 3 News
DiabloWiki Updates
Support the site! Become a Diablo: IncGamers PAL - Remove ads and more!

Java problem on mac

Discussion in 'Off-Topic' started by masterazn, Jun 3, 2005.

  1. masterazn

    masterazn Banned

    Joined:
    Jun 22, 2003
    Messages:
    5,025
    Likes Received:
    1
    Trophy Points:
    0
    Java problem on mac

    Okay, so I understand Mac OS X Tiger already has the whole java runtime and developer environment installed.



    I've tested an easy "hello world!" style program already, so that is all good. Now, what I need is to import packages that aren't included in the original java software. These are TerminalIO.jar, BreezySwing.jar and TurtleGraphics.jar which I all have on my windows computer under the lib\ext folder. They all work fine when I import and use them in programs. I've tried to copy them over to my mac under the lib folder (there is no ext folder present) but the compiler says it cannot find such a package. So where am I supposed to put these things in order for them to work?


    Thanks!
     
  2. Eronak

    Eronak IncGamers Member

    Joined:
    Apr 28, 2005
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    11
    try this from a terminal

    Code:
    export CLASSPATH=$CLASSPATH:/path/to/lib
    
    That should add the lib directory to your classpath, can't remember whether you have to point to the actual .jar with .jar files. You might have to do that.
     
  3. masterazn

    masterazn Banned

    Joined:
    Jun 22, 2003
    Messages:
    5,025
    Likes Received:
    1
    Trophy Points:
    0
    Wait...where do I do that?
     
  4. Steel_Avatar

    Steel_Avatar IncGamers Member

    Joined:
    Jun 22, 2003
    Messages:
    3,087
    Likes Received:
    0
    Trophy Points:
    255
    At the shell.
     
  5. Freemason

    Freemason Banned

    Joined:
    Feb 16, 2004
    Messages:
    3,156
    Likes Received:
    0
    Trophy Points:
    0
    When having a Java problem on mac I suggest you hand him the coffee instead. Preferably with a slug of his choice of alcohol. :thumbsup:
     
  6. {KOW}Spazed

    {KOW}Spazed Banned

    Joined:
    Jul 20, 2003
    Messages:
    11,578
    Likes Received:
    0
    Trophy Points:
    0
    I wish I had a bit more knowledge when it came to Java and Xcode.

    Anywho the Terminal(command prompt) is in the utilities folder(found in Applications). I suggest dragging it to the Dock for quick access later.


    There are a few differences in how you move around in a Unix terminal and the DOS prompt.

    http://www.cs.princeton.edu/introcs/21hello/ Should cover the commands you need (making folders and moving between them) I am fairly comfortable with the command line, I just don't have much knowledge in Java.
     
  7. {KOW}Spazed

    {KOW}Spazed Banned

    Joined:
    Jul 20, 2003
    Messages:
    11,578
    Likes Received:
    0
    Trophy Points:
    0

Share This Page