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
Click For 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?
 
Learn If you want to write code for Python Machine learning, AI Statistics/data analysis Scientific research Web application servers Some microcontrollers JavaScript/Node JS/TypeScript Web sites Web application servers C# Games (Unity) Consumer applications (Windows) Business applications C++ Games (Unreal Engine) Operating systems, device drivers Microcontrollers/embedded systems Consumer applications (Linux) Some more tips: Do not learn C++ (or any other dialect of C) as a...

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
11K