Question

In Ubuntu 9.10 is there any way to confirm/ check if swing is installed and thus check its version!

Was it helpful?

Solution

Swing will be included in the JVM, if it's new enough.

See this page.

OTHER TIPS

If you are looking for a JRE to run a desktop application, you can check for the 'java' executable in $PATH, look for $JRE_HOME or $JAVA_HOME environment variables. Once a JRE is found use java -version to get its version.

If you are trying to deploy an applet, use the Java Deployment Toolkit.

Swing is included in the default Java JRE. So just:

sudo apt-get install openjdk-6-jre

If you need the JDK (to develop on), it's:

sudo apt-get install openjdk-6-jdk

As far as the version, it should be compatible with Java 6. You can check the exact package version with:

apt-cache show openjdk-6-jre

Here's the Java installation page for Ubuntu that covers everything from SDK to web browsers.

  1. Open a terminal
  2. Type: java -version

If it says something meaningful, you're fine; you have swing on that machine.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top