LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-23-2005, 12:15 PM   #1
crazyzombie
LQ Newbie
 
Registered: Sep 2005
Location: chicago
Posts: 2

Rep: Reputation: 0
Unhappy I can't run javac


I installed Red Hat recently but it won't let me use javac
when I try to compile the programs it tells me that javac is not found.
what can I do to run my programs?
 
Old 09-23-2005, 12:57 PM   #2
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
Hi!

Read this:

http://www.linuxquestions.org/questi...40#post1841740

I also assume that you are using J2SDK ratter then JRE, since JRE does not come with javac, only the runtime environment. To run your programs the syntax is java <classname> without the extension (.class) and to compile it's javac classname.java

Check Sun's documentation and tutorials related to Java if you are totally new to this

Good luck!
 
Old 09-23-2005, 01:50 PM   #3
bitnet
LQ Newbie
 
Registered: Sep 2005
Distribution: 93n100
Posts: 7

Rep: Reputation: 0
Mate, issue this command (I assume you didn't forget to install JRE itself)

ls -s /usr/bin path_to_javac

If the javac is on hd, the trick is to link it to a location in what all files are globally accessible. In simple terms /usr/bin is a dir where you should links yer apps to.

Cheers
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Javac not included? k1ll3r_x Slackware 8 08-21-2005 07:30 AM
javac zaicheke Programming 2 10-05-2004 10:46 PM
java jdk1.4.2 & free: installation performed but javac doesn't run Dominik *BSD 3 02-18-2004 03:42 AM
javac linuxRules Linux - General 3 05-23-2002 07:45 AM
javac linuxRules Linux - General 0 05-21-2002 09:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:04 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration