使用dx打包的完整命令,将D:\ssh1.0.jar打包成MyClass.dex,MyClass.dex将会输出在当前CMD命令窗口的目录下。

dx --dex --no-strict --min-sdk-version=26 --output=MyClass.dex D:\ssh1.0.jar

运行结果:不要使用dx命令,打出来的dex可以运行,但是会经常崩溃。报错信息太少了只有一句:Killed

但是d8打包也不太容易,也会报如下 的错误。

只需要添加--min-api 26就可以了完整命令如下

d8 --min-api 26 --output .\ssh.zip .\ssh1.0.jar

如果不加--min-api会报错。

全部报错信息:

D:\workSpace\Ssh202301121307\lib\build>d8 --output .\ ssh1.0.jar D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/common/session/Session.class:

Type `java.util.Objects` was not found, it is required for default or static interface methods desugaring of `java.lang.Object org.apache.sshd.common.session.Session.resolveAttribute(org.apache.sshd.common.session.Session, org.apache.sshd.common.AttributeRepository$AttributeKey)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:com/skyworth/lib/client/SshClientCliSupport$4.class:

Type `java.lang.String` was not found, it is required for default or static interface methods desugaring of `java.lang.String com.skyworth.lib.client.SshClientCliSupport$4.format(java.util.logging.LogRecord)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/common/util/closeable/FuturesCloseable.class:

Type `java.util.Collections` was not found, it is required for default or static interface methods desugaring of `void org.apache.sshd.common.util.closeable.FuturesCloseable.(java.lang.Object, java.lang.Object, java.lang.Iterable)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/common/util/closeable/FuturesCloseable.class:

Type `java.lang.Boolean` was not found, it is required for default or static interface methods desugaring of `void org.apache.sshd.common.util.closeable.FuturesCloseable.lambda$doClose$0(java.util.concurrent.atomic.AtomicInteger, boolean, boolean, org.apache.sshd.common.future.SshFuture)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/common/util/closeable/FuturesCloseable.class:

Type `java.lang.Integer` was not found, it is required for default or static interface methods desugaring of `void org.apache.sshd.common.util.closeable.FuturesCloseable.lambda$doClose$0(java.util.concurrent.atomic.AtomicInteger, boolean, boolean, org.apache.sshd.common.future.SshFuture)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/common/config/keys/KeyUtils.class:

Type `java.nio.file.Files` was not found, it is required for default or static interface methods desugaring of `java.util.AbstractMap$SimpleImmutableEntry org.apache.sshd.common.config.keys.KeyUtils.validateStrictKeyFilePermissions(java.nio.file.Path, java.nio.file.LinkOption[])`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/common/kex/DHGroupData.class:

Type `java.util.stream.Collectors` was not found, it is required for default or static interface methods desugaring of `byte[] org.apache.sshd.common.kex.DHGroupData.readOakleyGroupPrimeValue(java.util.stream.Stream)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/common/config/keys/KeyUtils.class:

Type `java.lang.System` was not found, it is required for default or static interface methods desugaring of `org.apache.sshd.common.digest.DigestFactory org.apache.sshd.common.config.keys.KeyUtils.getDefaultFingerPrintFactory()`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/server/keyprovider/SimpleGeneratorHostKeyProvider$ValidatingObjectInputStream.class:

Type `java.io.ObjectInputStream` was not found, it is required for default or static interface methods desugaring of `java.lang.Class org.apache.sshd.server.keyprovider.SimpleGeneratorHostKeyProvider$ValidatingObjectInputStream.resolveClass(java.io.ObjectStreamClass)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/sftp/server/SftpFileSystemAccessor.class:

Type `java.nio.channels.FileChannel` was not found, it is required for default or static interface methods desugaring of `java.nio.channels.SeekableByteChannel org.apache.sshd.sftp.server.SftpFileSystemAccessor.openFile(org.apache.sshd.sftp.server.SftpSubsystemProxy, org.apache.sshd.sftp.server.FileHandle, java.nio.file.Path, java.lang.String, java.util.Set, java.nio.file.attribute.FileAttribute[])`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/common/kex/extension/KexExtensionHandler$KexPhase.class:

Type `java.lang.Enum` was not found, it is required for default or static interface methods desugaring of `org.apache.sshd.common.kex.extension.KexExtensionHandler$KexPhase org.apache.sshd.common.kex.extension.KexExtensionHandler$KexPhase.valueOf(java.lang.String)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/common/kex/extension/KexExtensionHandler$KexPhase.class:

Type `java.util.EnumSet` was not found, it is required for default or static interface methods desugaring of `void org.apache.sshd.common.kex.extension.KexExtensionHandler$KexPhase.()`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/server/channel/ChannelSession.class:

Type `java.lang.Long` was not found, it is required for default or static interface methods desugaring of `org.apache.sshd.common.channel.RequestHandler$Result org.apache.sshd.server.channel.ChannelSession.handleBreak(org.apache.sshd.common.util.buffer.Buffer, boolean)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:com/skyworth/lib/CliLogger.class:

Type `java.lang.Thread` was not found, it is required for default or static interface methods desugaring of `void com.skyworth.lib.CliLogger.log(java.io.PrintStream, java.util.logging.Level, java.lang.Object, java.lang.Throwable)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/scp/common/ScpHelper.class:

Type `java.lang.Character` was not found, it is required for default or static interface methods desugaring of `void org.apache.sshd.scp.common.ScpHelper.receive(org.apache.sshd.scp.common.ScpReceiveLineHandler)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/common/config/keys/KeyUtils.class:

Type `java.util.Arrays` was not found, it is required for default or static interface methods desugaring of `java.security.PublicKey org.apache.sshd.common.config.keys.KeyUtils.findMatchingKey(java.security.PublicKey, java.security.PublicKey[])`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/scp/common/ScpHelper.class:

Type `java.lang.Math` was not found, it is required for default or static interface methods desugaring of `void org.apache.sshd.scp.common.ScpHelper.receiveStream(java.lang.String, org.apache.sshd.scp.common.ScpTargetStreamResolver, org.apache.sshd.scp.common.helpers.ScpTimestampCommandDetails, boolean, int)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/common/config/keys/PublicKeyEntryDataResolver.class:

Type `java.util.Base64` was not found, it is required for default or static interface methods desugaring of `byte[] org.apache.sshd.common.config.keys.PublicKeyEntryDataResolver.decodeEntryKeyData(java.lang.String)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/common/config/keys/KeyUtils.class:

Type `java.math.BigInteger` was not found, it is required for default or static interface methods desugaring of `void org.apache.sshd.common.config.keys.KeyUtils.()`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/common/util/io/der/ASN1Object.class:

Type `java.lang.Object` was not found, it is required for default or static interface methods desugaring of `org.apache.sshd.common.util.io.der.ASN1Object org.apache.sshd.common.util.io.der.ASN1Object.clone()`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/common/config/keys/KeyRandomArt.class:

Type `java.lang.reflect.Array` was not found, it is required for default or static interface methods desugaring of `void org.apache.sshd.common.config.keys.KeyRandomArt.(java.lang.String, int, byte[])`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/sftp/client/SftpClient$Attributes.class:

Type `java.nio.file.attribute.FileTime` was not found, it is required for default or static interface methods desugaring of `org.apache.sshd.sftp.client.SftpClient$Attributes org.apache.sshd.sftp.client.SftpClient$Attributes.accessTime(long, java.util.concurrent.TimeUnit)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:com/skyworth/lib/client/ScpCommandMain.class:

Type `java.nio.charset.Charset` was not found, it is required for default or static interface methods desugaring of `void com.skyworth.lib.client.ScpCommandMain.main(java.lang.String[])`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/scp/server/ScpShell$PathEntry.class:

Type `java.time.Instant` was not found, it is required for default or static interface methods desugaring of `java.lang.String org.apache.sshd.scp.server.ScpShell$PathEntry.toString(java.nio.file.attribute.FileTime, boolean)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/scp/server/ScpShell$PathEntry.class:

Type `java.time.ZoneId` was not found, it is required for default or static interface methods desugaring of `java.lang.String org.apache.sshd.scp.server.ScpShell$PathEntry.toString(java.nio.file.attribute.FileTime, boolean)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/scp/server/ScpShell$PathEntry.class:

Type `java.time.format.DateTimeFormatter` was not found, it is required for default or static interface methods desugaring of `void org.apache.sshd.scp.server.ScpShell$PathEntry.()`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/common/Property$DurationInSecondsProperty.class:

Type `java.time.Duration` was not found, it is required for default or static interface methods desugaring of `java.time.Duration org.apache.sshd.common.Property$DurationInSecondsProperty.fromStorage(java.lang.Object)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/scp/server/ScpShell$PathEntry.class:

Type `java.nio.file.attribute.PosixFilePermissions` was not found, it is required for default or static interface methods desugaring of `java.lang.String org.apache.sshd.scp.server.ScpShell$PathEntry.display(boolean, boolean)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/common/io/nio2/Nio2ServiceFactory.class:

Type `java.nio.channels.AsynchronousChannelGroup` was not found, it is required for default or static interface methods desugaring of `void org.apache.sshd.common.io.nio2.Nio2ServiceFactory.(org.apache.sshd.common.FactoryManager, org.apache.sshd.common.util.threads.CloseableExecutorService, org.apache.sshd.common.util.threads.CloseableExecutorService)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/common/file/root/RootedFileSystemProvider.class:

Type `java.nio.file.Paths` was not found, it is required for default or static interface methods desugaring of `java.nio.file.Path org.apache.sshd.common.file.root.RootedFileSystemProvider.uriToPath(java.net.URI)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/common/signature/SignatureRSA.class:

Type `java.util.stream.Stream` was not found, it is required for default or static interface methods desugaring of `void org.apache.sshd.common.signature.SignatureRSA.()`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/server/SshServer.class:

Type `java.net.InetAddress` was not found, it is required for default or static interface methods desugaring of `void org.apache.sshd.server.SshServer.start()`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/common/mac/Poly1305Mac.class:

Type `java.lang.Byte` was not found, it is required for default or static interface methods desugaring of `int org.apache.sshd.common.mac.Poly1305Mac.unpackIntLE(byte[], int)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/sftp/common/extensions/ParserUtils.class:

Type `java.util.function.Function` was not found, it is required for default or static interface methods desugaring of `void org.apache.sshd.sftp.common.extensions.ParserUtils.()`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/common/util/SshdEventListener.class:

Type `java.lang.reflect.Proxy` was not found, it is required for default or static interface methods desugaring of `org.apache.sshd.common.util.SshdEventListener org.apache.sshd.common.util.SshdEventListener.validateListener(org.apache.sshd.common.util.SshdEventListener, java.lang.String)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/common/channel/SttySupport.class:

Type `java.lang.Runtime` was not found, it is required for default or static interface methods desugaring of `java.lang.String org.apache.sshd.common.channel.SttySupport.exec(java.lang.String[])`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/common/cipher/BuiltinCiphers$Constants.class:

Type `java.util.regex.Pattern` was not found, it is required for default or static interface methods desugaring of `void org.apache.sshd.common.cipher.BuiltinCiphers$Constants.()`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/common/kex/KexProposalOption.class:

Type `java.util.Comparator` was not found, it is required for default or static interface methods desugaring of `void org.apache.sshd.common.kex.KexProposalOption.()`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/sftp/server/AbstractSftpSubsystemHelper.class:

Type `java.util.function.IntUnaryOperator` was not found, it is required for default or static interface methods desugaring of `void org.apache.sshd.sftp.server.AbstractSftpSubsystemHelper.doRead(org.apache.sshd.common.util.buffer.Buffer, int)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/common/file/nativefs/NativeFileSystemFactory.class:

Type `java.nio.file.FileSystems` was not found, it is required for default or static interface methods desugaring of `java.nio.file.FileSystem org.apache.sshd.common.file.nativefs.NativeFileSystemFactory.createFileSystem(org.apache.sshd.common.session.SessionContext)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/agent/unix/AgentServer$SshAgentSession.class:

Type `org.apache.tomcat.jni.Socket` was not found, it is required for default or static interface methods desugaring of `void org.apache.sshd.agent.unix.AgentServer$SshAgentSession.run()`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/sftp/server/AbstractSftpSubsystemHelper.class:

Type `java.nio.ByteBuffer` was not found, it is required for default or static interface methods desugaring of `void org.apache.sshd.sftp.server.AbstractSftpSubsystemHelper.doCheckFileHash(int, java.nio.file.Path, org.apache.sshd.common.NamedFactory, long, long, int, org.apache.sshd.common.util.buffer.Buffer)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/common/util/security/eddsa/EdDSASecurityProviderUtils.class:

Type `net.i2p.crypto.eddsa.spec.EdDSANamedCurveTable` was not found, it is required for default or static interface methods desugaring of `java.security.PublicKey org.apache.sshd.common.util.security.eddsa.EdDSASecurityProviderUtils.generateEDDSAPublicKey(byte[])`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/common/util/io/output/NullPrintStream.class:

Type `java.util.Locale` was not found, it is required for default or static interface methods desugaring of `java.io.PrintStream org.apache.sshd.common.util.io.output.NullPrintStream.printf(java.lang.String, java.lang.Object[])`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/common/session/helpers/KeyExchangeMessageHandler.class:

Type `java.util.concurrent.Executors` was not found, it is required for default or static interface methods desugaring of `void org.apache.sshd.common.session.helpers.KeyExchangeMessageHandler.(org.apache.sshd.common.session.helpers.AbstractSession, org.slf4j.Logger)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/scp/server/InputStreamReader.class:

Type `java.nio.CharBuffer` was not found, it is required for default or static interface methods desugaring of `int org.apache.sshd.scp.server.InputStreamReader.read(char[], int, int)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/agent/unix/AgentClient.class:

Type `org.apache.tomcat.jni.Pool` was not found, it is required for default or static interface methods desugaring of `void org.apache.sshd.agent.unix.AgentClient.(org.apache.sshd.common.FactoryManager, java.lang.String, org.apache.sshd.common.util.threads.CloseableExecutorService)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/agent/unix/AgentClient.class:

Type `org.apache.tomcat.jni.Local` was not found, it is required for default or static interface methods desugaring of `void org.apache.sshd.agent.unix.AgentClient.(org.apache.sshd.common.FactoryManager, java.lang.String, org.apache.sshd.common.util.threads.CloseableExecutorService)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/agent/unix/AgentClient.class:

Type `org.apache.tomcat.jni.Error` was not found, it is required for default or static interface methods desugaring of `void org.apache.sshd.agent.unix.AgentClient.throwException(int)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/common/config/keys/loader/AbstractPrivateKeyObfuscator.class:

Type `javax.crypto.Cipher` was not found, it is required for default or static interface methods desugaring of `byte[] org.apache.sshd.common.config.keys.loader.AbstractPrivateKeyObfuscator.applyPrivateKeyCipher(byte[], org.apache.sshd.common.config.keys.loader.PrivateKeyEncryptionContext, int, byte[], boolean)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/server/keyprovider/AbstractGeneratorHostKeyProvider.class:

Type `java.nio.file.attribute.AclEntry` was not found, it is required for default or static interface methods desugaring of `void org.apache.sshd.server.keyprovider.AbstractGeneratorHostKeyProvider.setFilePermissions(java.nio.file.Path)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/common/util/threads/ThreadUtils.class:

Type `java.lang.ClassLoader` was not found, it is required for default or static interface methods desugaring of `java.lang.ClassLoader org.apache.sshd.common.util.threads.ThreadUtils.resolveDefaultClassLoader(java.lang.Class)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/sftp/client/SftpVersionSelector.class:

Type `java.util.stream.StreamSupport` was not found, it is required for default or static interface methods desugaring of `int org.apache.sshd.sftp.client.SftpVersionSelector.lambda$preferredVersionSelector$6(java.lang.Iterable, org.apache.sshd.client.session.ClientSession, boolean, int, java.util.List)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/sftp/client/fs/SftpFileSystemProvider$1.class:

Type `java.nio.file.attribute.PosixFilePermission` was not found, it is required for default or static interface methods desugaring of `void org.apache.sshd.sftp.client.fs.SftpFileSystemProvider$1.()`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/sftp/client/fs/SftpFileSystemProvider$1.class:

Type `java.nio.file.AccessMode` was not found, it is required for default or static interface methods desugaring of `void org.apache.sshd.sftp.client.fs.SftpFileSystemProvider$1.()`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/common/util/logging/LoggingUtils.class:

Type `java.lang.reflect.Modifier` was not found, it is required for default or static interface methods desugaring of `boolean org.apache.sshd.common.util.logging.LoggingUtils.lambda$getMnemonicFields$3(java.util.function.Predicate, java.lang.reflect.Field)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/common/util/io/output/SecureByteArrayOutputStream.class:

Type `java.io.ByteArrayOutputStream` was not found, it is required for default or static interface methods desugaring of `void org.apache.sshd.common.util.io.output.SecureByteArrayOutputStream.write(int)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/common/util/threads/SshdThreadFactory.class:

Type `java.security.AccessController` was not found, it is required for default or static interface methods desugaring of `java.lang.Thread org.apache.sshd.common.util.threads.SshdThreadFactory.newThread(java.lang.Runnable)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:com/skyworth/lib/client/SshKeyScanMain.class:

Type `java.util.UUID` was not found, it is required for default or static interface methods desugaring of `void com.skyworth.lib.client.SshKeyScanMain.resolveServerKeys(org.apache.sshd.client.SshClient, java.lang.String, java.lang.String, java.util.List)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/client/SshClient.class:

Type `java.net.URI` was not found, it is required for default or static interface methods desugaring of `org.apache.sshd.client.future.ConnectFuture org.apache.sshd.client.SshClient.connect(java.lang.String)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:com/skyworth/lib/client/SshClientCliSupport$3.class:

Type `java.util.logging.ConsoleHandler` was not found, it is required for default or static interface methods desugaring of `void com.skyworth.lib.client.SshClientCliSupport$3.setOutputStream(java.io.OutputStream)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/common/config/keys/loader/openssh/kdf/BCrypt.class:

Type `java.security.MessageDigest` was not found, it is required for default or static interface methods desugaring of `void org.apache.sshd.common.config.keys.loader.openssh.kdf.BCrypt.pbkdf(byte[], byte[], int, byte[])`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/slf4j/helpers/Util$ClassContextSecurityManager.class:

Type `java.lang.SecurityManager` was not found, it is required for default or static interface methods desugaring of `java.lang.Class[] org.slf4j.helpers.Util$ClassContextSecurityManager.getClassContext()`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/common/io/nio2/Nio2Acceptor.class:

Type `java.nio.channels.AsynchronousServerSocketChannel` was not found, it is required for default or static interface methods desugaring of `java.nio.channels.AsynchronousServerSocketChannel org.apache.sshd.common.io.nio2.Nio2Acceptor.openAsynchronousServerSocketChannel(java.net.SocketAddress, java.nio.channels.AsynchronousChannelGroup)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:com/skyworth/lib/server/SshServerCliSupport.class:

Type `java.util.ServiceLoader` was not found, it is required for default or static interface methods desugaring of `java.util.List com.skyworth.lib.server.SshServerCliSupport.resolveServerSubsystems(org.apache.sshd.server.ServerFactoryManager, java.util.logging.Level, java.io.PrintStream, java.io.PrintStream, org.apache.sshd.common.PropertyResolver)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:com/skyworth/lib/client/SshClientCliSupport.class:

Type `java.util.logging.Logger` was not found, it is required for default or static interface methods desugaring of `java.util.logging.Handler com.skyworth.lib.client.SshClientCliSupport.setupLogging(java.util.logging.Level, java.io.PrintStream, java.io.PrintStream, java.io.OutputStream)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/common/util/threads/SshThreadPoolExecutor.class:

Type `java.util.concurrent.ThreadPoolExecutor` was not found, it is required for default or static interface methods desugaring of `void org.apache.sshd.common.util.threads.SshThreadPoolExecutor.shutdown()`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/sftp/server/SftpSubsystemEnvironment.class:

Type `java.util.stream.IntStream` was not found, it is required for default or static interface methods desugaring of `void org.apache.sshd.sftp.server.SftpSubsystemEnvironment.()`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/server/shell/TtyFilterInputStream.class:

Type `java.io.FilterInputStream` was not found, it is required for default or static interface methods desugaring of `int org.apache.sshd.server.shell.TtyFilterInputStream.available()`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/common/util/net/SshdSocketAddress.class:

Type `java.net.NetworkInterface` was not found, it is required for default or static interface methods desugaring of `java.util.List org.apache.sshd.common.util.net.SshdSocketAddress.getExternalNetwork4Addresses()`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/server/auth/gss/GSSAuthenticator.class:

Type `org.ietf.jgss.GSSManager` was not found, it is required for default or static interface methods desugaring of `org.ietf.jgss.GSSManager org.apache.sshd.server.auth.gss.GSSAuthenticator.getGSSManager()`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/server/auth/gss/CredentialHelper.class:

Type `javax.security.auth.Subject` was not found, it is required for default or static interface methods desugaring of `org.ietf.jgss.GSSCredential org.apache.sshd.server.auth.gss.CredentialHelper.creds(org.ietf.jgss.GSSManager, java.lang.String, java.lang.String)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/common/Property$BaseProperty.class:

Type `java.util.Optional` was not found, it is required for default or static interface methods desugaring of `void org.apache.sshd.common.Property$BaseProperty.(java.lang.String, java.lang.Class, java.lang.Object)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/common/util/security/SecurityProviderRegistrar.class:

Type `java.security.Security` was not found, it is required for default or static interface methods desugaring of `boolean org.apache.sshd.common.util.security.SecurityProviderRegistrar.registerSecurityProvider(org.apache.sshd.common.util.security.SecurityProviderRegistrar)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/sftp/common/SftpHelper$1.class:

Type `java.nio.file.attribute.AclEntryType` was not found, it is required for default or static interface methods desugaring of `void org.apache.sshd.sftp.common.SftpHelper$1.()`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/common/io/nio2/Nio2Connector.class:

Type `java.nio.channels.AsynchronousSocketChannel` was not found, it is required for default or static interface methods desugaring of `java.nio.channels.AsynchronousSocketChannel org.apache.sshd.common.io.nio2.Nio2Connector.openAsynchronousSocketChannel(java.net.SocketAddress, java.nio.channels.AsynchronousChannelGroup)`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/common/io/BuiltinIoServiceFactoryFactories.class:

Type `java.lang.Class` was not found, it is required for default or static interface methods desugaring of `java.lang.Class org.apache.sshd.common.io.BuiltinIoServiceFactoryFactories.getFactoryClass()`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/agent/unix/AprLibrary.class:

Type `org.apache.tomcat.jni.Library` was not found, it is required for default or static interface methods desugaring of `void org.apache.sshd.agent.unix.AprLibrary.()`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/agent/unix/AprLibrary.class:

Type `java.io.File` was not found, it is required for default or static interface methods desugaring of `java.lang.String org.apache.sshd.agent.unix.AprLibrary.createLocalSocketAddress()`

Warning in D:\workSpace\Ssh202301121307\lib\build\ssh1.0.jar:org/apache/sshd/agent/unix/AprLibrary.class:

Type `org.apache.tomcat.jni.File` was not found, it is required for default or static interface methods desugaring of `void org.apache.sshd.agent.unix.AprLibrary.chmodOwner(java.lang.String, boolean)`

Error: Class or interface java.io.IOException required for desugaring of try-with-resources is not found.

Compilation failed

相关文章

评论可见,请评论后查看内容,谢谢!!!
 您阅读本篇文章共花了: