On linux, I often launch and compile from the command line (java/javac)
Though, Java isn’t the only language I use – I use C++, and for that I have GCC. Because I have both java and GCC, for example, there are more than one instance of ‘javac’:
From the terminal, passing ‘javac’ with no arguments:
The program ‘javac’ can be found in the following packages:
* openjdk-6-jdk
* ecj
* gcj-4.4-jdk
* gcj-4.5-jdk
Try: sudo apt-get install
Is there a way to specify which package I want to use? Either per-command, or set a default? I would prefer not to remove one or the other.
Thanks –
Zac
On Ubuntu there is a system called
alternatviesinstalled, to switch between different implementations:shows the usage:
If you get problems with swing, you should try sun-java, which you’re missing in your list. 🙂
As ‘KindOfAutomatic suggests:
is the same thing in a different way. Instead of ‘java’, you can config your favorite editor, x-www-browser, pager and so on as well. Have a look at
to get an impression, what’s already done there.