Results 1 to 6 of 6

Thread: Setting PATH environment variable

  1. #1
    Join Date
    Aug 2011
    Beans
    3

    Setting PATH environment variable

    Greetings Ubuntards,
    pretty new to linux but liking it so far.

    Anyway since I've started I've found it kind of difficult to install software not found in the Software Center.

    I was trying to download a programming IDE called JGrasp. I guess it's only accessible with Wine, but when I try to run it, it tells me this:
    [Unable to locate a java executable. Java 1.5 or igher must be installed to run jGrasp.
    If Java is installed, you may beed to add the bin directory of the installation to your PATH environment variable.]

    I've done this in Windows and searched about how to do it in Linux. A website told me I had to open this file in the terminal
    "vi ~/.bash_profile"
    and enter this
    "export JAVA_HOME=<path>/bin/java"
    "export PATH=$PATH:<path>/bin"

    Well, not only do I not really know where the right path is, when I tried saving what I *thought* was the right information, I couldn't even figure out how to save the file.

    Other information: NetBeans works fine but I don't like it as much as jGrasp. I'm having problems downloading other programs but I'll just start with this.

    Thanks,
    eLseven

  2. #2
    Join Date
    Oct 2007
    Location
    Maryland
    Beans
    413
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Setting PATH environment variable

    Remember, google works magic
    osalt.com Great place to look for opensource alternatives
    If it is solved, remember to mark the thread as solved using thread tools at the top right

  3. #3
    Join Date
    Aug 2011
    Beans
    3

    Re: Setting PATH environment variable

    Quote Originally Posted by skatinjj View Post
    Thanks for the quick reply. I followed that thread and the thread it linked to, and I was able to start jGrasp by using this comand in the terminal while in the right directory:
    java -jar jgrasp.jar

    This was said to be because Ununtu recognizes .jar files as .zip files instead of executable files, according to that thread.

    So then what I'd like to know is how to create a Launcher for this program.

    $ cd /home/<user>/Downloads/jgrasp/ java -jar jgrasp.jar


    Thanks always,
    eL7

  4. #4
    Join Date
    Oct 2007
    Beans
    1,832

    Re: Setting PATH environment variable

    If by "launcher" you mean a button on the panel, then:

    https://help.ubuntu.com/community/HowToAddaLauncher

  5. #5
    Join Date
    Aug 2011
    Beans
    3

    Re: Setting PATH environment variable

    Thanks. I found that page before I got your reply and it helped me out. I'm pretty new to scripting but it was successful.

    Now to spend some time on the forum...

    Thanks,
    7

  6. #6
    Join Date
    Jul 2008
    Beans
    9

    Re: Setting PATH environment variable

    Since it appears that java is on your PATH, you should be able to start jGRASP using the .../bin/jgrasp script. If that doesn't work, send us a bug report to let us know.

    If you start with java -jar, the integrated Java debugger, interactions, and workbench won't work. To get full capability, you'll need:

    java -classpath "jgrasp.jar:<java_home>/lib/tools.jar" Grasp

    where <java_home> is the root directory of your Java installation.

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
  •