"java" command


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers "java" command
# 1  
Old 10-11-2002
"java" command

OK...now I've gone through all this trouble to install java from the bin files it came in. I have installed both j2sdk and j2re. I installed these programs because LimeWire claims to need them to operate. Now, I go to run lime wire and limewire says I can run Limewire by the command "sh runLime.sh" or by the command "java -jar RunLime.jar" in the directory I installed LimeWire into. Only problem seems to be that even though I have installed Java RE, the "java" command doesnt seem to exist.

Plz Help...I need p2p, I dont want to have to keep windoze just so I can use kazaa, and with the exception of lime wire there arent any other p2p clients i like very much...
# 2  
Old 10-11-2002
Ensure the "java" command is in your PATH variable.

echo $PATH at the command line. If the "java" command does not reside in at least one of the directories listed then it is not in your PATH variable.

The solution is to either 1) set the relevant directory in your PATH variable via your .profile file or /etc/PATH if you wish to make it system-wide or 2) enter the full path to the "java" command when you run it.
# 3  
Old 10-11-2002
Can you explain a little better as to how i do that...still teetering on the edge fo newbie...
# 4  
Old 10-11-2002
If you're not sure where the "java" command is execute the following at the command line (open up a terminal window to get to command line if you are running some sort of X windowing software):

# whereis java

If the location of "java" is not found execute:

# find / -name java -exec file {} \;

You should be able to locate an executable called "java" and this command will show you the full path to it.

Change directory to your home directory:

# cd

Edit your .profile file using vi or another text editor to add the path name that was returned by the find command above to the 'PATH=' statement in your .profile.

e.g. PATH=$PATH:[ path statements already present]:/path/to/java

So an example path statement would be:

PATH=$PATH:/usr/sbin:/usr/local/bin:/opt/someapp

Save the profile and login again.

Execute:

#whereis java

And the full path to the java command should be shown. Now attempt to execute the command that failed previously.
# 5  
Old 10-11-2002
I already know the path to the java executable file...I got that part going...now...

if i type in ./usr/java/*blahblah*/bin/java -jar RunLime.jar

will it run the program...or should it I mean...

kthnx
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

2. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

3. UNIX for Dummies Questions & Answers

Unix "look" Command "File too large" Error Message

I am trying to find lines in a text file larger than 3 Gb that start with a given string. My command looks like this: $ look "string" "/home/patrick/filename.txt" However, this gives me the following message: "look: /home/patrick/filename.txt: File too large" So, I have two... (14 Replies)
Discussion started by: shishong
14 Replies

4. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

5. UNIX for Dummies Questions & Answers

Explanation of "total" field in "ls -l" command output

When I do a listing in one particular directory (ls -al) I get: total 43456 drwxrwxrwx 2 root root 4096 drwxrwxrwx 3 root root 4096 -rwxrwxr-x 1 nobody nobody 3701594 -rwxrwxr-x 1 nobody nobody 3108510 -rwxrwxr-x 1 nobody nobody 3070580 -rwxrwxr-x 1 nobody nobody 3099733 -rwxrwxr-x 1... (1 Reply)
Discussion started by: proactiveaditya
1 Replies

6. UNIX for Dummies Questions & Answers

the meaning of "!:*" in "alias foo 'command\!:*' filename"

Hi: How can I remove my own post? Thanks. (2 Replies)
Discussion started by: phil518
2 Replies

7. Shell Programming and Scripting

Command Character size limit in the "sh" and "bourne" shell

Hi!!.. I would like to know what is maximum character size for a command in the "sh" or "bourne" shell? Thanks in advance.. Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies

8. UNIX for Advanced & Expert Users

Command Character size limit in the "sh" and "bourne" shell

Hi!!.. I would like to know what is maximum character size for a command in the "sh" or "bourne" shell? Thanks in advance.. Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies

9. UNIX for Dummies Questions & Answers

Command Character size limit in the "sh" and "bourne" shell

Hi!!.. I would like to know what is maximum character size for a command in the "sh" or "bourne" shell? Thanks in advance.. Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies

10. UNIX for Dummies Questions & Answers

how to install "source" command!/ broken "login.cl"!

Hello, I am new to this forums and this is my first "asking help" message! i have 2 problems: 1- for unknown reasons the "source" command is not avalable in my system (UBUNTU). i can't either see it in my bin directory! 2- again for unknown reasons the "login.cl" file in the home... (0 Replies)
Discussion started by: astrosona
0 Replies
Login or Register to Ask a Question