You are not logged in.

#1 2011-09-02 23:19:27

Brandon_R
Member
Registered: 2011-08-22
Posts: 36

[Solved] Need help cannot find java

Hey guys i just installed aptana through Yaourt and it installed the stuff but i think it forgot to add java to the system path. How do i add it to the system path?

Last edited by Brandon_R (2011-09-03 00:19:25)

Offline

#2 2011-09-02 23:25:34

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,543

Re: [Solved] Need help cannot find java

Did you log out and log back in?  The code that actually runs is in

/etc/profile.d/jre.sh

Offline

#3 2011-09-02 23:29:07

oboedad55
Member
From: Baku
Registered: 2011-04-05
Posts: 392

Re: [Solved] Need help cannot find java

Did you install jre and jdk? The Oracle version is available through AUR, otherwise openjdk you can get from the repos.


Registered Linux user #436067

Offline

#4 2011-09-02 23:30:35

Brandon_R
Member
Registered: 2011-08-22
Posts: 36

Re: [Solved] Need help cannot find java

skunktrader wrote:

Did you log out and log back in?  The code that actually runs is in

/etc/profile.d/jre.sh

Thanks. Logging in and out again fixed this. smile

Offline

#5 2011-09-02 23:39:43

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: [Solved] Need help cannot find java

Mark as solved please.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#6 2011-09-04 21:11:35

jjagot
Member
Registered: 2011-09-04
Posts: 7

Re: [Solved] Need help cannot find java

Hi, I've also installed the jdk and jre (7-3) from AUR using yaourt, and have loggedout and restarted, but java and javac don't seem to be working.  The newly created menu entry for Java VisualVM fails to load.  Any ideas?

Offline

#7 2011-09-04 21:22:39

Brandon_R
Member
Registered: 2011-08-22
Posts: 36

Re: [Solved] Need help cannot find java

Do you use chromium ? if so go to http://java.com/en/download/testjava.jsp and see if it works?

When my installation was giving trouble ie before i restarted when i visited that page Java worked but the java vm app did not.

Offline

#8 2011-09-04 21:33:35

jjagot
Member
Registered: 2011-09-04
Posts: 7

Re: [Solved] Need help cannot find java

Hi, yes, that page does seem to work in chromium.  When I try to call java or javac from the command line, the commands are not recognised though, so I don't think the install has worked properly.  Any idea how I can make this work at all?

Offline

#9 2011-09-04 23:03:34

jjagot
Member
Registered: 2011-09-04
Posts: 7

Re: [Solved] Need help cannot find java

I've just worked out from research that my issue is related to lightdm - it seems to have destroyed all my paths.  Running without itfor now whilst I work out what the problem is, but otherwise, I can assume that the JDK and JRE packages from AUR are in fact working fine for me.

Offline

#10 2011-09-05 03:44:39

oboedad55
Member
From: Baku
Registered: 2011-04-05
Posts: 392

Re: [Solved] Need help cannot find java

In the FWIW department\, I had problems with jre 7 and instead use version 6, release 27.


Registered Linux user #436067

Offline

Board footer

Powered by FluxBB