Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

for C++ programs :

All you need is the package "gcc-c++"

sudo yum install gcc-c++

And then compile using:

g++ [sourcefile.cpp] -o [progname]

execute :

./progname

P.D : more info man gcc and GCC, the GNU Compiler Collection

for C++ programs :

All you need is the package "gcc-c++"

sudo yum install gcc-c++

And then compile using:

g++ [sourcefile.cpp] -o [progname]

execute :

./progname

P.D : more info man gcc and GCC, the GNU Compiler Collection

for JAVA program :

OpenJDK and project IcedTea

Fedora has shipped OpenJDK as default JRE implementation since Fedora release 9. It's based on Sun Microsystem's JavaOne open source release and complemented by Red Hat's IcedTea project that implements the missing third party components that Sun could not release under free License.

if you would like JAVA open just :

 sudo yum install java-1.7.0-openjdk

if you would like ORACLE follow this post #2282

for C++ programs :

All you need is the package "gcc-c++"

sudo yum install gcc-c++

And then compile using:

g++ [sourcefile.cpp] -o [progname]

execute :

./progname

P.D : more info man gcc and GCC, the GNU Compiler Collection

for JAVA program :

OpenJDK and project IcedTea

Fedora has shipped OpenJDK as default JRE implementation since Fedora release 9. It's based on Sun Microsystem's JavaOne open source release and complemented by Red Hat's IcedTea project that implements the missing third party components that Sun could not release under free License.

if you would like JAVA open just :

 sudo yum install java-1.7.0-openjdk

if you would like ORACLE follow this post #2282

compiling

man javac

for C++ programs :

All you need is the package "gcc-c++"

sudo yum install gcc-c++

And then compile using:

g++ [sourcefile.cpp] -o [progname]

execute :

./progname

P.D : more info man gcc and GCC, the GNU Compiler Collection

for JAVA program :

OpenJDK and project IcedTea

Fedora has shipped OpenJDK as default JRE implementation since Fedora release 9. It's based on Sun Microsystem's JavaOne open source release and complemented by Red Hat's IcedTea project that implements the missing third party components that Sun could not release under free License.

if you would like JAVA open just :

 sudo yum install java-1.7.0-openjdk

if you would like ORACLE follow this post #2282

compiling

To confirm that the Java interpreter is installed, type the command in boldface below and check that the results match:

java -version

compiling :

javac HelloWorld.java

man javac

execute :

java HelloWorld

for C++ programs :

All you need is the package "gcc-c++"

sudo yum install gcc-c++

And then compile using:

g++ [sourcefile.cpp] -o [progname]

execute :

./progname

P.D : more info man gcc and GCC, the GNU Compiler Collection


for JAVA program :

OpenJDK and project IcedTea

Fedora has shipped OpenJDK as default JRE implementation since Fedora release 9. It's based on Sun Microsystem's JavaOne open source release and complemented by Red Hat's IcedTea project that implements the missing third party components that Sun could not release under free License.

if you would like JAVA open just :

 sudo yum install java-1.7.0-openjdk

if you would like ORACLE follow this post #2282

To confirm that the Java interpreter is installed, type the command in boldface below and check that the results match:

java -version

compiling :

javac HelloWorld.java

man javac

execute :

java HelloWorld

NOTE : if you need a IDE GEANY is great but there are more please read this post #1545

for C++ programs :

All you need is the package "gcc-c++"

sudo yum install gcc-c++

And then compile using:

g++ [sourcefile.cpp] -o [progname]

execute :

./progname

P.D : more info man gcc and GCC, the GNU Compiler Collection


for JAVA program :

OpenJDK and project IcedTea

Fedora has shipped OpenJDK as default JRE implementation since Fedora release 9. It's based on Sun Microsystem's JavaOne open source release and complemented by Red Hat's IcedTea project that implements the missing third party components that Sun could not release under free License.

if you would like JAVA open just :

 sudo yum install java-1.7.0-openjdk
java-1.7.0-openjdk-devel

if you would like ORACLE follow this post #2282

To confirm that the Java interpreter is installed, type the command in boldface below and check that the results match:

java -version

compiling :

javac HelloWorld.java

man javac

execute :

java HelloWorld

NOTE : if you need a IDE GEANY is great but there are more please read this post #1545

for C++ programs :

All you need is the package "gcc-c++"

sudo yum install gcc gcc-c++

And then compile using:

g++ [sourcefile.cpp] -o [progname]

execute :

./progname

P.D : more info man gcc and GCC, the GNU Compiler Collection


for JAVA program :

OpenJDK and project IcedTea

Fedora has shipped OpenJDK as default JRE implementation since Fedora release 9. It's based on Sun Microsystem's JavaOne open source release and complemented by Red Hat's IcedTea project that implements the missing third party components that Sun could not release under free License.

if you would like JAVA open just :

 sudo yum install java-1.7.0-openjdk-devel

if you would like ORACLE follow this post #2282

To confirm that the Java interpreter is installed, type the command in boldface below and check that the results match:

java -version

compiling :

javac HelloWorld.java

man javac

execute :

java HelloWorld

NOTE : if you need a IDE GEANY is great but there are more please read this post #1545

for C++ programs :

All you need is the package "gcc-c++" "gcc and gcc-c++"

sudo yum install gcc gcc-c++

for C programs :

To compile C program first.c, and create an executable file called first, enter:

gcc first.c -o first

OR

cc first.c -o first

To execute program first, enter:

./first

for C++ programs :

And then compile using:

g++ [sourcefile.cpp] -o [progname]

execute :

./progname

P.D : more info man gcc and GCC, the GNU Compiler Collection


for JAVA program :

OpenJDK and project IcedTea

Fedora has shipped OpenJDK as default JRE implementation since Fedora release 9. It's based on Sun Microsystem's JavaOne open source release and complemented by Red Hat's IcedTea project that implements the missing third party components that Sun could not release under free License.

if you would like JAVA open just :

 sudo yum install java-1.7.0-openjdk-devel

if you would like ORACLE follow this post #2282

To confirm that the Java interpreter is installed, type the command in boldface below and check that the results match:

java -version

compiling :

javac HelloWorld.java

man javac

execute :

java HelloWorld

NOTE : if you need a IDE GEANY is great but there are more please read this post #1545