Java Question SLC & Java 11

divinglog

Member
Licensed User
Hello

Since switching to Open JDK 11 my library does not seem to compile anymore using SLC. When I switch back to JDK 1.8, everything compiles just fine again. So for now I keep both and when I have to compile my library I temporarily switch to Java 8 and then for compiling my app I switch back to Java 11 in the configure path dialog.

So my questions are:

- I guess this is no problem using two different Java versions for the lib vs. app
- Do you need any details/help addressing the issue with Java 11 and SLC?
- If this is going to be a long term issue, I think a separate option in SLC to use a different Java version than B4A would be a good idea, so I don't have to change it in the B4A path dialog every time

Thank you!
 

DonManfred

Expert
Licensed User
SLC does work fine with Java 11 downloaded from b4x.com
 

divinglog

Member
Licensed User
SLC works, but there are compiler warnings and the compiled library does not work. Switching to JDK 1.8 fixes the issue. Maybe the problem is with the Java code, but I don't know.

Java 11:

Starting step: Compiling Java code.
javac 11.0.1

Completed successfully.
Starting step: Creating jar file.
Completed successfully.
Starting step: Creating XML file.
...
finish: xxx.xml
85 warnings

Completed successfully.
*** Don't forget to refresh the libraries list in the IDE (right click and choose Refresh) ***


Java 8:

Starting step: Compiling Java code.
Completed successfully.
Starting step: Creating jar file.
Completed successfully.
Starting step: Creating XML file.
...
finish: xxx.xml

Completed successfully.
*** Don't forget to refresh the libraries list in the IDE (right click and choose Refresh) ***
 

DonManfred

Expert
Licensed User
Simple Library Compiler
Starting step: Compiling Java code.
exists: True
exists2: True
javac 11.0.1

Completed successfully.
Starting step: Creating jar file.
Completed successfully.
Starting step: Creating XML file.
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\chilkat.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\chilkatJNI.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkAsn.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkAtom.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkAuthAws.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkAuthAzureAD.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkAuthAzureSAS.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkAuthAzureStorage.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkAuthGoogle.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkAuthUtil.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkBaseProgress.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkBinData.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkBounce.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkByteData.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkBz2.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkCache.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkCert.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkCertChain.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkCertStore.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkCharset.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkCompression.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkCrypt2.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkCsr.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkCsv.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkDateTime.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkDh.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkDirTree.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkDkim.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkDsa.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkDtObj.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkEcc.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkEdDSA.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkEmail.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkEmailBundle.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkFileAccess.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkFtp2.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkFtp2Progress.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkGlobal.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkGzip.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkHashtable.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkHtmlToText.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkHtmlToXml.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkHttp.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkHttpProgress.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkHttpRequest.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkHttpResponse.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkImap.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkJavaKeyStore.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkJsonArray.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkJsonObject.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkJwe.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkJws.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkJwt.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkLog.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkMailboxes.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkMailMan.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkMailManProgress.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkMessageSet.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkMht.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkMime.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkNtlm.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkOAuth1.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkOAuth2.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkPdf.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkPem.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkPfx.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkPrivateKey.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkPrng.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkPublicKey.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkRest.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkRsa.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkRss.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkScp.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkSecureString.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkServerSentEvent.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkSFtp.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkSFtpDir.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkSFtpFile.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkSFtpProgress.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkSocket.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkSpider.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkSsh.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkSshKey.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkSshTunnel.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkStream.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkString.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkStringArray.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkStringBuilder.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkStringTable.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkTar.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkTarProgress.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkTask.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkTaskChain.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkTrustedRoots.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkUnixCompress.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkUpload.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkUrl.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkWebSocket.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkXml.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkXmlCertVault.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkXmlDSig.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkXmlDSigGen.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkXmp.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkZip.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkZipCrc.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkZipEntry.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\CkZipProgress.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\SWIGTYPE_p_JNIEnv.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\SWIGTYPE_p_unsigned_char.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\SWIGTYPE_p_void.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\com\chilkatsoft\SYSTEMTIME.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\de\donmanfred\CkAuthGooglewrapper.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\de\donmanfred\CkBinDatawrapper.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\de\donmanfred\CkCertwrapper.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\de\donmanfred\CkDateObjwrapper.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\de\donmanfred\CkDateTimewrapper.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\de\donmanfred\CkEmailBundlewrapper.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\de\donmanfred\CkEmailwrapper.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\de\donmanfred\CkFileAccesswrapper.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\de\donmanfred\CkFtp2Progresswrapper.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\de\donmanfred\CkFtp2wrapper.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\de\donmanfred\CkGlobalwrapper.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\de\donmanfred\CkHttpwrapper.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\de\donmanfred\CkImapwrapper.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\de\donmanfred\CkJavaKeyStorewrapper.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\de\donmanfred\CkJsonObjectwrapper.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\de\donmanfred\CkJwtwrapper.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\de\donmanfred\CkPemwrapper.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\de\donmanfred\CkPfxwrapper.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\de\donmanfred\CkPrivateKeywrapper.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\de\donmanfred\CkPrngwrapper.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\de\donmanfred\CkPublicKeywrapper.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\de\donmanfred\CkRestwrapper.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\de\donmanfred\CkRsawrapper.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\de\donmanfred\CkSftpDirwrapper.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\de\donmanfred\CkSftpFilewrapper.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\de\donmanfred\CkSFtpProgresswrapper.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\de\donmanfred\CkSFtpwrapper.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\de\donmanfred\CkSocketwrapper.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\de\donmanfred\CkSshKeywrapper.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\de\donmanfred\CkSshTunnelwrapper.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\de\donmanfred\CkSshwrapper.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\de\donmanfred\CkStreamwrapper.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\de\donmanfred\CkStringArraywrapper.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\de\donmanfred\CkStringBuilderwrapper.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\de\donmanfred\CkStringwrapper.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\de\donmanfred\CkTaskwrapper.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\de\donmanfred\CkUrlwrapper.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\de\donmanfred\CkWebSocketwrapper.java...
Loading source file E:\B4ALibs.workspace\ChilkatBundle\src\de\donmanfred\CkZipCrcwrapper.java...
Constructing Javadoc information...
[-doclet, BADoclet]
[-docletpath, E:\Basic4android\SimpleLibraryCompiler]
[-doclet, BADoclet]
[-docletpath, E:\Basic4android\SimpleLibraryCompiler]
[-classpath, E:\B4J\B4J.exe\../libraries\jFX.jar;E:\B4J\B4J.exe\../libraries\jCore.jar;C:\Java\jdk-11.0.1\bin\..\jre\lib\jfxrt.jar;]
[-sourcepath, src]
[-b4atarget, E:\B4XAdditionallibs\B4J\ChilkatBundle.xml]
[-b4aignore, io.fouad,com.chilkatsoft,com.futronictech,org,com.android,com.example,com.hoho]
Ignoring: [io.fouad, com.chilkatsoft, com.futronictech, org, com.android, com.example, com.hoho]
starting....
Working with class: de.donmanfred.CkAuthGooglewrapper
Working with class: de.donmanfred.CkBinDatawrapper
Working with class: de.donmanfred.CkCertwrapper
Working with class: de.donmanfred.CkDateObjwrapper
Working with class: de.donmanfred.CkDateTimewrapper
Working with class: de.donmanfred.CkEmailBundlewrapper
Working with class: de.donmanfred.CkEmailwrapper
Working with class: de.donmanfred.CkFileAccesswrapper
Working with class: de.donmanfred.CkFtp2Progresswrapper
Working with class: de.donmanfred.CkFtp2wrapper
Working with class: de.donmanfred.CkGlobalwrapper
Working with class: de.donmanfred.CkHttpwrapper
Working with class: de.donmanfred.CkImapwrapper
Working with class: de.donmanfred.CkJavaKeyStorewrapper
Working with class: de.donmanfred.CkJsonObjectwrapper
Working with class: de.donmanfred.CkJwtwrapper
Working with class: de.donmanfred.CkPemwrapper
Working with class: de.donmanfred.CkPfxwrapper
Working with class: de.donmanfred.CkPrivateKeywrapper
Working with class: de.donmanfred.CkPrngwrapper
Working with class: de.donmanfred.CkPublicKeywrapper
Working with class: de.donmanfred.CkRestwrapper
Working with class: de.donmanfred.CkRsawrapper
Working with class: de.donmanfred.CkSftpDirwrapper
Working with class: de.donmanfred.CkSftpFilewrapper
Working with class: de.donmanfred.CkSFtpProgresswrapper
Working with class: de.donmanfred.CkSFtpwrapper
Working with class: de.donmanfred.CkSocketwrapper
Working with class: de.donmanfred.CkSshKeywrapper
Working with class: de.donmanfred.CkSshTunnelwrapper
Working with class: de.donmanfred.CkSshwrapper
Working with class: de.donmanfred.CkStreamwrapper
Working with class: de.donmanfred.CkStringArraywrapper
Working with class: de.donmanfred.CkStringBuilderwrapper
Working with class: de.donmanfred.CkStringwrapper
Working with class: de.donmanfred.CkTaskwrapper
Working with class: de.donmanfred.CkUrlwrapper
Working with class: de.donmanfred.CkWebSocketwrapper
Working with class: de.donmanfred.CkZipCrcwrapper
finish: E:\B4XAdditionallibs\B4J\ChilkatBundle.xml

Completed successfully.
*** Don't forget to refresh the libraries list in the IDE (right click and choose Refresh) ***

Note that i used SLC V1.11
 
Top