LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   It can't see JDK (Slackware64 13) (https://www.linuxquestions.org/questions/slackware-14/it-cant-see-jdk-slackware64-13-a-785481/)

portia 01-28-2010 07:46 PM

It can't see JDK (Slackware64 13)
 
I get an error while installing go_office from slackbuilds:

Code:

checking whether to build with Java support... yes
checking for java... no
checking the installed JDK... configure: error: JAVA not found. You need at least jdk-1.5, or gcj-4
make: *** [stamp/build] Error 1

As far as I can see I've got the latest JDK from /extra.
I'm running Slackware64 13.

Code:

bash-3.1$ ls /var/log/packages | grep jdk
jdk-6u16-x86_64-1


I'd be grateful for any help.

koenigdavidmj 01-28-2010 07:58 PM

It looks like you are running in a non-login shell (or you just like REALLY boring prompt strings). Try saying 'source /etc/profile' before running the SlackBuild.

Good luck!

portia 01-29-2010 02:47 AM

Excellent.
I did two things:
1. source /etc/profile
2. Installed seamonkey2 from /patches

It works now. Thanks

How can I source the profile automatically? I guess I'd have to copy the stuff from it to ~/.bashrc?

btw, sourcing profile did not help on my laptop with slackware64-current - still says no jdk.

arubin 01-29-2010 02:56 AM

Looking at that prompt I wonder if your problem is connected to this issue.

http://www.linuxquestions.org/questi...10#post3663810

Quote:

If you want to change this behavior of konsole go to "Settings->Manage Profiles->Edit Profile" with the profile "Shell" selected change the command from "/bin/bash" to "/bin/bash -l" to force a login shell. When I looked my Slackware 12 worked the same as 13 in this respect. Running konsole from the menu adds the "-l" to the command line so a login shell appears.

portia 01-29-2010 03:08 AM

Actually, it worked on the 64-current as well.


All times are GMT -5. The time now is 11:33 PM.