org.apache.jasper.JasperException: Unable to compile D:\tomcat\jakarta-tomcat-3.3.1\work\DEFAULT\myJSPs\jsp\Hour10\exercise_1.java:107: 'catch' without 'try'. } catch (Exception ex) { ^ D:\tomcat\jakarta-tomcat-3.3.1\work\DEFAULT\myJSPs\jsp\Hour10\exercise_1.java:123: 'try' without 'catch' or 'finally'. } ^ D:\tomcat\jakarta-tomcat-3.3.1\work\DEFAULT\myJSPs\jsp\Hour10\exercise_1.java:123: '}' expected. } ^ 3 errors

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by 807553, 1 year ago
Unable to compile D:\tomcat\jakarta-tomcat-3.3.1\work\DEFAULT\myJSPs\jsp\Hour10\exercise_1.java:107: 'catch' without 'try'. } catch (Exception ex) { ^ D:\tomcat\jakarta-tomcat-3.3.1\work\DEFAULT\myJSPs\jsp\Hour10\exercise_1.java:123: 'try' without
via Oracle Community by 843836, 10 months ago
Unable to compile Note: sun.tools.javac.Main has been deprecated. C:\Tomcat\jakarta-tomcat-3.3.1\work\DEFAULT\ais\pages\mine\compare_1.java:140: 'catch' without 'try'. } catch (Exception ex) { ^ C:\Tomcat\jakarta-tomcat-3.3.1\work\DEFAULT\ais\pages
via Oracle Community by 843835, 1 year ago
Unable to compile Note: sun.tools.javac.Main has been deprecated. C:\tomcat\jakarta-tomcat-3.3.1\work\DEFAULT\myJSPs\jsp\grid_0002dportal_0002dproject\processviewfiles_dir_3.java:151: 'else' without 'if'. else if(type == FtpListResult.FILE) ^ C
via Coderanch by northfield Sid, 1 year ago
Unable to compile Note: sun.tools.javac.Main has been deprecated. C:\tomcat\jakarta-tomcat-3.3.1\work\DEFAULT\myJSPs\jsp\grid_0002dportal_0002dproject\ftplogin_1.java:110: Missing term. out.print( ^ C:\tomcat\jakarta-tomcat-3.3.1\work\DEFAULT
via Coderanch by northfield Sid, 1 year ago
Unable to compile Note: sun.tools.javac.Main has been deprecated. C:\tomcat\jakarta-tomcat-3.3.1\work\DEFAULT\myJSPs\jsp\grid_0002dportal_0002dproject\ftplogin_1.java:110: Missing term. out.print( ^ C
via Oracle Community by 843835, 1 year ago
Unable to compile Note: sun.tools.javac.Main has been deprecated. C:\tomcat\jakarta-tomcat-3.3.1\work\DEFAULT\myJSPs\jsp\grid_0002dportal_0002dproject\ftplogin_1.java:110: Missing term. out.print( ^ C:\tomcat\jakarta-tomcat-3.3.1\work\DEFAULT\myJSPs
org.apache.jasper.JasperException: Unable to compile D:\tomcat\jakarta-tomcat-3.3.1\work\DEFAULT\myJSPs\jsp\Hour10\exercise_1.java:107: 'catch' without 'try'. } catch (Exception ex) { ^ D:\tomcat\jakarta-tomcat-3.3.1\work\DEFAULT\myJSPs\jsp\Hour10\exercise_1.java:123: 'try' without 'catch' or 'finally'. } ^ D:\tomcat\jakarta-tomcat-3.3.1\work\DEFAULT\myJSPs\jsp\Hour10\exercise_1.java:123: '}' expected. } ^ 3 errors
at org.apache.tomcat.facade.JasperLiaison.javac(JspInterceptor.java:898)
at org.apache.tomcat.facade.JasperLiaison.processJspFile(JspInterceptor.java:733)
at org.apache.tomcat.facade.JspInterceptor.requestMap(JspInterceptor.java:506)
at org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:968)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:875)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
at java.lang.Thread.run(Thread.java:484)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.