简体   繁体   中英

Sun Java 6 on Ubuntu

The java library I need (jpcap) only works on Java 6, it won't work with Java 7. Is it still possible to install Java 6 on Ubuntu? According to the Ubuntu Help :

Oracle (Sun) Java 6 is no longer available to be distributed by Ubuntu, because of license issues

I've tried to use the instructions on the same site but they don't seem to work... ./jre-6u34-linux-i586.bin doesn't seem to do anything!

I would try the OpenJDK 6 which AFAIK is fine on Ubuntu and check you have the right version 32-bit vs 64-bit for your machine. i586 is 32-bit and won't work with a 64-bit build of jpcap.

Check out these instructions on how to install Sun JDK 6. In older versions of the repositories the desired package is included.


If you're not obliged to, try using jNetPcap instead. It's another wrapper around pcap, it just works on more recent JVMs and is not restricted to 32 bit architecture.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM