1

I am using pipes between exception. i.e

catch(InterruptedException|SQLException e)

Its showing compile time error and on mouse over it shows InterruptedException.SQLException cannot be resolved to a type while on Java build path, I have added JRE7 as Java System Library and Java Compiler JDK Compliance is set to 1.7.

I am using Eclipse Java EE IDE for Web Developers.

Version: Helios Service Release 2 Build id: 20110218-0911

Can any one explain what would be the exact cause or what else I am missing.

F. Geraerts
  • 1,150
  • 17
  • 23
MAK
  • 575
  • 1
  • 10
  • 23

1 Answers1

0

To add on to what Mureinik suggests, Try setting the compiler compliance level in eclipse. This has been given in this post.

Further, In the list of installed JREs add jre7 and remove any older versions of JRE that may be listed there.See image below:-

Ensure that your project build path has jre7 added to it.

Installed JRE screenshot

Community
  • 1
  • 1
Amal Gupta
  • 452
  • 4
  • 13