tchart Well-Known Member Licensed User Longtime User Mar 23, 2015 #1 So Im trying to build a library using SLC. Im getting a number of errors that seem to relate to the Java version. Even though it clearly using javac 1.7.0_45 why does it say "source 1.5"? One of the errors is below; Simple Library Compiler Starting step: Compiling Java code. javac 1.7.0_45 E:\Dropbox\My Apps\Java\MD\src\com\afollestad\materialdialogs\MaterialDialog.jav a:869: error: strings in switch are not supported in -source 1.5 switch (tag) { ^ (use -source 7 or higher to enable strings in switch)
So Im trying to build a library using SLC. Im getting a number of errors that seem to relate to the Java version. Even though it clearly using javac 1.7.0_45 why does it say "source 1.5"? One of the errors is below; Simple Library Compiler Starting step: Compiling Java code. javac 1.7.0_45 E:\Dropbox\My Apps\Java\MD\src\com\afollestad\materialdialogs\MaterialDialog.jav a:869: error: strings in switch are not supported in -source 1.5 switch (tag) { ^ (use -source 7 or higher to enable strings in switch)
thedesolatesoul Expert Licensed User Longtime User Mar 23, 2015 #2 a. Try the latest version of SLC b. If you want a beta of a similar library as the one you are compiling send me a PM
a. Try the latest version of SLC b. If you want a beta of a similar library as the one you are compiling send me a PM
tchart Well-Known Member Licensed User Longtime User Mar 23, 2015 #3 thedesolatesoul, thanks updating SLC did the trick. Didn't realise a later copy was available.
thedesolatesoul Expert Licensed User Longtime User Mar 24, 2015 #4 It was just done a couple of days ago.
MarcoRome Expert Licensed User Longtime User Mar 24, 2015 #5 tchart said: thedesolatesoul, thanks updating SLC did the trick. Didn't realise a later copy was available. Click to expand... Look this: https://www.b4x.com/android/forum/threads/strings-in-switch-are-not-supported-in-source-1-5.51770/ Versione 1.02 work without problem Last edited: Mar 24, 2015
tchart said: thedesolatesoul, thanks updating SLC did the trick. Didn't realise a later copy was available. Click to expand... Look this: https://www.b4x.com/android/forum/threads/strings-in-switch-are-not-supported-in-source-1-5.51770/ Versione 1.02 work without problem