VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Pages: [1] 2

Author Topic: Installed Jdk but errors.  (Read 4150 times)

flebber

  • Member
  • *
  • Posts: 29
Installed Jdk but errors.
« on: June 17, 2011, 09: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

Code: [Select]
# 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.

Code: [Select]
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
Re: Installed Jdk but errors.
« Reply #1 on: June 17, 2011, 11: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
Re: Installed Jdk but errors.
« Reply #2 on: June 17, 2011, 11: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: 1553
  • I like the bass to go BOOM!
    • Multimedia on VL (work in progress)
Re: Installed Jdk but errors.
« Reply #3 on: June 18, 2011, 12:26:12 pm »

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:
Code: [Select]
cat /etc/slackware-version
Go to a slackware repository (for instance 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
Code: [Select]
installpkg [path to package]
Done!
Logged
Most music on my soundcloud page was arranged in programs running on VL.

flebber

  • Member
  • *
  • Posts: 29
Re: Installed Jdk but errors.
« Reply #4 on: June 18, 2011, 05: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.

Code: [Select]
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.
Code: [Select]
grep -r 'jdk' /* > ~/results.txtThis however crashed my system and I had to turn it off at the power.
« Last Edit: June 18, 2011, 05:24:39 pm by flebber »
Logged

The Headacher

  • Louder than you
  • Global Moderator
  • Vectorian
  • *****
  • Posts: 1553
  • I like the bass to go BOOM!
    • Multimedia on VL (work in progress)
Re: Installed Jdk but errors.
« Reply #5 on: June 19, 2011, 04:58:34 am »

On my system (also slack version 13.37) it was installed in /usr.
Code: [Select]
whereis java
java: /usr/lib/java
Logged
Most music on my soundcloud page was arranged in programs running on VL.

pierce.jason

  • Packager
  • Vectorite
  • ****
  • Posts: 250
Re: Installed Jdk but errors.
« Reply #6 on: June 19, 2011, 09:41:14 pm »

Code: [Select]
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
Re: Installed Jdk but errors.
« Reply #7 on: June 20, 2011, 03: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
Re: Installed Jdk but errors.
« Reply #8 on: June 20, 2011, 05:22:33 am »

Yeah double checked just now. There are more packages in the repository  ;D but no jdk at the moment, still just jre.
Logged

stretchedthin

  • Administrator
  • Vectorian
  • *****
  • Posts: 3780
    • Opensourcebistro.com
Re: Installed Jdk but errors.
« Reply #9 on: June 20, 2011, 08:19:51 am »

enable extra and testing in gslapt. Edit>>Preferences>>Sources>>Check the boxes you want enabled.
You should find JDK then.
http://vectorlinux.osuosl.org/veclinux-7.0/testing/l/jdk-6u24-i586-1vl70.txz
Just showing the url to give you confidence it is there, but install through GSlapt, so if there is dependencies required they will be taken care of.
Logged
Vectorlinux screencasts and  tutorials can be found at....
http://www.opensourcebistro.com/blog1
http://www.youtube.com/user/vid4ken?feature=mhee

flebber

  • Member
  • *
  • Posts: 29
Re: Installed Jdk but errors.
« Reply #10 on: June 20, 2011, 03: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: 3261
  • -- Just being myself --
Re: Installed Jdk but errors.
« Reply #11 on: June 20, 2011, 06: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
Re: Installed Jdk but errors.
« Reply #12 on: June 20, 2011, 06: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: 3261
  • -- Just being myself --
Re: Installed Jdk but errors.
« Reply #13 on: June 20, 2011, 06:41:19 pm »

libgdata and consolekit is not a dependency for monodevelop...
Logged

flebber

  • Member
  • *
  • Posts: 29
Re: Installed Jdk but errors.
« Reply #14 on: June 20, 2011, 07: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, 07:32:39 pm by flebber »
Logged
Pages: [1] 2