Weird thing with try-catch

Hey everyone, I have a problem compiling this .java

import java.io.*;

publicclass lector

{

publicstaticvoid main (String args[])

{

}

publicvoid lector()

{

listapersonas listap =new listapersonas();

listaconocidos listac =new listaconocidos();

String linea, per, con;

persona nuevapersona,actual,nuevoconocido;

BufferedReader texto =new BufferedReader(new FileReader("conocidos.txt"));

linea="";

try{

while ((linea=texto.readLine())!=null)

{

per = linea.substring(0,linea.indexOf(','));

con = linea.substring(linea.indexOf(','));

nuevapersona =new persona(per);

nuevoconocido =new persona(con);

if (listap.existe(per)==false)

{

nuevapersona.conocidos.agregar(nuevoconocido);

listap.agregar(nuevapersona);

linea=texto.readLine();

continue;

}

if (listap.existe(per)==true)

{

if (listac.existe(con)==false)

{

listac.agregar(nuevoconocido);

}

else

{

linea=texto.readLine();

continue;

}

}

else

{

linea=texto.readLine();

continue;

}

}//while

}//try

catch (java.io.* e)

{

System.out.print("Imposible leer el archivo");

}//catch

}//lector

}// class

Well what it is supposed to do is read a string from a file and then transform and add them to a linked list.

The problem is that when I compile there is an error message called "<identifier> expected" and points to the catch block. Please help me

[3466 byte] By [r.saavedraa] at [2007-10-3 3:19:34]
# 1
Nothing weird about it at all.That's not the syntax of a catch block. What you've written there will only work in an import statement.What you probably mean to catch is java.io.IOException.
ejpa at 2007-7-14 21:11:33 > top of Java-index,Developer Tools,Java Compiler...