gpt4 book ai didi

Java Stacktrace 错误 Unsupported major.minor version 51.0

转载 作者:搜寻专家 更新时间:2023-10-30 21:17:46 25 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
unsupported major .minor version 51.0

我制作了这个脚本,它给了我这个错误:

java.lang.UnsupportedClassVersionError: net/glitching/client : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Exception in thread "main"

这是什么意思?这是我的代码...

package net.glitching;

import java.io.IOException;
import java.io.ObjectInputStream;
import java.net.Socket;

public class client {

static Socket sock = null;

public static void main(String[] args) {
while (true) {
try {
sock = new Socket("localhost", 4000);
ObjectInputStream in = new ObjectInputStream(sock.getInputStream());
}
catch (IOException ex) {}
}
}

}

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com