Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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):
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.
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.
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)?
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).
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...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.