Slackware Startx Command Not Found

I probably do something wrong with $PATH when install Java JDK. Now when I type
startx, reboot, which,... I get command not found.

When I type: echo $PATH
It shows only: /usr/local/java/bin


Similar Content



Bash: Javac: Command Not Found???

I'm new to linux but I use linux a little at school and by connecting through a shell at home. Anyways, I just installed linux a little while ago and I opened a shell and tried to compile some java code by going to the directory of the code and typing "javac someCode.java" like I do at school but it says the command is not found.

I previously had installed the java runtime environment and I just went to go and try to install the java development kit but it says it was already installed.

Is there some sort of path I need to set for the shell to look for the java compiler? Thanks in advance.

Edit:
I have added aliases to my .cshrc file at school and I just found a bashrc file and csh.cshrc file in the /etc folder. Sorry, I'm really new to all of this. Anyways, I'm geussing I have to edit the bash file? Can anyone point me to a good tutorial of scripting for these files???

Executable Not Found From /usr/local/bin

Hi,

I installed ghostscript via yum package manager. Later I wanted a newer version of ghostscript and compiled it from source. "make install" placed the gs executable file under /usr/local/bin/gs. This works if I run the command with absolute path, but if try to run gs, the shell will output

"-bash: /usr/bin/gs: No such file or directory"

if I echo the path variable it will display

/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin

If i run whereis it will give me the correct path
gs: /usr/local/bin/gs

How do I make it work so that typing "gs" will run the executable file from the /usr/local/bin/gs?

(I am using Centos 6)

Thanks.

GloMoSim Installation In Linux Problem

hi everybody
I'm trying to install glomosim in fedora linux
I was following the guide to glomosim steps and I faced a problem in this step:

<< Now, you have to change some environmental parameters according to the destination folder which you put the Parsec.
You can create a file called “.bashrc” inside the root or home folder (if it does not already exist), and include the
following:
export PCC_DIRECTORY=/home/parsec
PATH=$PATH:$PCC_DIRECTORY/bin
export PATH
*Your PCC_DIRECTORY should be set to the targeted destination folder which you created earlier.
Now, type:
$ pcc >>

every time I tried to type pcc
this message appears : bash: pcc: command not found
anybody help me with this please

Compiling Multiple Java File Using Terminal.

I am new in java. I executed a java program using eclipse. the program contain two java file. when i try to run it using terminal in Ubuntu.
two files are not linking. it shows error. i am attaching all the data.

It shows the following error
Code:
regex2string.java:83: error: cannot find symbol
	                    str = randomstr.nextString(2000);
	                          ^
  symbol:   variable randomstr
  location: class regex2string
1 error
Exception in thread "main" java.lang.NoClassDefFoundError: regex2string
Caused by: java.lang.ClassNotFoundException: regex2string
	at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
Could not find the main class: regex2string. Program will exit.

Java Installation

hello everyone
I'm new with Linux,,I tried to install java by using the instructions in the link below

https://www.youtube.com/watch?v=ohmZu3U9DYk

the only problem appeared in the last step "java -version" is:



neaam@neaam-desktop:~$ java -version
bash: /usr/bin/java: cannot execute binary file

can anyone help me?

Cd CLI Question

Hello all, I am new to Linux (apparently) and am taking a intro course to the OS. My terminal does not support info or man for the cd command and I would like to know: If you won't find the cd command in either /bin or /usr/bin, or in any directory listed in the PATH setting. How is it executed then? (That is, if there is no cd executable, why doesn't this command cause a “command not found” error?)

Thanks for any help!

Error While Running My Run.sh

Hello,

I am trying to run a java application, but i'm getting an error when running my run.sh

This is my run.sh
Code:
java -classpath bin:deps/poi.jar:deps/mysql.jar:deps/mina.jar:deps/slf4j.jar:deps/slf4j-nop.jar:deps/jython.jar:log4j-1.2.15.jar server.Server

Here is the error while running run.sh
Code:
Exception in thread "main" java.lang.UnsupportedClassVersionError: server/Server : Unsupported major.minor version 51.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
        at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: server.Server.  Program will exit.

Thanks

Help With KDE

Hello, I am new to Linux and I am having difficulty setting up KDE. I have a vps with Debian 7 Wheezy on it and I need to get KDE working on it. The Linux installation from the vps company was very basic...I had to update the packages and install kde and kdm using the apt-get install kde and apt-get install kdm commands. When I type xstart to start the x server I get a message with the version number and other information so I am assuming that it is installed, but at the bottom of the message I have no cursor (I am able to type but when I hit the enter key after entering a command nothing happens) and the # is no longer there so I am unable to continue working. The only way i can get the command prompt and # back is to close Putty and reopen it (then I have to log into the vps all over again). From what I have read online, when I type startx, it should load KDE.

I was able to set the display by using the export DISPLAY=:0.0 command. But when I type startkde I get the message 'No protocol specified" and the next line says DISPLAY not set or unable to connect to xserver.

I have been using Putty to log into the vps, but yesterday I decided to use the web based login utility offered by the vps company. When connecting to the vps in this manner I am presented with a traditional looking login screen (I am assuming it is KDM). The user name that was provided to me from the vps company is 'root' ...well, when I try to login using KDM (the plasma setting) I get an error stating that 'root' logins are not allowed. Considering that the KDM is visible when logging in using the web based utility, I have a feeling that the KDE is also working...but I can't log into it because the user name is 'root' . However, when I use Putty I cant seem to get anything to load and start the way it is supposed to. I would appreciate any help in getting the KDE to work in Putty and the login via the web based utility to accept my username that the vps company gave me. Thank you.

Cannot Run Commands In A While Read Line Do Loop

I am looping through a file and then want to run some commands. Below is my code.

cat $PATHNAME | while read line;
do
PATH=$line
ls -t $PATH/javacore* >$NDIR
diff -w $ODIR $NDIR > $CHGS
done
This is the error I get.
./java_snap_monitor.sh: line 13: ls: command not found
./java_snap_monitor.sh: line 14: diff: command not found

Please Help! I'm Trying To Install A Program Through The Terminal

I'm sorry to ask such a simple question but every time I think I figure something out or think I'm going somewhere get stopped dead in my tracks. My friend installed linux on my computer and then moved away immediately so I have no one to help me!

I downloaded the webcam program Cheese. I found through some tutorials that I have to copy the folder to the /opt/ folder and the only way to do that is through the terminal. I found this tutorial and still can't manage to copy the folder. These are the problems I run into:

1. I don't know where to open the terminal. I've tried opening it from the extracted Cheese folder in my downloads folder and from the /opt/ folder itself. It opens up but:
2. when I type the command sudo cp -r cheese /opt/ it will ask for modernnewspeak's password. When I try to type this in nothing happens, even though it JUST let me type in the command. I pressed "enter" thinking maybe it was hiding my password and I get the message "cannot stat 'cheese'. No such file or directory"

please tell me what I'm doing wrong! I tried to follow that tutorial and look through the FAQ here but I cannot figure this out. Thank you in advance!