LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-04-2004, 04:39 PM   #1
gervin
Member
 
Registered: Dec 2003
Location: outback, australia
Posts: 40

Rep: Reputation: 15
Installing javacheck - minor problem?


hi-

trying to install javacheck on my linux mandrake 9.1.

from the sun website:

***You must have the JRE executable included in your PATH. You must also have your CLASSPATH unset....make sure your PATH is set to pick up the JRE executable..."

1. Run the following (assuming you have JRE 1.1.x in
your path and you do not have your environment CLASSPATH
set to anything):

jre -cp javacheckinstall.zip JavaCheckInstaller ***

the above does not work, i get: 'jre command not found" - so i am using the command 'java' instead, i hope that is okay. :-)

when i run echo $PATH i get:

/sbin:usr/sbin:/bin:/usr/bin:usr/X11R6/bin:usr/local/bin:usr/local/sbin:/usr/java/j2sdk1.4.2_03/bin

the last bit is there so i could get the correct path for the sdk i just installed. and that works fine...

(by the way- unzipping the javacheckinstall.zipis not the way they tell you to open the file).


so my question is how do i get the "jre executable" in my path? without changing the path i set for the jdk?

thank you,

jxl
 
Old 01-04-2004, 06:04 PM   #2
oot
Member
 
Registered: Dec 2002
Distribution: Slackware 12.0
Posts: 240

Rep: Reputation: 30
OK, three steps.

First, type "whereis jre". It should tell you where jre is.

Next, edit ~/.bashrc. If it already contains a line beginning with PATH=<some stuff here>, just add :<the directory you found JRE in> to the end of the list (notice the colon at the beginning of you entry you're adding, this is what seperates directories in the path list). If it doesn't contain such a line, add (at the end) a line saying PATH=$PATH:<directory you found JRE in>

Last, log out and back in so ~/.bashrc will get run again with the new path.
 
Old 01-04-2004, 06:12 PM   #3
oot
Member
 
Registered: Dec 2002
Distribution: Slackware 12.0
Posts: 240

Rep: Reputation: 30
Some background info for you, since this is in the newbie forum: PATH is a variable that tells bash (the program you're probably using for your command line) where to look for programs. It is a colon-seperated list of directories. If a program you're trying to run is in one of those directories, you can type in just the name of the program (eg. ls) rather than the whole path to the program (eg. /usr/bin/ls).

~/.bashrc is a file for things you want to set in bash when you start it. The ~ means your home directory, eg /home/<your user name> (this is where most of your files are stored). The "." at the beginning of ".bashrc" means it's a hidden file. This means it won't show up when you type "ls" (it will show up if you use "ls -a" which means "show all files"). A lot of configuration files are hidden files in your home directory, so if you ever can't find a config file, "ls -a ~" is a good command to get a list of files to look for it in.

If you don't know what program to edit .bashrc with, try pico. Type in "pico ~/.bashrc". When you are done, press ctrl+o to save and ctrl+x to exit. Remember, you have to log out and log back in before changes to .bashrc take effect.

Sorry if some of this stuff is stuff you already knew, I don't know how far along you are in Linux... hopefully you can get something useful from this.
 
Old 01-04-2004, 06:18 PM   #4
gervin
Member
 
Registered: Dec 2003
Location: outback, australia
Posts: 40

Original Poster
Rep: Reputation: 15
did it, thanks.

okay, NOW i get this:

Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using 'localhost:0.0' as the value of the display variable. at....

i have no idea what this means. is it trying to open my x window (gnome)?

thank you for your help!

jxl
 
Old 01-04-2004, 06:22 PM   #5
oot
Member
 
Registered: Dec 2002
Distribution: Slackware 12.0
Posts: 240

Rep: Reputation: 30
Yes, if it's trying to connect to X it means you should be running it under X. Try running it from an xterm under X.
 
Old 01-04-2004, 06:36 PM   #6
gervin
Member
 
Registered: Dec 2003
Location: outback, australia
Posts: 40

Original Poster
Rep: Reputation: 15
thank you for the clear info, very helpful, although i have just begun to grasp this, it was needed.

i am on my laptop...no server. just mandrake 9.1 and gnome as my GUI.

i can't find anyone out there (via google searches) who has had this prob trying to install javacheck.

ugh.

any other suggestions?

jxl
 
Old 01-04-2004, 07:22 PM   #7
oot
Member
 
Registered: Dec 2002
Distribution: Slackware 12.0
Posts: 240

Rep: Reputation: 30
By "X server", it doesn't mean a computer acting as a server. If you are running GNOME, you are running the software for X underneath it (it's how GNOME can make pictures on your screen). This software is called the "X server". Programs connecting to it are the clients. It all happens on your computer -- no network involved.

Start GNOME, and then run the program xterm or the program gnome-terminal or some other terminal program under GNOME. In this terminal, type in your command that was giving you the errors. What happens?

BTW, if you would rather work on this real time instead of watching for updates here on the board, I can chat with you on AIM or Yahoo. Email me at <my user name, oot, goes here>@linuxquestions.net (email address is spam-proofed. replace the section in <> with the word oot) to tell me which one you want to use and your screen name (and post here so I'll know to check my email).

Last edited by oot; 01-04-2004 at 07:24 PM.
 
Old 01-05-2004, 12:11 AM   #8
gervin
Member
 
Registered: Dec 2003
Location: outback, australia
Posts: 40

Original Poster
Rep: Reputation: 15
well, i used the term window that i called up from my gui, that seemed to work. kind of.

now i have a file called JavaCheck.jar. not sure what to do with it! how do i unjar?

also, i have no AIM or yahoo IM on this machine, and can't set it up. the boss would not be pleased, unless there is a way to set it up so it NEVER pops up, or installs itself anywhere on the desktop, etc...

thanks for all the help,


jxl
 
Old 01-05-2004, 12:39 AM   #9
oot
Member
 
Registered: Dec 2002
Distribution: Slackware 12.0
Posts: 240

Rep: Reputation: 30
Glad to hear it's at least sort of working.

I have not done much work with Java, so I'm sorry if I can't be much help with your current question. Here are a few pages that might help:

Using JAR Files: The Basics
Running JAR-Packaged Software
 
  


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
Minor mouse problem don_dimo Linux - Software 2 03-17-2005 02:36 AM
Compiling/installing from Source: 2 minor ?'s tigerflag Slackware 4 10-13-2003 10:19 AM
Minor Problem PlanetNEO Linux - Networking 3 12-08-2002 05:23 PM
Got Debian - Got a minor problem! cheeky_zombie Linux - Software 4 10-26-2001 02:46 PM
Minor Debian problem torp Linux - Newbie 4 07-25-2001 01:16 PM


All times are GMT -5. The time now is 06:16 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration