LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-14-2006, 04:28 PM   #1
techlogic
LQ Newbie
 
Registered: Jan 2006
Posts: 7

Rep: Reputation: 0
Jgrasp install complexity


I am relativly new to Linux and this sight so pardon my ignorance. Here is the problem.

I unzipped the file downloaded from jgrasp.com. The files name was jgrasp .zip. I unzipped it to the file /Desktop/software.
I then found a a thread about the installation and it told me to creat a launcher icon as the directions in the unzipped file also did. However:

I attempted to make a launcher icon on the desktop. I was not sure what file to attach it to but I did all of them slowly and got no results.

jGRASP Install Instructions
Unzip the distribution file in the directory where you wish to install jGRASP. This will create a jgrasp directory containing all the files. You may want to add the "bin" subdirectory of this directory to your execution path or create a soft link to .../jgrasp/bin/jgrasp from a directory on the executable path.

I do not know how to add a directory to my execution path. Dose that concern the .bash_profile file? And a softlink would be a launcher icon right? My launcher never launched...

Any help would be appreciated.


Ps. This question was raised before however the conclusion did not seem to it my problem. Also my colledge computer science teacher has no idea . although he dose windows...
 
Old 01-15-2006, 09:30 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680
Yes, changing the PATH variable means editing either the .profile or .bash_profile in your home directory, depending on which one is present. ( Info bash has information on the startup files. .bash_profile or .profile are run when you first log in., the main difference is that a different shell may also use the .profile file. )

First, in the editor, look for a line that starts with "PATH=". If there is already a line like that, add a colon after the last path, and add your new path. Right now you could type into the shell "echo $PATH" to see what the entries look like.

If this program is to be run as a different user, you may want to locate it somewhere else. It sounds like it contains binaries, libraries and data all contained in its own directory. If that is the case then the /opt directory may be a better choice. You will need to su to root before you can save the directory there. Then add ":/opt/jgrasp/bin/" to your PATH variable. If you don't have such a "PATH=..." line in .profile (or .bash_profile) the line should look like
PATH=$PATH:/opt/jgrasp/bin

As a side note, if there is a "jgrasp/lib" directory and it contains libraries, it is possible that you may need to add the library path "/opt/jgrasp/lib" to the "etc/ld.so.conf" file. However, hold off on that unless necessary. /opt/MozillaFirefox/lib isn't listed in the file, so the jgrasp program may load in the libraries using a relative address (../lib). If you add a library path to this file, (you need to be root of course) you need to run (as root) the "ldconfig" program.

Last edited by jschiwal; 01-15-2006 at 09:33 AM.
 
Old 01-16-2006, 12:33 PM   #3
techlogic
LQ Newbie
 
Registered: Jan 2006
Posts: 7

Original Poster
Rep: Reputation: 0
follow up

Ok I added the path into my .bas_profile to the line
PATH = $PATH/../../.. : my/path/jgrasp/bin:

It also tells me to

"create a soft link to .../jgrasp/bin/jgrasp from a directory on the executable path."

I just assumed it was telling me to creat a launcher on my Desktop. So I did.

Now here is what the isntructions say as to running it....

Running on Linux, Solaris, NetBSD/i386, and Other UNIX Systems

/*Similar single-instance mode executables exist for x86 Linux, SPARC Solaris, and NetBSD/i386. These can all be accessed through the bin/jgrasp shell script, which will also pass the location of the jGRASP installation to the correct executable so you don't have to. You can run the executables directly (they are in subdirectories of "bin" with obvious names) if you specify the location of the jGRASP installation through a JGRASP_HOME environment variable or "-j path" at the command line. A window titled "jGRASP exec", which initially runs minimized, allows the user to kill jGRASP if it locks up. It will first try a "soft kill", and if jGRASP does not exit within a few seconds, a "hard kill" will be issued.

On other UNIX systems, bin/jgrasp should run jGRASP directly, without a single-instance shell. See Installing on Other Systems for information on compiling the native parts of jGRASP.

For the "java" startup script, if the location of java is not specified through a "-a" command line parameter or JGRASP_JAVA environment variable, then "java" must be on the path.*/

I opened te directory /opt/jgrasp/bin/linux
I assumed this was the "obvius name" they where refearin too.
I then typed ./jgrasp (the name of the file inside "linux") and this error messge came up.

GRASP exec error: The directory where jGRASP is installed must be specified
by -j jgrasp_home or by a JGRASP_HOME environment variable.

I understand that the directions talk about this but I don't understand what they mean.. I am still getting used to the linux enviorment... Any help is appreciated.

Ps: Thank you very mutch, jschiwal, for a good explination of the install instructions. It is unfortanite that I still can't get it.

Last edited by techlogic; 01-16-2006 at 01:55 PM.
 
Old 01-18-2006, 05:24 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680
Quote:
GRASP exec error: The directory where jGRASP is installed must be specified
by -j jgrasp_home or by a JGRASP_HOME environment variable.
You could either start it like:
Code:
jgrasp -j /opt/jgrasp
or add two lines to your .bash_profile or .bashrc
Code:
JGRASP_HOME=/opt/jgrasp
export JGRASP_HOME
I don't know what jgrasp does, other than the "j" is for java, so I assumed that JGRASP_HOME is where you installed the software, and is not a working directory. A working directory may be something like ${HOME}/JGrasp/ or ${HOME}/.jgrasp/. Also a working directory would be in the users home directory. The installation "base" directory for jgrasp wouldn't be writable for a normal user, and is "static".

The link may not be necessary for starting from a shell, because you already added "/opt/jgrasp" to your path variable. You will need to log out and in again before the .bash_profile will be run. To test, you could start a new shell with "bash -l". This will start a login shell and re-run $HOME/.bash_profile.

Check in the /opt/jgrasp directory. There may be an icon that you can copy to the desktop. You could right-click on it then and fill any needed information in properties.
 
Old 01-18-2006, 10:58 PM   #5
techlogic
LQ Newbie
 
Registered: Jan 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Sorry FYI: Jgrasp is a ide that needs jdk to be installed in order to run. jdk is istalled. I am using it for my Computer Science II class for writting java files.

Also: There was no jgrasp/lib

OK. I added those lines into my .bash_profile. (Which was located at two places on my computer /root/.bash* and /home/usr) I eddited both to look like this.

/home/usr/.bash_profile
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:/usr/sbin:$HOME/bin:$PATH/opt/jgrasp/bin
JAVA_HOME=/opt
JGRASP_HOME=/opt/jgrasp
export JGRASP_HOME
export PATH JAVA_HOME
export PATH
unset USERNAME

/root/.bash_profile
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs
PATH=$PATH:$HOME/bin
PATH=$PATH:/usr/sbin:$HOME/bin:$PATH/opt/jgrasp/bin

JAVA_HOME=/opt
JGRASP_HOME=/opt/jgrasp

export PATH=$PATH:/usr/java/jdk1.5.0_01/bin
export PATH=$PATH:/usr/java/jdk1.5.0_01/jre/bin
export JGRASP_HOME
export PATH JAVA_HOME
export PATH
unset USERNAME

I still can't simply type jgrasp -j /opt/jgrasp it needs the ./jgrasp to work however I now get this error message.

Could not find directory containing this class.
Class URL file is: "file:jgrasp.jar!/Grasp.class".

This is a list of the files I think might help answer the question as to what I need to do.

jgrasp/bin:
jgrasp jgrasp.exe jGRASPjava.exe linux netbsd osx solaris winconfig.exe

jgrasp/bin/linux:
jgrasp

jgrasp/jbin:
installfont.exe linux_run sys_run win_run.exe
IsApplet.class netbsd_run windows_native.dll win_start.exe
JGRASP__829J_6h.class osx_run win_run2.exe
jgrprn.exe

jgrasp/src:
linux_exec.c linux_run.c Makelinux.sh Make.sh Makesolaris.sh


OK So that is a list of some ?important? files? Now I have tried sevral other things sense your last post also.
Such as:
./Makelinux.sh
~This created a large load of error message about variables and characters and the such
./Make.sh
 
Old 01-18-2006, 11:08 PM   #6
techlogic
LQ Newbie
 
Registered: Jan 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Next Step?

Sorry FYI: Jgrasp is a ide that needs jdk to be installed in order to run. jdk is istalled. I am using it for my Computer Science II class for writting java files.

Also: There was no jgrasp/lib

OK. I added those lines into my .bash_profile. (Which was located at two places on my computer /root/.bash* and /home/usr) I eddited both to look like this.

/home/usr/.bash_profile
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:/usr/sbin:$HOME/bin:$PATH/opt/jgrasp/bin
JAVA_HOME=/opt
JGRASP_HOME=/opt/jgrasp
export JGRASP_HOME
export PATH JAVA_HOME
export PATH
unset USERNAME

/root/.bash_profile
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs
PATH=$PATH:$HOME/bin
PATH=$PATH:/usr/sbin:$HOME/bin:$PATH/opt/jgrasp/bin

JAVA_HOME=/opt
JGRASP_HOME=/opt/jgrasp

export PATH=$PATH:/usr/java/jdk1.5.0_01/bin
export PATH=$PATH:/usr/java/jdk1.5.0_01/jre/bin
export JGRASP_HOME
export PATH JAVA_HOME
export PATH
unset USERNAME

I still can't simply type jgrasp -j /opt/jgrasp it needs the ./jgrasp to work however I now get this error message.

Could not find directory containing this class.
Class URL file is: "file:jgrasp.jar!/Grasp.class".

This is a list of the files I think might help answer the question as to what I need to do.

jgrasp/bin:
jgrasp jgrasp.exe jGRASPjava.exe linux netbsd osx solaris winconfig.exe

jgrasp/bin/linux:
jgrasp

jgrasp/jbin:
installfont.exe linux_run sys_run win_run.exe
IsApplet.class netbsd_run windows_native.dll win_start.exe
JGRASP__829J_6h.class osx_run win_run2.exe
jgrprn.exe

jgrasp/src:
linux_exec.c linux_run.c Makelinux.sh Make.sh Makesolaris.sh


OK So that is a list of some ?important? files? Now I have tried sevral other things sense your last post also.
Such as:
./Makelinux.sh
~This created a large load of error message about variables and characters and the such
./Make.sh
~The Same
./jgrasp -j /opt/jgrasp (while under both /jgrasp/bin and /jrgasp/bin/linux
They gave the error message I mentioned earlier.

Well I hope this information might save my head because it hurts. So If any one could save me from missing the first assignment date that would kick ass.

ps: Thank you once again jschiwal maby this will give better insight as to the problem...
 
Old 01-23-2006, 07:09 AM   #7
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680
The /opt/jgrasp/bin/jgrasp program is a shell wrapper that sets the parameters to start
the /opt/jgrasp/bin/linux/jgrasp program. One thing to double check is now that you have the ~/.bash_profile edited, check if these variables actually exist in your environment.
Also, enter "which jgrasp" and make sure the the answer is "/opt/jgrasp/bin/jgrasp".

Forget about the files with the .exe extensions. They are for running the program in windows.

From you message:
Quote:
export PATH=$PATH:/usr/java/jdk1.5.0_01
I thing that the JAVA_HOME variable should be:
"/usr/java/jdk1.5.0_01"
If not that then at least "/usr/java".

Also, make sure that the Java JDK is installed properly. In other words, compile and run a program without the jgrasp ide.

Last edited by jschiwal; 01-23-2006 at 04:53 PM.
 
Old 01-29-2006, 02:57 PM   #8
techlogic
LQ Newbie
 
Registered: Jan 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Ok so now I can simply type jgrasp and it runs however this error occures

Could not find directory containing this class.
Class URL file is: "file:jgrasp.jar!/Grasp.class".

The file jgrasp.jar is a compressed file located in folder
/opt/jgrasp
Inside this compression is the Grasp.class file
Now when I extract all of jgrasp.jar into
/opt/jgrasp/extensions/class

edit /* I presumed I was to extract it into extensions however the /class folder is the one I created, their is no directions on what needed to be done with this file */

The same error occures.

Now I was reading the file /opt/jgrasp/bin/jgrasp and it looks like this at the very top..

jgraspv_jgrasp_home=$JGRASP_HOME
jgraspv_jgrasp_java=$JGRASP_JAVA
jgraspv_jgrasp_classpath=$JGRASP_CLASSPATH

Now I fugred that the JGRASP_HOME variable is read from the .bash_profile. ***am I right?***
So I added this line to the .bash_profile

JGRASP_CLASSPATH=/opt/jgrasp/extensions/class
export JGRASP_CLASSPATH

So I am having a hard time figuring out why the error still occures. I assumed that JGRASP_CLASSPATH would be lookinf for the location of the classes. JDK is installed propperly.

Also I attempted to run jgrasp like so
jgrasp -cp /opt/jgrasp/extensions/class

which should overide my othervariable in the .bash_profile and got the same results.

Am i still doing somthing wrong? Thanks again jschiwal hopefully this new set of information will help along the way. Also I would like to mention that through this thread I have really gained a better understanding of Linux so thanks once again for that.

Last edited by techlogic; 01-29-2006 at 02:59 PM.
 
Old 02-07-2006, 02:33 PM   #9
techlogic
LQ Newbie
 
Registered: Jan 2006
Posts: 7

Original Poster
Rep: Reputation: 0
still jgrasp problems

/* bump */
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Jgrasp installation on RedHat9 joshuak Programming 3 01-14-2006 04:56 PM
LXer: Oracle Raptor takes bite out of complexity LXer Syndicated Linux News 0 01-05-2006 11:03 PM
Linux PAM minimum password and complexity reemo73 Linux - Software 3 06-01-2005 03:22 PM
jGRASP IDE in Mandrake 10.1 goofy871 Programming 0 02-26-2005 05:26 PM
jGrasp IDE jwjody Programming 3 04-11-2004 01:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration