Java errors in Processing "Unsupported major.minor version 52.0" Windows 10

edited February 2016 in Software
I'm on a Windows 10 system, and am following the OpenBCI getting started guide. The OpenBCI libraries and GUI directory have been placed where they should be. 

I'm snagged on a pure software issue with Processing 2.2.1 (Processing 3 doesn't work with the OpenBCI code, AFAIK).  Trying to run any of the .pde files from the OpenBCI repo throws an error after the GUI window opens, after I select "Synthetic" as the data source and then click "Start System".

The error is: Unsupported major.minor version 52.0 

Googling that suggests that it means that the relevant java code was run with a version that is too old compared to the version that compiled it.  However, if I understand processing correctly, then all of its Java is self-contained, so I don't see how this could be.  The java on my system is the current version, in any case.  

Any help is, of course, greatly appreciated.  

Comments

  • I am seeing this on Ubuntu 14.04 as well.

    I agree with the OP that Processing 3 doesn't work with OpenBCI code. I am also getting the unsupported manjor.minor version error as below:

    java.lang.RuntimeException: java.lang.UnsupportedClassVersionError: org/gwoptics/graphics/graph2D/backgrounds/IGraph2DBackground : Unsupported major.minor version 52.0

    Is it an issue with gwoptics?
    Could someone please help us out with this?
  • Winslow, I was able to solve the issue in Linux.

    The issue is with the gwoptics library. The fix is to just download the latest version from the website, and use that directory as the library.

    gwoptics website: http://www.gwoptics.org/processing/gwoptics_p5lib/
    gwoptics zip file: http://www.gwoptics.org/processing/gwoptics_p5lib/download/gwoptics.zip

    Hope this helps.
  • The new gwoptics library solved it for me as well.  Thanks, huntsman!

    The only thing I don't understand is how everyone isn't having this same problem.
  • edited February 2016
    I was seeing the same error code, trying to just start the GUI for the first time on Ubuntu 14.04. They really don't give much help for linux users.

    Had openJDK 7 installed, so I removed that and installed Java 8 using this link:
    http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html

    After doing that, I was able to get the GUI to open. The first time I ran it, it froze up my system. Had to do a hard restart. Second time, it worked ... so far. Was able to go into synthetic mode and "stream" synthetic data. Fingers crossed, it will keep working. It sure does output a lot of lines to the terminal though. It'd be nice if that was in the GUI instead.
  • Update: I've run the GUI several times now from Ubuntu 14.04 bash shell (using 'sudo bash OpenBCI_GUI') and it has never yet frozen my system again. Not sure why it did the first time, but oh well. Gotta break a few eggs to make an omelet.

    Then again, I'm only checking the signals with the GUI every now and then anyway. The OpenBCI_Python object file really is the way to go! Working great for me with (Anaconda) Python 2.7.
Sign In or Register to comment.