Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am not sure if my question is more related about Ubuntu or Java, so pardon me!

I am trying to compile a java program but I get the following error:

package javax.comm does not exist

I have downloaded the required package comm.jar but I do not know how/where should I install/copy this file.

I read somewhere that this should be in CLASSPATH folder but I dont have this folder.

This is what I get for java -version I guess this means I have already installed Java in my system:

java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.4) (6b24-1.11.4-1ubuntu0.12.04.1)
OpenJDK Server VM (build 20.0-b12, mixed mode)

I also have these folders in /usr/lib/jvm/ :

default-java             java-1.7.0-openjdk-i386  java-6-openjdk-i386
java-1.6.0-openjdk       java-6-openjdk           java-7-openjdk-common
java-1.6.0-openjdk-i386  java-6-openjdk-common    java-7-openjdk-i386
share|improve this question
up vote 1 down vote accepted

you need java API for communication see this

share|improve this answer
Thanks, they said copy it to /jre/... but I don't have such folder (maybe this is an old text)...I wonder which of the folders that I listed in my question are the actual Java folder! – Saeid87 Sep 27 '12 at 13:19
You have to be notified that Oracle java is not supported anymore in Ubuntu so there may be some changes between tutorials – user61928 Sep 27 '12 at 13:21
you dont have jre you must install it – user61928 Sep 27 '12 at 13:25
Can you summarize your link and maybe develop your answer to be more accurate ? – NorTicUs Oct 19 '12 at 14:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.