Error in Installing javac for fedora 20 and java version 1.6

  • Context: Java 
  • Thread starter Thread starter ankitdixit
  • Start date Start date
  • Tags Tags
    Error Java
Click For Summary
SUMMARY

The discussion centers on the challenges faced while installing the Java compiler (javac) for Java version 1.6 on Fedora 20. The user successfully removed Java 7 using the command sudo yum remove *java* and attempted to install Java 6 with su -c "yum install java-1.6.0-openjdk-devel", but encountered an error indicating that the package was unavailable. The conversation highlights the need for the Java Development Kit (JDK) to access javac, as it is not included with the Java Runtime Environment (JRE) alone.

PREREQUISITES
  • Familiarity with Fedora 20 package management using YUM
  • Understanding of Java versions and their components (JDK vs. JRE)
  • Basic command line skills in a Linux environment
  • Knowledge of repository management for older software versions
NEXT STEPS
  • Research how to enable or find repositories for older Java versions on Fedora
  • Learn how to install the Java Development Kit (JDK) for Java 6 on Fedora
  • Explore alternatives for running Java applications without javac
  • Investigate the use of containerization tools like Docker to run legacy Java applications
USEFUL FOR

Developers working with legacy Java applications, system administrators managing Fedora environments, and anyone needing to install specific Java versions for compatibility with older software.

ankitdixit
Messages
5
Reaction score
1
By default, I had Java 7 installed on my system(X64, Fedora 20).

I needed Java 6 for a software, hence had to remove 7

Java:
sudo yum remove *java*

And then, I installed Java 6.

This installs Java 6 successfully. but the java compiler, JavaC is missing. For that, I try -

Java:
su -c "yum install java-1.6.0-openjdk-devel"

Loaded plugins: langpacks, refresh-packagekit
No package java-1.6.0-openjdk-devel available.
Error: Nothing to do

I use this online compiler to run the java program. Could someone please help me with installing javac for java 1.6?
 
Technology news on Phys.org
Javac comes with the java sdk. Did you install the sdk or only the java runtime?
 
ankitdixit said:
Fedora 20
This is 14 releases back. Is that what you want? Is the repo still active?
 

Similar threads

  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 6 ·
Replies
6
Views
5K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 49 ·
2
Replies
49
Views
12K