0 کاربر و 3 مهمان درحال مشاهده موضوع.
Exception in thread "main" java.lang.UnsupportedClassVersionError: jsettlers/main/swing/SwingManagedJSettlers : Unsupported major.minor version 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:803) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) at java.net.URLClassLoader.access$100(URLClassLoader.java:71) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
java version "1.7.0_101"OpenJDK Runtime Environment (IcedTea 2.6.6) (7u101-2.6.6-0ubuntu0.14.04.1)OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)
احتمالاً با Openjdk-7 سازگار نیست. Openjdk-9 رو نصب کن:
sudo apt-get install openjdk-8-jdkReading package lists... DoneBuilding dependency tree Reading state information... Doneopenjdk-8-jdk is already the newest version.0 upgraded, 0 newly installed, 0 to remove and 310 not upgraded.3 not fully installed or removed.After this operation, 0 B of additional disk space will be used.Do you want to continue? [Y/n] ySetting up oracle-java7-installer (7u80+7u60arm-0~webupd8~1) ...Downloading Oracle Java 7...--2016-06-21 10:39:31-- http://download.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gzResolving download.oracle.com (download.oracle.com)... 95.101.72.194, 95.101.72.202Connecting to download.oracle.com (download.oracle.com)|95.101.72.194|:80... connected.HTTP request sent, awaiting response... 403 Forbidden2016-06-21 10:39:31 ERROR 403: Forbidden.download failedOracle JDK 7 is NOT installed.dpkg: error processing package oracle-java7-installer (--configure): subprocess installed post-installation script returned error exit status 1Setting up oracle-java8-installer (8u92+8u91arm-2~really8u91~webupd8~0) ...Using wget settings from /var/cache/oracle-jdk8-installer/wgetrcDownloading Oracle Java 8...--2016-06-21 10:39:31-- http://download.oracle.com/otn-pub/java/jdk/8u91-b14/jdk-8u91-linux-x64.tar.gzResolving download.oracle.com (download.oracle.com)... 95.101.72.202, 95.101.72.194Connecting to download.oracle.com (download.oracle.com)|95.101.72.202|:80... connected.HTTP request sent, awaiting response... 403 Forbidden2016-06-21 10:39:32 ERROR 403: Forbidden.download failedOracle JDK 8 is NOT installed.dpkg: error processing package oracle-java8-installer (--configure): subprocess installed post-installation script returned error exit status 1dpkg: dependency problems prevent configuration of oracle-java8-set-default: oracle-java8-set-default depends on oracle-java8-installer; however: Package oracle-java8-installer is not configured yet.dpkg: error processing package oracle-java8-set-default (--configure): dependency problems - leaving unconfiguredErrors were encountered while processing: oracle-java7-installer oracle-java8-installer oracle-java8-set-defaultE: Sub-process /usr/bin/dpkg returned an error code (1)
sudo apt-get install torReading package lists... DoneBuilding dependency tree Reading state information... Donetor is already the newest version.0 upgraded, 0 newly installed, 0 to remove and 310 not upgraded.3 not fully installed or removed.After this operation, 0 B of additional disk space will be used.Do you want to continue? [Y/n] ySetting up oracle-java7-installer (7u80+7u60arm-0~webupd8~1) ...Downloading Oracle Java 7...--2016-06-21 10:43:00-- http://download.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gzResolving download.oracle.com (download.oracle.com)... 188.43.76.48, 188.43.76.65Connecting to download.oracle.com (download.oracle.com)|188.43.76.48|:80... connected.HTTP request sent, awaiting response... 403 Forbidden2016-06-21 10:43:01 ERROR 403: Forbidden.download failedOracle JDK 7 is NOT installed.dpkg: error processing package oracle-java7-installer (--configure): subprocess installed post-installation script returned error exit status 1Setting up oracle-java8-installer (8u92+8u91arm-2~really8u91~webupd8~0) ...Using wget settings from /var/cache/oracle-jdk8-installer/wgetrcDownloading Oracle Java 8...--2016-06-21 10:43:01-- http://download.oracle.com/otn-pub/java/jdk/8u91-b14/jdk-8u91-linux-x64.tar.gzResolving download.oracle.com (download.oracle.com)... 188.43.76.65, 188.43.76.48Connecting to download.oracle.com (download.oracle.com)|188.43.76.65|:80... connected.HTTP request sent, awaiting response... 403 Forbidden2016-06-21 10:43:01 ERROR 403: Forbidden.download failedOracle JDK 8 is NOT installed.dpkg: error processing package oracle-java8-installer (--configure): subprocess installed post-installation script returned error exit status 1dpkg: dependency problems prevent configuration of oracle-java8-set-default: oracle-java8-set-default depends on oracle-java8-installer; however: Package oracle-java8-installer is not configured yet.dpkg: error processing package oracle-java8-set-default (--configure): dependency problems - leaving unconfiguredErrors were encountered while processing: oracle-java7-installer oracle-java8-installer oracle-java8-set-defaultE: Sub-process /usr/bin/dpkg returned an error code (1)
مشکل همینه که یه سری دستور پیدا کردی و وارد کردی!مخزن و بستههای مربوط به اوراکل رو پاک کن و openjdk-9 رو نصب کن
خب چجوری؟
$ sudo apt purge oracle-java7-installer
نقلقول از: مرتضی آقابیگی در 01 تیر 1395، 10:52 قظخب چجوری؟مثلاً با این:کد: [انتخاب] $ sudo apt purge oracle-java7-installer
sudo apt purge oracle-java7-installer[sudo] password for fnb: Reading package lists... DoneBuilding dependency tree Reading state information... DoneThe following packages will be REMOVED: oracle-java7-installer*0 upgraded, 0 newly installed, 1 to remove and 310 not upgraded.3 not fully installed or removed.After this operation, 127 kB disk space will be freed.Do you want to continue? [Y/n] y(Reading database ... 162536 files and directories currently installed.)Removing oracle-java7-installer (7u80+7u60arm-0~webupd8~1) ...update-binfmts: warning: current package is oracle-java7, but binary format already installed by openjdk-7; not removing.Purging configuration files for oracle-java7-installer (7u80+7u60arm-0~webupd8~1) ...Processing triggers for shared-mime-info (1.2-0ubuntu3) ...Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...Processing triggers for mime-support (3.54ubuntu1.1) ...Setting up oracle-java8-installer (8u92+8u91arm-2~really8u91~webupd8~0) ...Using wget settings from /var/cache/oracle-jdk8-installer/wgetrcDownloading Oracle Java 8...--2016-06-21 11:16:28-- http://download.oracle.com/otn-pub/java/jdk/8u91-b14/jdk-8u91-linux-x64.tar.gzResolving download.oracle.com (download.oracle.com)... 80.239.137.58, 80.239.137.41Connecting to download.oracle.com (download.oracle.com)|80.239.137.58|:80... connected.HTTP request sent, awaiting response... 403 Forbidden2016-06-21 11:16:31 ERROR 403: Forbidden.download failedOracle JDK 8 is NOT installed.dpkg: error processing package oracle-java8-installer (--configure): subprocess installed post-installation script returned error exit status 1dpkg: dependency problems prevent configuration of oracle-java8-set-default: oracle-java8-set-default depends on oracle-java8-installer; however: Package oracle-java8-installer is not configured yet.dpkg: error processing package oracle-java8-set-default (--configure): dependency problems - leaving unconfiguredErrors were encountered while processing: oracle-java8-installer oracle-java8-set-defaultE: Sub-process /usr/bin/dpkg returned an error code (1)
$ sudo apt purge oracle-java8-installer oracle-java8-set-default
کد: [انتخاب] $ sudo apt purge oracle-java8-installer oracle-java8-set-default
sudo apt purge oracle-java7-installer oracle-java8-installer oracle-java8-set-default[sudo] password for fnb: Reading package lists... DoneBuilding dependency tree Reading state information... DoneE: Unable to locate package oracle-java7-installer
کد: [انتخاب]sudo apt purge oracle-java7-installer oracle-java8-installer oracle-java8-set-default[sudo] password for fnb: Reading package lists... DoneBuilding dependency tree Reading state information... DoneE: Unable to locate package oracle-java7-installer
چون یه چیز دیگه نوشتی!
sudo update-alternatives --config java