Java Error in Installing javac for fedora 20 and java version 1.6

  • Thread starter Thread starter ankitdixit
  • Start date Start date
  • Tags Tags
    Error Java
AI Thread Summary
The discussion revolves around the installation of Java 6 on a Fedora 20 system, where the user initially had Java 7 installed. After removing Java 7, the user successfully installed Java 6 but encountered an issue with the missing Java compiler (javac). Attempts to install the development package for Java 6 using the command "yum install java-1.6.0-openjdk-devel" resulted in an error indicating that the package is not available. The conversation highlights concerns about the age of Fedora 20, suggesting that it may not have active repositories for older software versions, which could be contributing to the installation issues. The user seeks assistance in obtaining the javac compiler, emphasizing the need for the Java SDK rather than just the runtime environment.
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?
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...
Back
Top