• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

trying to run an older javascript on win 8.1

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any pointers would be greatly appreciated!

Im trying to run an older javascript on win 8.1. I have a bit of coding experience in processing.


Can someone tell me what this error means and how I can fix it? See attachment screen shot.

Thanks!
java-error.png
[Thumbnail for java-error.png]
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch.

Please be sure to take the time to compose descriptive subjects for your posts. You will attract people who will can give you better and faster answers when your posts have good, descriptive subjects. For more information, please click this link ⇒ UseAMeaningfulSubjectLine.

Using a title such as "please help" isn't going to attract the attention of those who can best help you.

I have updated the subject for you -- please use it as a guide for future topics.
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
P.S. This is a Java message, not JavaScript. They are completely different languages despite the unfortunate name collision.
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is most likely because you have Java classes that were compiled using Java 1.8, but are trying to run them in a Java 1.7 virtual machine.

You'll either need to recompile the classes with Java 1.7, or use the Java 1.8 virtual machine to run them.

Or, it may be something else. I'm not a Windows user, so someone with Windows experience may have other ideas.
 
Bruce Rolff
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for that bear. I'm an infant in this but willing to learn. Did a little processing coding for fun a couple years back, and some html experience, thats about it.

Anybody with windows experience who can help?
 
Bruce Rolff
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bear Bibeault wrote:This is most likely because you have Java classes that were compiled using Java 1.8, but are trying to run them in a Java 1.7 virtual machine.

You'll either need to recompile the classes with Java 1.7, or use the Java 1.8 virtual machine to run them.

Or, it may be something else. I'm not a Windows user, so someone with Windows experience may have other ideas.



Bear don't you mean run it in 1.7 or recompile to 1.8?
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yeah, sorry -- flipped things by typing too quickly.

Essentially, you want to be sure that the classes are compiled using the same version or earlier.
 
Bruce Rolff
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK So thanks to bear I found a workaround for now. I downgraded my java and now it works!

Thanks!
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic