Well, to let you know about my "success": I checked the file with a hex editor and this one told me that there is a CRC error. So I can live with the fact that I messed up the file somehow. But I can't live with the fact that I can't find out, how this could happen (JBuilder shouldn't cause it and EditPlus neither). In case that someone knows what else it could be, please tell me. The java-file has been in a war-file before (packed by JDK's jar). I'm using Win2k. Have fun, Holger -----Urspr�ngliche Nachricht----- Von: Wiechert, Holger Gesendet: Dienstag, 28. August 2001 14:33 An: Tomcat-User (E-Mail) Betreff: Unable to compile class for ... Hi, I've seen that this error has been in the discussion here a few times, but finally has never been answered. It occures *sometimes*, when a JSP uses a java class. To make things clear: I only use the standard tools: JBuilder4 and once in a while EditPlus (an editor that is definitely not screwing up the files). So the error message is: Error: 500 Location: /myapp/someJSP.jsp Internal Servlet Error: org.apache.jasper.JasperException: Unable to compile class for JSPC:\test_cat2\webapps\myapp\WEB-INF\CLASSES\com\mycomp\Constants.java:1: The source file encoding may be different with this platform encoding. Please use -encoding option to adjust file encoding, or apply native2ascii utility to make source file ASCII encoding. I use Tomcat 3.2.2, but I've seen this "error" has also shown up in Tomcat 3.1. The file the compiler complains about comes out of a war-file. But it seems to be just as the original one that was packed into the war file. Does anybody know, how to prevent this error? Thanks in advance, Holger
