How do i resolve this error...i know this exception should be thrown only when i am using an older version jre to run my class file which should be compiled with a newer jdk but i have jdk 1.6 update 18 and jre 1.6 update 21 .
Do have the JAVA_HOME environment variable set. After doing some searching, and now I remember that I had the same problem, I found that you have to put first the latest java version that you are using when declaring that variable. You must also set your classpath correctly in order to use the latest java version when compiling and running
For Each ctrl As Control In Me.Controls("pnlMainPanel").Controls
If ctrl.GetType Is GetType(System.Windows.Forms.Panel) Then
For Each subCtrl As Control In ctrl.Controls
If subCtrl.GetType Is GetType(System.Windows.Forms.TextBox) Then
If subCtrl.GetType Is ...