LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-17-2007, 12:44 PM   #1
manolakis
Member
 
Registered: Nov 2006
Distribution: xubuntu
Posts: 422

Rep: Reputation: 31
GProlog and Javac installation problems


Hey there
I am quite newbie to Linux and i dont actually know how to install gprolog;
I have downloaded it into home/me/Desktop
It is an rpm file called 'gprolog-1.3.0-1.i386.rpm'
Guys any ideas?
Also i need the java compiler or javac anyway.
I currently have java & java_vm & javaws in my machine
Does anyone know what edition do i have to download from java.sun.com?

Many thanks for your time and for sharing your knowledge
 
Old 01-18-2007, 06:25 AM   #2
merchtemeagle
Member
 
Registered: Oct 2004
Location: Belgium
Distribution: Slackware 13.37
Posts: 512

Rep: Reputation: 31
Is there a specific reason you are using Backtrack Slackware?
 
Old 01-18-2007, 08:39 AM   #3
manolakis
Member
 
Registered: Nov 2006
Distribution: xubuntu
Posts: 422

Original Poster
Rep: Reputation: 31
to be perfectly honest i dont have any particular reason
The only reason that i installed BackTrack was that is a security suite and i found quite interesting.
 
Old 01-18-2007, 08:43 AM   #4
merchtemeagle
Member
 
Registered: Oct 2004
Location: Belgium
Distribution: Slackware 13.37
Posts: 512

Rep: Reputation: 31
It's probably easier if your new to linux to install a distro like Ubuntu which comes with an easy to use package manager.
 
Old 01-18-2007, 11:32 AM   #5
manolakis
Member
 
Registered: Nov 2006
Distribution: xubuntu
Posts: 422

Original Poster
Rep: Reputation: 31
javac problem

Hey there
I recently installed Jdk1.6 in my machine. I tried to install it in usr/local as root(i followed the instructions of sun)
so if i type:echo $HOME
/root <-------------what i get
Despite that the installation was successful i cant find 'javac'.
Any ideas what i have to do next?

Many thanks for your help
 
Old 01-18-2007, 11:34 AM   #6
manolakis
Member
 
Registered: Nov 2006
Distribution: xubuntu
Posts: 422

Original Poster
Rep: Reputation: 31
Well thanks for the advice
To be honest i agree with you but i cant change now
 
Old 01-18-2007, 11:42 AM   #7
merchtemeagle
Member
 
Registered: Oct 2004
Location: Belgium
Distribution: Slackware 13.37
Posts: 512

Rep: Reputation: 31
I'd like to help you, but I don't know what package manager Backtrack Slackware uses. It probably will not be an RPM-based one.
 
Old 01-18-2007, 12:10 PM   #8
manolakis
Member
 
Registered: Nov 2006
Distribution: xubuntu
Posts: 422

Original Poster
Rep: Reputation: 31
Please let me take the chance to ask smth
I successfully installed jdk1.6 in /usr/local as the instructions of Sun say.
The fact is that javac is not recognized
I inserted into bashrc file on the 5th line the following line of code
export PATH=$PATH:/usr/local/jdk1.6.0/bin/
It didnt work
I noticed that on the 3 next lines of that file there is the following:

# Set the default system $PATH:
PATH="/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:
/usr/local/apache/bin:/usr/local/pgsql/bin:/opt/mono/bin:/usr/local/pgsql/bin:."

I dont really know but smth looks wrong to me
Any ideas?

Really appreciate your replies

Manos
 
Old 01-18-2007, 12:27 PM   #9
merchtemeagle
Member
 
Registered: Oct 2004
Location: Belgium
Distribution: Slackware 13.37
Posts: 512

Rep: Reputation: 31
Put your addition below the other lines. Restart your shell and execute

Code:
echo $PATH
If you can see the path to your Java directory, you will also be able to run java, javac, etc.
 
Old 01-18-2007, 01:14 PM   #10
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
I don't see what relevance root's home directory has to your problem :/.

Have you tried adding the directory containing javac to your $PATH?

Edit: please don't double post in future.

Last edited by Nylex; 01-18-2007 at 01:19 PM.
 
Old 01-18-2007, 02:18 PM   #11
manolakis
Member
 
Registered: Nov 2006
Distribution: xubuntu
Posts: 422

Original Poster
Rep: Reputation: 31
Really really sorry
Finally i managed to make the system to recognize the compiler
Thanks really much for your reply
 
Old 01-19-2007, 02:07 AM   #12
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
I merged your two very closely related threads, and would
like to encourage you to keep things together, rather than
splitting our members efforts into two threads.



Cheers,
Tink
 
  


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
gcj javac instead of jdk javac rvindiola Linux - Newbie 2 03-29-2006 08:18 PM
"Problem with javac" manikantha Linux - General 3 03-23-2005 07:57 PM
J2sdk problem Javac command not found CollestonPie13 Linux - Software 3 02-15-2004 11:30 AM
javac linuxRules Linux - General 3 05-23-2002 07:45 AM
problem with javac command mekasrinu Programming 2 06-12-2001 07:45 PM


All times are GMT -5. The time now is 08:23 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration