LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
LinkBack 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

YUM INSTALL JAVA
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
fatmac
Member
 
Registered: Sep 2011
Location: Upper Hale, Surrey-Hants Border
Distribution: Debian & Debian based distros
Posts: 228

Rep: Reputation: Disabled
Quote:
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
falcom
Member
 
Registered: May 2009
Posts: 102

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

Rep: Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378Reputation: 2378
# 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
32bits http://ftp.scientificlinux.org/linux...7-fcs.i586.rpm

64bits http://ftp.scientificlinux.org/linux...fcs.x86_64.rpm

Setting up java : Post # 4 here ..
http://www.linuxquestions.org/questi...-4175438243/#4

.
 
1 members found this post helpful.
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 07:13 AM.

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