LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-07-2001, 11:18 PM   #1
mekasrinu
LQ Newbie
 
Registered: Jun 2001
Posts: 1

Rep: Reputation: 0
Question


Hi,
I installed jdk1.3.1 on my slackware linux in the directory /root/jdk1.3.1. The problem is to run the javac I am forced to go to /root/jdk1.3.1/bin and execute the command as ./javac instead of directly giving javac. If I give javac at the command prompt it is giving the following error:
can't find libjava.so.
One more question is how can I run the java and java from any other directory.

Any one please help me.

Thanks and Regards,
Srinivas.M

My mail id is m.srinivas@cybertech.co.in
 
Old 06-08-2001, 12:37 PM   #2
UsurpiorHarbour
LQ Newbie
 
Registered: May 2001
Posts: 8

Rep: Reputation: 0
You have to have /root/jdk1.3.1/bin in your path in order for you to execute any files in that directory else where in your system. I think that it will also fix the other problem but I am not 100% sure about that befcause I never used JDK in linux before.
 
Old 06-12-2001, 07:45 PM   #3
doodah
Member
 
Registered: Apr 2001
Location: Columbus,OH
Distribution: slackware
Posts: 122

Rep: Reputation: 15
you may want to uninstall the JDK and reinstall it in somthing like

/usr/local/JDK

that way it will already be in the path.. and all the libs should be too.. cuz the libjava.so error is cuz its not in any of the libspath...

if you keep everything in /root... other users wont be able to access it...
 
  


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
bash: javac: command not found??? MRAB54 Linux - Newbie 6 02-18-2015 08:18 AM
"Problem with javac" manikantha Linux - General 3 03-23-2005 07:57 PM
can't find java or javac with which command in slack 10.1 but j2re is installed dns21 Slackware 2 02-12-2005 07:51 PM
-bash-- javac command not found nedian123 Programming 1 06-28-2004 04:16 PM
J2sdk problem Javac command not found CollestonPie13 Linux - Software 3 02-15-2004 11:30 AM

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

All times are GMT -5. The time now is 06:27 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