You are not logged in.

#1 2009-02-26 18:36:51

proxima_centauri
Member
From: Nova Scotia, Canada
Registered: 2008-07-17
Posts: 117
Website

<solved>jre, jdk, run java?

Hello,
x86_64
I've been using openjdk6 for my intro programming class. Decided to install jre, jdk instead, along with BlueJ from AUR.
How can I use java from the CL, there is no java/javac command anymore, I see the commands are installed in /opt/java/bin (or something like that, dont remember of the top of my head.) but it seems odd to have to call that everytime I want to use java.
Is there something I am missing here??

Last edited by proxima_centauri (2009-02-26 18:50:19)


Thinkpad T61p - 15.4' WSXGA TFT - 2.5Ghz Intel Core2 Duo T9300 - 2X2GB Kingston RAM - 160GB 7200RPM - NVIDIA Quadro FX 570m - Intel 4965AGN

Offline

#2 2009-02-26 18:38:56

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: <solved>jre, jdk, run java?

There's an /etc/profile.d/ script to set up this path for bash. It should be used automatically.

Offline

#3 2009-02-26 18:44:40

proxima_centauri
Member
From: Nova Scotia, Canada
Registered: 2008-07-17
Posts: 117
Website

Re: <solved>jre, jdk, run java?

Ok, I reinstalled jre, jdk, and I see jre.sh and jdk.sh in /etc/profile.d/
I tried running them, would "sudo sh jre.sh" be correct?
nothing happened after I tryed that and sudo sh jdk.sh...


Thinkpad T61p - 15.4' WSXGA TFT - 2.5Ghz Intel Core2 Duo T9300 - 2X2GB Kingston RAM - 160GB 7200RPM - NVIDIA Quadro FX 570m - Intel 4965AGN

Offline

#4 2009-02-26 18:50:02

proxima_centauri
Member
From: Nova Scotia, Canada
Registered: 2008-07-17
Posts: 117
Website

Re: <solved>jre, jdk, run java?

Doh!!!
Found the solution here
http://bbs.archlinux.org/viewtopic.php?pid=222946

Needed to restart X or source /etc/profile.


Thinkpad T61p - 15.4' WSXGA TFT - 2.5Ghz Intel Core2 Duo T9300 - 2X2GB Kingston RAM - 160GB 7200RPM - NVIDIA Quadro FX 570m - Intel 4965AGN

Offline

Board footer

Powered by FluxBB