Terminal + Java Installation

Discussion in 'Mac Programming' started by i.shaun, May 28, 2008.

  1. i.shaun macrumors 6502a

    i.shaun

    Joined:
    May 1, 2008
    Location:
    Canada
    #1
    This is actually a Linux (Fedora 8) Question. It uses Terminal, which is similar to OS X's Terminal.app So I figure someone may be able to help me out.

    I am attempting to install Java runtime environment on Linux, and following the Instructions on the Java site.

    I can make the .bin file executable, I can run it in Terminal, View the license agreement, and Install Java in a directory.

    The problem comes when attempting to create a "Symbolic Link" to the Java plugin, from the firefox Directory.

    "ln -s <path to java file.so>"
    "./javaplugin.so"

    After doing this, I get "Segmentation Error"

    If I try again, I get Error creating symbolic link: File Exists (and it does exist there in the firefox plugin directory)


    As of now, firefox will not even start. Does anyone know what could be causing this?
     
  2. yeroen macrumors 6502a

    yeroen

    Joined:
    Mar 8, 2007
    Location:
    Cambridge, MA
    #2
    Is this what you're literally typing (or cut/pasting) in the terminal? If it is, the format for creating a soft link is:

    ln -s file linked to [link]

    Where the 2nd argument may be optional (if you want to give the link a different name than the file linked to)

    Creates a link to the java library with the full path name as the link name, and then tries to execute a shared object library from the shell.

    What they meant you to type was:

    ln -s full path_to_java_file.so javaplugin.so

    Remove the full_path_to_java_file.so from your Firefox plugin directory and retype the line exactly as shown above.
     
  3. i.shaun thread starter macrumors 6502a

    i.shaun

    Joined:
    May 1, 2008
    Location:
    Canada
    #3
    Thank you so much for the info. I thought i was gonna drown 'cause I was way over my head with this Linux stuff haha. Hopefully I can do Linux installations similar to this without a problem in the future, but if the need arises, I'll be back. Most programs I need now are self-installing ones from the Fedora "Add/Remove Software" program, and therefore won't immediately require Terminal.


    and Sorry about the wait, been a while since I got back on it. I had to re-install Linux because firefox was screwed, and I couldn't un install

    After re-installation, I downloaded the java jre-6u6-linux-i586-rpm.bin file (didn't work, one plugin installed but did nothing, the other crashed firefox)

    so I deleted it, and got the non rpm file (not sure what the difference is) -- It works fine now.

    Anyway, thanks again, this Terminal stuff is really confusing to me, and I consider myself an Advanced user. Not that advanced I guess, but I learn.
     

Share This Page