LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-23-2006, 10:51 AM   #1
Scourge
LQ Newbie
 
Registered: Sep 2005
Distribution: Suse 9.3 & Suse 10
Posts: 4

Rep: Reputation: 0
javac error


Im having issues with java/kate in Suse 9.3.

when i try to compile it using the javac command it returns "bash: javac: command not found"

so I need to set my path right. the problems with that is when I edit my profile it the etc directory it says I don't have permission to write the file.

so I try to chmod the file, and it says "chmod: changing permissions of `profile': Operation not permitted"

help plz & thank you
 
Old 01-23-2006, 11:09 AM   #2
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
try changing it as superuser, I tend to use gedit for my editing so you can do...
Code:
su -c "gedit"
and then do the changes you require with su permissions

graeme.
 
Old 01-23-2006, 12:08 PM   #3
Scourge
LQ Newbie
 
Registered: Sep 2005
Distribution: Suse 9.3 & Suse 10
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by graemef
try changing it as superuser, I tend to use gedit for my editing so you can do...
Code:
su -c "gedit"
and then do the changes you require with su permissions

graeme.
tried...no worky.
 
Old 01-23-2006, 12:27 PM   #4
voger
Member
 
Registered: Oct 2005
Distribution: Arch
Posts: 68

Rep: Reputation: 15
Actualy your profile is not stored in /etc/profile. Assuming that you use the default bash shell, you have to add your line in /home/yourname/.bash_profile
 
  


Reply



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
configure: error: Can't find "javac" in your PATH, when install/compile a program... JungMin Programming 5 12-07-2005 05:04 PM
configure: error: Can't find "javac" in your PATH, when install/compile a program... JungMin Linux - Software 4 12-05-2005 11:20 PM
javac error rb3ng Programming 8 03-27-2004 07:00 AM
javac linuxRules Linux - General 3 05-23-2002 07:45 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:14 AM.

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