LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 10-13-2005, 08:52 AM   #1
crash_override_me
Member
 
Registered: Aug 2005
Location: India, New Delhi
Distribution: Debian Etch, Ubuntu
Posts: 342

Rep: Reputation: 30
Lightbulb jdk not working


hi guys,

i tried exporting the path of my jdk/bin to /etc/profile...., but it does'nt seem to work out.
i have installed the jdk in my home directory, cause i am the sole user of my machine......

is it necessary to install jdk in some global directory like /usr or /usr/local ????

Please Help!!
 
Old 10-13-2005, 10:08 AM   #2
Valhalla
Member
 
Registered: Nov 2004
Location: Atlanta
Distribution: Gentoo 2005.1, Ubuntu 5.10
Posts: 267

Rep: Reputation: 30
generally, I think the variable you want to alter is $CLASSPATH, although I'm not sure. This should point to wherever your system classes are. You probably also want to add the location of you java executables (java, javac, javap, etc.) to your path as well. If you are the only user of your machine, then there is no harm in you installing the jdk globally, and generally things like java are considered system resources.
 
Old 10-18-2005, 03:19 AM   #3
juby
Member
 
Registered: Dec 2002
Location: Bangalore, India
Distribution: Ubuntu 5.*
Posts: 241

Rep: Reputation: 30
#vi ~/.bash_profile


add these lines

--------------------
JAVA_HOME=~/<your java dir>
CLASSPATH=<add ur classpath here>
PATH=$PATH:$JAVA_HOME/bin

export JAVA_HOME
export CLASSPATH
export PATH
---------------------

execute thsi cmd from terminal

# source ~/.bash_profile

that should fix it
 
Old 10-18-2005, 12:35 PM   #4
juby
Member
 
Registered: Dec 2002
Location: Bangalore, India
Distribution: Ubuntu 5.*
Posts: 241

Rep: Reputation: 30
Ubuntu is bit funny abt bash_profile, i found taht we have to edit

/etc/bash.bashrc

and theres no point in editing ~/.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
jdk 5.0 not working in Ubuntu crash_override_me Ubuntu 5 09-08-2005 12:13 PM
how to use JDK in linux Manoj Walia Linux - Software 3 04-08-2005 04:22 AM
JDK installation pogopogo Linux - Software 2 10-19-2004 12:39 AM
jdk 1.3.1_06 not working in mandrake 9.2 zho40 Linux - Software 4 12-15-2003 12:09 PM
how to use Jdk 1.3.1 in RH 9 Egyptian_Isis Linux - Newbie 1 11-06-2003 04:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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