flebber
Member

Posts: 29
|
 |
« on: June 17, 2011, 08:25:15 pm » |
|
I downloaded the latest jdk from oracle jdk1.6.0_26 I saved it to my user drive. I did chmod +x then ./jdk-6u26-linux-i586.bin # the install went okay i pressed enter to complete. Following this guide I set path and home http://www.cyberciti.biz/faq/linux-unix-set-java_home-path-variable/so my bash profile is # LOCALES ADDITIONS MADE BY THE VL GUI INSTALLER export LANG=en_US `setxkbmap -model pc104 -layout us` # END OF MODIFICATIONS BY THE VL GUI INSTALLER [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM func$ export JAVA_HOME=~/jdk1.6.0_26/bin/java export PATH=$PATH:~/jdk1.6.0_26/bin
But testing the path and java show it is clearly not working. vector:/~ flebber:$ echo $JAVA_HOME
vector:/~ flebber:$ echo $PATH /home/flebber/.rvm/gems/rbx-2.0pre/bin:/home/flebber/.rvm/gems/rbx-2.0pre@global/bin:/home/flebber/.rvm/rubies/rbx-2.0pre/bin:/home/flebber/.rvm/bin:/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/opt/bin:/usr/X11/bin:/usr/local/games:/usr/games:/opt/kde3/lib/qt3/bin:/opt/kde3/bin:/usr/lib/qt/bin vector:/~ flebber:$ which java which: no java in (/home/flebber/.rvm/gems/rbx-2.0pre/bin:/home/flebber/.rvm/gems/rbx-2.0pre@global/bin:/home/flebber/.rvm/rubies/rbx-2.0pre/bin:/home/flebber/.rvm/bin:/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/opt/bin:/usr/X11/bin:/usr/local/games:/usr/games:/opt/kde3/lib/qt3/bin:/opt/kde3/bin:/usr/lib/qt/bin) vector:/~
|
|
|
|
|
Logged
|
|
|
|
pierce.jason
Packager
Vectorite
   
Posts: 250
|
 |
« Reply #1 on: June 17, 2011, 10:05:04 pm » |
|
Question: Why did you install to your home directory instead of into /opt? This is the normal location for java.
Solution: You most likely did not log out and back in. bash profile is not automatically re-read when you run a command, it is sourced at login time. You can also re-read it manually by typeing ". .bash_profile"(note the space between periods) or "source .bash_profile"
|
|
|
|
|
Logged
|
pierce.jason Email: $(echo -e "moc\x2eliamg\x40nosaj.ecreip" | rev)
|
|
|
flebber
Member

Posts: 29
|
 |
« Reply #2 on: June 17, 2011, 10:40:38 pm » |
|
I just followed the oracle instructions they were simply download - chmod +x - ./ .
I did source .bash_profile and when that didn't work I logged in and out. Still no go.
|
|
|
|
|
Logged
|
|
|
|
The Headacher
Louder than you
Global Moderator
Vectorian
    
Posts: 1536
I like the bass to go BOOM!
|
 |
« Reply #3 on: June 18, 2011, 11:26:12 am » |
|
I got me the slackware package of jdk, and it seems to work just fine out of the box. To determine the slackware version your VL was built on: cat /etc/slackware-version Go to a slackware repository (for instance http://ftp://ftp.nluug.nl/pub/os/Linux/distr/slackware ), and find the directory matching your slackware version. Go there, then go to extra/jdk-6 subdir. download the .txz package, and install it with installpkg [path to package] Done!
|
|
|
|
|
Logged
|
|
|
|
flebber
Member

Posts: 29
|
 |
« Reply #4 on: June 18, 2011, 04:14:14 pm » |
|
Where exactly does installpkg, install the jdk. I followed your instructions and I am on 13.37. After installing I logged out and back in but "which java" still shows no java. vector:/~ flebber:$ which java which: no java in (/home/flebber/.rvm/gems/rbx-2.0pre/bin:/home/flebber/.rvm/gems/rbx-2.0pre@global/bin:/home/flebber/.rvm/rubies/rbx-2.0pre/bin:/home/flebber/.rvm/bin:/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/opt/bin:/usr/X11/bin:/usr/local/games:/usr/games:/usr/lib/java/bin:/usr/lib/java/jre/bin:/opt/kde3/lib/qt3/bin:/opt/kde3/bin:/usr/lib/qt/bin) vector:/~
EDIT: I tried using grep to find jdk. grep -r 'jdk' /* > ~/results.txt This however crashed my system and I had to turn it off at the power.
|
|
|
|
« Last Edit: June 18, 2011, 04:24:39 pm by flebber »
|
Logged
|
|
|
|
The Headacher
Louder than you
Global Moderator
Vectorian
    
Posts: 1536
I like the bass to go BOOM!
|
 |
« Reply #5 on: June 19, 2011, 03:58:34 am » |
|
On my system (also slack version 13.37) it was installed in /usr. whereis java java: /usr/lib/java
|
|
|
|
|
Logged
|
|
|
|
pierce.jason
Packager
Vectorite
   
Posts: 250
|
 |
« Reply #6 on: June 19, 2011, 08:41:14 pm » |
|
vl:$ grep "java$" /var/log/packages/* /var/log/packages/jre-6u6-i586-3:usr/lib/java/bin/java
What version of vectorlinux are you running? Is the jdk in the repos not new enough for your needs?
|
|
|
|
|
Logged
|
pierce.jason Email: $(echo -e "moc\x2eliamg\x40nosaj.ecreip" | rev)
|
|
|
flebber
Member

Posts: 29
|
 |
« Reply #7 on: June 20, 2011, 02:54:49 am » |
|
I am on vector 7 slack 13.37. The repo's didn't have any jdk in it. If there has been an update to the vector repo's recently I will have to re-check.
|
|
|
|
|
Logged
|
|
|
|
flebber
Member

Posts: 29
|
 |
« Reply #8 on: June 20, 2011, 04:22:33 am » |
|
Yeah double checked just now. There are more packages in the repository  but no jdk at the moment, still just jre.
|
|
|
|
|
Logged
|
|
|
|
|
|
flebber
Member

Posts: 29
|
 |
« Reply #10 on: June 20, 2011, 02:51:02 pm » |
|
Will give it a try. I need to fully reinstall vector7 though. I went through the process of installing mono/monodevelop and dependecies last night and it totally killed my vector install the desktop would not function at all. libgdata and consolekit were the dependencies at fault I think. Learnt my lesson wont be doing that again 
|
|
|
|
|
Logged
|
|
|
|
hata_ph
Packager
Vectorian
   
Posts: 2828
-- Just being myself --
|
 |
« Reply #11 on: June 20, 2011, 05:19:14 pm » |
|
Will give it a try. I need to fully reinstall vector7 though. I went through the process of installing mono/monodevelop and dependecies last night and it totally killed my vector install the desktop would not function at all. libgdata and consolekit were the dependencies at fault I think. Learnt my lesson wont be doing that again  Problem with mono/monodevelop?
|
|
|
|
|
Logged
|
|
|
|
flebber
Member

Posts: 29
|
 |
« Reply #12 on: June 20, 2011, 05:38:53 pm » |
|
Well think it was the dependencies required to install mono that caused the issues. It was either libgdata or consolekit which caused it. I actually lean think it was consolekit that wrecked the desktop settings.
|
|
|
|
|
Logged
|
|
|
|
hata_ph
Packager
Vectorian
   
Posts: 2828
-- Just being myself --
|
 |
« Reply #13 on: June 20, 2011, 05:41:19 pm » |
|
libgdata and consolekit is not a dependency for monodevelop...
|
|
|
|
|
Logged
|
|
|
|
flebber
Member

Posts: 29
|
 |
« Reply #14 on: June 20, 2011, 06:29:27 pm » |
|
They are not for monodevelop but they are for Mono. I built it (mono) using vpackager and builds failed unless gnome-sharp was installed. Gnome sharp required libgdata and consolekit as dependecies from gslapt.
|
|
|
|
« Last Edit: June 20, 2011, 06:32:39 pm by flebber »
|
Logged
|
|
|
|
|