scala - Java 8 is installed, but java -version shows 1.4 -


os - windows 7 64 bit

i getting "exception in thread main", when type scala in command prompt

unsupportedclassversionerror

in stackoverflow (already asked question) suggested use same jre , jdk version. uninstalled java (jre , jdk) , installed jre , jdk 8.

but when check java -version says "1.4" , still exception(exception in thread)

java -version

in path, there no java 1.4:

c:\users\appdata\roaming\cabal\bin;c:\users\appdata\local\atom\bin;c:\program files\java\jdk1.8.0_66\bin;c:\program files\java\jre1.8.0_66\bin;c:\program files\java\jdk1.8.0_65\bin;c:\program files (x86)\scala\bin;c:\program files (x86)\java\jre1.8.0_66\bin\client

in control panel -> java -> java tab -> view still says 1.8

enter image description here

how can make scala work?

"open new console" try java -version .

worked me . scala issue resolved :) thanks... @engineer


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -