View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 12-04-2012, 11:49 AM   #1
pradeep 1991
LQ Newbie
Registered: Oct 2012
Posts: 5

Rep: Reputation: Disabled
how to execute java programs

i wanted to execute java program so initially i used

output: java already installed no updates found

then i wrote a java progrm and started compiling

javac <filename>
output:javac not found

when java is installed why a error with javac ?
help me
Old 12-04-2012, 12:28 PM   #2
Senior Member
Registered: Sep 2011
Location: Surrey/Hants Border, UK
Distribution: OpenBSD (plus AntiX & TinyCore)
Posts: 1,458

Rep: Reputation: Disabled
The Oracle implementation is packaged into two different distributions: The Java Runtime Environment (JRE) which contains the parts of the Java SE platform required to run Java programs and is intended for end-users, and the Java Development Kit (JDK), which is intended for software developers and includes development tools such as the Java compiler, Javadoc, Jar, and a debugger.
I don't use java, but the above might be a clue, you may need to download & install the JDK for your distro.
(To run a program, I think it is, java <progname>.jar.)
1 members found this post helpful.
Old 12-04-2012, 02:17 PM   #3
Registered: May 2009
Posts: 102

Rep: Reputation: 13
maybe you need a java compiler, try :
yum install javacc
Old 12-04-2012, 02:56 PM   #4
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2015, Slack14.1 DebJessie, + 50+ other Linux OS, for test only.
Posts: 15,636

Rep: Reputation: 2991Reputation: 2991Reputation: 2991Reputation: 2991Reputation: 2991Reputation: 2991Reputation: 2991Reputation: 2991Reputation: 2991Reputation: 2991Reputation: 2991
# yum search java
.. And if you think you can use openjdk :
# yum install java-1.6.0-openjdk-devel
Or version 1.7 : # yum install java-1.7.0-openjdk-devel

The Sun java6jdk : jdk-1.6.0_37-fcs


Setting up java : Post # 4 here ..

1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to execute lex programs pradeep 1991 Programming 2 11-06-2012 10:53 AM
Will changes in Java binary executable affect running Java programs? xuancong Programming 6 04-14-2011 01:04 AM
Execute Programs: Analysis Linux - Desktop 4 06-13-2007 05:19 PM
I can not execute compilied programs guitarfella Fedora 2 04-22-2005 11:45 PM
Root can execute programs lawrencegoodman Linux - Newbie 11 01-28-2004 07:42 AM

All times are GMT -5. The time now is 11:28 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration