sun-java6-plugin seems not to provide javac

Asked by Mathieu Marquer on 2009-03-25

After completely (--purge) uninstalling every sun-java6-* package, and completely removing unused packages (autoremove --purge), then reinstalling sun-java6-plugin, javac is still not recognized :

$ sudo update-alternatives --config javac

Il n'y a qu'un programme fournissant javac (/usr/lib/jvm/java-6-sun/bin/javac).
Rien à configurer.

$ java
Usage: java [-options] class [args...]
           (to execute a class)
   or java [-options] -jar jarfile [args...]
           (to execute a jar file)
etc etc... so this is OK

$ javac
Le programme « javac » peut être trouvé dans les paquets suivants :
 * ecj
 * gcj-4.3
 * java-gcj-compat-dev
 * openjdk-6-jdk
 * cacao-oj6-jdk
 * gcj-4.2
 * jikes-classpath
 * jikes-kaffe
 * kaffe
 * sun-java5-jdk
 * sun-java6-jdk
Essayez : sudo apt-get install <paquet sélectionné>
bash: javac : commande introuvable

Please let me know if you need additionnal informations.

ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 9.04
NonfreeKernelModules: nvidia
Package: sun-java6-jdk 6-12-0ubuntu1
ProcEnviron:
 LANG=fr_FR.UTF-8
 SHELL=/bin/bash
SourcePackage: sun-java6
Uname: Linux 2.6.29-020629-generic x86_64

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu sun-java6 Edit question
Assignee:
No assignee Edit question
Last query:
2009-03-26
Last reply:
2009-04-01
Mathieu Marquer (slasher-fun) said : #1
James Stansell (jamesstansell) said : #2

This report is really a question about which package provides the javac command. The output listed in the report shows a list of packages, and the sun-java6-plugin package is not in that list.

The javac command is used by programmers and administrators to compile java programs.
For the inexperienced I would recommend trying the sun-java6-jdk package, which will most closely match the many comments that can be found through an internet search.

Mathieu Marquer (slasher-fun) said : #3

Oops I'm sorry, I've written sun-java6-plugin but of course I actually meant sun-java6-jdk, that's why I initially reported this question as a bug. So :

* I totally uninstalled every java-related package
* I installed sun-java6-jdk
* "sudo update-alternatives --config javac" says that javac is provided by sun-java6-jdk
* "java" is a recognized command
* but "javac" is said not to be installed...

I know that this command is supposed to be "javac myfiles.java", but here it's just to show you the fact that even if sun-java6-jdk has been uninstalled then reinstalled, and even if "update-alternatives" says that javac is provided by sun-java6-jdk, javac is still an unrecognized command, and so I can't compile my java code...

Mohamed Zaian (mzaian) said : #4

try to purge all ur sun-java6* installed , apt-get remove --purge sun-java6-jdk , install them again , look for erros while removing delete directories manually if the method can't delete some of them, try a clean installation of sun-java6* and let's see.

Can you help with this problem?

Provide an answer of your own, or ask Mathieu Marquer for more information if necessary.

To post a message you must log in.