I tried to use the terminal to get a program I downloade to work. I thought that if I TYPED java-jar/home/directoryname/java-jar programname & then terminal said bash. what did I do wrong?
I tried to use the terminal to get a program I downloade to work. I thought that if I TYPED java-jar/home/directoryname/java-jar programname & then terminal said bash. what did I do wrong?
I do not know what you did wrong but BASH = Bourne Again SHell. It is a replacement for the Bourne Shell. In other words it is a command line interpreter = the terminal and the commands that run or execute in the terminal. The commands can also be written in text files called scripts.
http://en.wikipedia.org/wiki/Bash_(Unix_shell)
https://help.ubuntu.com/community/Be.../BashScripting
My guess is that you were running a script that ended without doing much.
Regards.
It is a machine. It is more stupid than we are. It will not stop us from doing stupid things.
Ubuntu user #33,200. Linux user #530,530
It might be a bit easier (for some of us dense folks) if you could copy/paste a sample of what you're typing and seeing for results.
Linux User #415691 Ubuntu User #8629
Iowa Team (LoCo): [Wiki] [Launchpad]
IRC channel: #ubuntu-us-ia on irc.freenode.net
newblank25; Hi !
See all the aboves: Me too slow (??).
A path - to the file to be executed - is required. In your example:
"/home/newblank25/directoryname/programname"
Where "programname" is located in the subdirectory "directoryname" in another subdirectory "newblank25" that may be 1 of several directories located under the top directory "home" that is under the topmost of all files "/".
For example:
where "shutdown.man.txt" might be an executable file.Code:sysop@1310mini:~$ ls -la /home/sysop/Downloads/shutdown.man.txt -rw-rw-r-- 1 sysop sysop 3194 Jul 28 2013 /home/sysop/Downloads/shutdown.man.txt sysop@1310mini:~$
Else: as I can be real dense-> copy and paste back to us what you are actually doing.
Ain't it great
free education !
bash will tell you if you did it wrong but it won't tell you if you did it right (unless you tell it to do so)
So if you literally typeThen bash will sayCode:java-jar/home/directoryname/java-jar programnameWhich is like saying "This is bash speaking: I can't find what you are asking for"Code:bash: java-jar/home/directoryname/java-jar: No such file or directory
Did it say
bash: java-jar/home/directoryname/java-jar: No such file or directory
?
Is java-jar a program?
Maybe needs a space.
Two seconds search shows a proper command for java -jar
http://askubuntu.com/questions/10174...m-the-terminal
Last edited by deadflowr; February 5th, 2014 at 12:02 AM.
Splat Double Splat Triple Splat
Earn Your Keep
Don't mind me, I'm only passing through.
Once in a blue moon, I'm actually helpful.
$ java-jar/home/michael/game/fibs/JavaFIBS2001/JavaFIBS-1.0.12_java16.jar
bash: java-jar/home/michael/game/fibs/JavaFIBS2001/JavaFIBS-1.0.12_java16.jar: No such file or directory
this is what i tried?
Last edited by ubudog; February 5th, 2014 at 01:56 AM.
i cut & pasted it & this happened. michael@michael-ubuntu:~$ java -jar /home/michael/game/fibs/JavaFIBS2001/JavaFIBS-1.0.12_java16.jarError: Unable to access jarfile /home/michael/game/fibs/JavaFIBS2001/JavaFIBS-1.0.12_java16.jar
Do you know where your .jar is that you want to run?
Bookmarks