Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Java vm

  1. #1
    Join Date
    May 2008
    Beans
    12

    Angry Java vm

    I am having trouble installing java vm. I cant seem to be able to get it to install into usr/java and run properly. I need it so that I can install

    sh ./thinkorswim_installer.sh

    When I try to install this it tells me that I do not have java loaded.

  2. #2
    Join Date
    Oct 2004
    Location
    Nissa la bella
    Beans
    216
    Distro
    Ubuntu

    Re: Java vm

    To see if java is already installed just run java on a terminal.

    If you have installed different version but you need a specific version for run your apps, then you can choose which version you will use with:
    Code:
    update-java-alternatives

    If this is not installed, choose the one you want to install

    Code:
    sudo apt-cache search java
    check which version is needed for your thinkorswim app (what is it BTW?) and install the correct jre


    You might also like to install the ubuntu-restricted-extras package which contains java and many other stuff.
    https://wiki.ubuntu.com/RestrictedFormats
    Last edited by SyL; May 31st, 2008 at 11:22 PM.

  3. #3
    Join Date
    May 2008
    Beans
    12

    Re: Java vm

    I have tried that and it doesn't work. I continue to get the same message. It does not seem to be seeing the the newest version of java on my computer. I was able to install sun java 5 console in add and remove programs but the shell file still doesn't load.

    I will attached a screen shot of the error im getting.

    As for the shell file it is for one of the best applications for trading stocks and options. It works amazing in windows but the linux version is being a pain in the butt.
    Attached Images Attached Images

  4. #4
    Join Date
    Jun 2006
    Location
    $ pwd _
    Beans
    3,999
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Java vm

    You need to define INSTALL4J_JAVA_HOME environment variable and point it to where your JVM is installed.

    If you have sun-java-5 already installed, it should be /usr/lib/jvm/java-1.5.0-sun. Make sure this folder exists or look in /usr/lib/jvm to confirm the folder name.

    Set the environment variable from command line with this command
    Code:
    export INSTALL4J_JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun
    Now run your script file.

    If it works, add the above line to ~/.bashrc so the shell reads the variable everytime it is launched.

    To set it system-wide, add it to /etc/environment.

  5. #5
    Join Date
    May 2008
    Beans
    12

    Re: Java vm

    Thanks

    I was able to get it installed and running but I didn't follow what you wanted me to do to with the other stuff. Where do I need to add those things so I do have to worry about it later.

  6. #6
    Join Date
    Jun 2006
    Location
    $ pwd _
    Beans
    3,999
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Java vm

    Quote Originally Posted by LaXBubbaMan View Post
    Thanks

    I was able to get it installed and running but I didn't follow what you wanted me to do to with the other stuff. Where do I need to add those things so I do have to worry about it later.
    You need to add the line in .bashrc or /etc/environment like I mentioned in the last post.

  7. #7
    Join Date
    May 2008
    Beans
    12

    Re: Java vm

    Where do I need to add that in?

  8. #8
    Join Date
    Oct 2004
    Location
    Nissa la bella
    Beans
    216
    Distro
    Ubuntu

    Re: Java vm

    Quote Originally Posted by LaXBubbaMan View Post
    Where do I need to add that in?

    As kpkeerthi said, you could either add it in:
    1. your home directory in the file .bashrc, if there is only your user using this application
    2. in /etc/environment if there is different users using this application

  9. #9
    Join Date
    May 2008
    Beans
    12

    Re: Java vm

    Do I just type that in after I export than file or do I need to add it to the export command in some way?

  10. #10
    Join Date
    Oct 2004
    Location
    Nissa la bella
    Beans
    216
    Distro
    Ubuntu

    Re: Java vm

    Hi,

    Code:
    sudo gedit ~/.bashrc
    add at the end of the file:

    Code:
    export INSTALL4J_JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun




    that's it

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

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