ubuntu中安装oracle sun java.

本文介绍了一种在Ubuntu上安装Oracle Java JDK 7的方法。通过使用sudo apt-get install python-software-properties来设置软件属性,接着添加PPA源sudo add-apt-repository ppa:webupd8team/java,更新软件包列表sudo apt-get update,最后安装Oracle JDK 7 sudo apt-get install oracle-jdk7-installer。

from: http://askubuntu.com/questions/55848/how-do-i-install-oracle-java-jdk-7



sudo apt-get install python-software-properties
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-jdk7-installer

D:\基地\Misc工具\Misc工具\Misc工具\stegsolvsndqmd>java -jar Jeecg_Tools-1.0-java8.jar Graphics Device initialization failed for : d3d, sw Error initializing QuantumRenderer: no suitable pipeline found java.lang.RuntimeException: java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found at com.sun.javafx.tk.quantum.QuantumRenderer.getInstance(QuantumRenderer.java:280) at com.sun.javafx.tk.quantum.QuantumToolkit.init(QuantumToolkit.java:222) at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:260) at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:267) at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:158) at com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:658) at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:678) at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:195) at java.base/java.lang.Thread.run(Thread.java:842) Caused by: java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.init(QuantumRenderer.java:94) at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:124) ... 1 more Exception in thread "main" java.lang.RuntimeException: No toolkit found at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:272) at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:267) at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:158) at com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:658) at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:678) at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:195) at java.base/java.lang.Thread.run(Thread.java:842)
07-29
Building dependency tree... Done Reading state information... Done libnss3-tools is already the newest version (2:3.98-1build1). The following package was automatically installed and is no longer required: libllvm19 Use 'sudo apt autoremove' to remove it. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. dministrator@DESKTOP-EC720EK:~$ # Linux安装JNA依赖 apt insdministrator@DESKTOP-EC720EK:~$ sudo apt install libjna-java 案 choco install jna # 需安装Chocolatey包管理器 # Windows解决方案 choco install jna # 需安装Chocolatey包管理器 Reading package lists... Done Building dependency tree... Done Reading state information... Done The following package was automatically installed and is no longer required: libllvm19 Use 'sudo apt autoremove' to remove it. The following additional packages will be installed: libjna-jni The following NEW packages will be installed: libjna-java libjna-jni 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 234 kB of archives. After this operation, 417 kB of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu noble/universe amd64 libjna-jni amd64 5.14.0-1 [33.9 kB] Get:2 http://archive.ubuntu.com/ubuntu noble/universe amd64 libjna-java all 5.14.0-1 [201 kB] Fetched 234 kB in 3s (82.5 kB/s) Selecting previously unselected package libjna-jni. (Reading database ... 88405 files and directories currently installed.) Preparing to unpack .../libjna-jni_5.14.0-1_amd64.deb ... Unpacking libjna-jni (5.14.0-1) ... Selecting previously unselected package libjna-java. Preparing to unpack .../libjna-java_5.14.0-1_all.deb ... Unpacking libjna-java (5.14.0-1) ... Setting up libjna-jni (5.14.0-1) ... Setting up libjna-java (5.14.0-1) ... dministrator@DESKTOP-EC720EK:~$ # 重建JAR索引文件 .jar dministrator@DESKTOP-EC720EK:~$ jar -i stegsolve.jar The JAR index (META-INF/INDEX.LIST) is ignored at run-time since JDK 18 Warning: The --generate-index/-i option is deprecated, and may be ignored or removed in a future release java.nio.file.NoSuchFileException: stegsolve.jar at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92) at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106) at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) at java.base/sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55) at java.base/sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:171) at java.base/sun.nio.fs.LinuxFileSystemProvider.readAttributes(LinuxFileSystemProvider.java:99) at java.base/java.nio.file.Files.readAttributes(Files.java:1854) at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1445) at java.base/java.util.zip.ZipFile$CleanableResource.<init>(ZipFile.java:724) at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:251) at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:180) at java.base/java.util.jar.JarFile.<init>(JarFile.java:345) at java.base/java.util.jar.JarFile.<init>(JarFile.java:316) at java.base/java.util.jar.JarFile.<init>(JarFile.java:255) at jdk.jartool/sun.tools.jar.Main.getJarPath(Main.java:1570) at jdk.jartool/sun.tools.jar.Main.genIndex(Main.java:1599) at jdk.jartool/sun.tools.jar.Main.run(Main.java:402) at jdk.jartool/sun.tools.jar.Main.main(Main.java:1700)好了吗
最新发布
11-10
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值