You are not logged in.
Hello,
I just installed the jre with the command: pacman -S jre
after it was finished I did this: java -rar file.jar
"bash: java: command not found"
Did I forget something? :-) Can't find anything in the wiki 
Offline

try
java -jar file.jar
Offline
Try logging out and back in. 
Arch's Java package installs a script in /etc/profile.d that sets up a few environment variables, including adding the directory java is in to your $PATH.
Offline
Such a simple solution, log out and back in... lol  It worked ! great.
 It worked ! great.
lennl: yes jar insteed of rar.. lol :-)
Offline
from now on use
$. /etc/profileor
$source /etc/profileit's actually the same thing... '.' (dot) and 'source' do the same thing... no need for loggin off/on...
Offline

OMG I didn't know about the dot trick..  I know about using source but a dot..  The command line always has nice little tricks up it's sleeve.
  The command line always has nice little tricks up it's sleeve.
Offline