0

I installed 12.04. Yesterday I tried installing tomcat server and java. There was some errors in that installation and when I tried to open my system after some time I couldn't login. At that time I found its in loop. When I used terminal using ctrl+alt+f1. I can login there, and after login there shows one error which I incurred while installing java.

it shows like in 31 line.

Syntax error near unexpected token '('

and also in line

export JAVA_HOME=/media/F25ACC3E5ACBFCFB/Program Files (x86)/Java
Braiam
  • 69,112
jithin
  • 11

2 Answers2

1
  1. Login via Ctrl+Alt+F1.
  2. Run this command:

    nano "$(grep -l 'export JAVA_HOME=/media/F25ACC3E5ACBFCFB/Program Files (x86)/Java' ~/* 2>/dev/null | head -n1 | tr -d '\n')"
    
  3. Delete this line (should be at or near line 31):

    export JAVA_HOME=/media/F25ACC3E5ACBFCFB/Program Files (x86)/Java
    
  4. Save and exit with Ctrl+X, Y, Enter.

  5. Login should now work.

For how to install Java correctly, see How do I install Java?.

kiri
  • 28,986
-1

Try ctrl+alt+F1 To open terminal and run this command:

rm- rf .gnome .gnome2 .gncof .gconfd .metacity

This will reset some gnome settings and login should work. Let me know if it works.

Thermo
  • 1