• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Jcaptcha doesnt work in java 1.5

 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I have added jcaptcha in a jsp page. I compiled the prject using java 6. But when i create a project using java 5.It gives exception doesnt work. Bad version number in .class file

java.lang.UnsupportedClassVersionError: Bad version number in .class file. How this can be fixed.

I revereted bak to another jar it seems and old version now i am getting black and whit captcha.How can this be made into beautiful ones as in new version.

I use following code

// create the image with the text
BufferedImage bi = service.getImageChallengeForID(httpServletRequest.getSession(true).getId());





ServletOutputStream out = httpServletResponse.getOutputStream();




Thanks
Abhilash
 
Rancher
Posts: 43028
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You're using an older JVM to execute the code than you're using to compile it. Code compiled in Java 6 needs at least a Java 6 JVM - you can't run it on a Java 5 JVM.
 
Abhi Venu
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Thanks for the reply. My doubt is that how to get this same look and feel of new version jcaptcha even if use java 5
 
He does not suffer fools gladly. But this tiny ad does:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic