Avatar

Level 5

Normaly it ends with else not else if.

if (condition 1)

{

     list of expression;

}else if (condition 2)

{

     list of expressions;

}else

     list of expression;

}

At the moment I can't see that anything is wrong.

But it should be possible that the path and the objectname are isn't correct.

It should be possible that the error is by another place in your pdf.

Do you use the Java Debugger? Any messages there?