LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 12-09-2014, 02:21 PM   #1
captainfreeky
LQ Newbie
 
Registered: Jun 2014
Distribution: Slackware 14.1 FreeBSD10.2
Posts: 15

Rep: Reputation: 2
Question Java Installation Step by step ?


Can any one help with step by step installation of java as searched online seen some tuts and video but not able to install it wanted java latest one to be installed can some one help with proper steps plz
 
Old 12-09-2014, 03:01 PM   #2
drmozes
Slackware Contributor
 
Registered: Apr 2008
Location: Surrey, England
Distribution: Slackware
Posts: 719

Rep: Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555
Quote:
Originally Posted by captainfreeky View Post
Can any one help with step by step installation of java as searched online seen some tuts and video but not able to install it wanted java latest one to be installed can some one help with proper steps plz
OpenJDK was added to SlackwareARM 14.0 in the 'patches/packages' directory but was dropped because OpenJDK does not build on armv5 machines (which are used to maintain stable releases).

So unless someone else is providing packages, there aren't any.
 
Old 12-09-2014, 04:41 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2018 CentOS6.10 CentOS7.5 + 50+ other Linux OS, for test only.
Posts: 17,105

Rep: Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489
Latest is "java 8 for ARM v6/v7"
http://www.oracle.com/technetwork/ja...s-2187472.html

Java 7 for ARM v6/v7
http://www.oracle.com/technetwork/ja...s-2187468.html
 
Old 12-09-2014, 10:46 PM   #4
captainfreeky
LQ Newbie
 
Registered: Jun 2014
Distribution: Slackware 14.1 FreeBSD10.2
Posts: 15

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by knudfl View Post
Yea i have seen i i tried googling as few website(unixman) indictae how to install it but no luck so i wanted to have a step by step procedure so not only me who are finding difficult can get it ease to work
 
Old 12-10-2014, 01:45 AM   #5
drmozes
Slackware Contributor
 
Registered: Apr 2008
Location: Surrey, England
Distribution: Slackware
Posts: 719

Rep: Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555
Quote:
Originally Posted by captainfreeky View Post
Yea i have seen i i tried googling as few website(unixman) indictae how to install it but no luck so i wanted to have a step by step procedure so not only me who are finding difficult can get it ease to work

You need Java 7 because Java 8 is for a hard float OS:
http://www.oracle.com/technetwork/ja...s-2187468.html

The process is simply this:

1. Download the archive and put the ~60MB file into /tmp

2. Download the Slackware build script for the Java binary package and build the package:

Code:
cd /tmp
mkdir java; cd java
rsync -Pavv ftp.slackware.org.uk::slackware/slackware64-current/extra/java/ .
./java.SlackBuild /tmp/jdk-7u60-linux-arm-vfp-sflt.tar.gz
Rename the package, since the build script has i586 hard coded:
Code:
mv -fv /tmp/jdk*586*z $( echo /tmp/*jdk*586*z | sed 's?i586?arm?g' )
3. Install the package:
Code:
installpkg /tmp/jdk*arm-[0-9]*.txz
4. Logout/close shell and re-open (or just source the profile script)

5. Launch Java

Code:
root@pepa:~# java 2>&1| head -n3
Usage: java [-options] class [args...]
           (to execute a class)
   or  java [-options] -jar jarfile [args...]
I don't have any Java stuff to run, but it most likely works fine.


Packages of the Oracle binaries cannot be supplied in Slackware since we don't have the licence.

Last edited by drmozes; 12-10-2014 at 02:11 AM.
 
3 members found this post helpful.
Old 06-23-2015, 11:53 AM   #6
Zabeille
LQ Newbie
 
Registered: Jun 2015
Location: Isère, France
Distribution: Slackware 14.0 32 bits, Slackware 14.1 arm
Posts: 6

Rep: Reputation: Disabled
Have I miss something ? It didn't work on my pi 2, I've change "rsync -Pavv ftp.slackware.org.uk::slackware/slackware64-current/extra/java/ ." by "rsync -Pavv ftp.slackware.org.uk::slackware/slackware64-14.1/extra/java/ ." according with my version. java is in my PATH but when I try to start minecraft or even just double clic on the java icon it is said that 'java' this file dosen't exist. I've tried some other Oracle product for arm or for linux embedded by just unpacking the tar.gz and I get the same error or even nothing happens. Thanks for any help.
 
Old 06-23-2015, 12:39 PM   #7
drmozes
Slackware Contributor
 
Registered: Apr 2008
Location: Surrey, England
Distribution: Slackware
Posts: 719

Rep: Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555
Quote:
Originally Posted by Zabeille View Post
Have I miss something ? It didn't work on my pi 2, I've change "rsync -Pavv ftp.slackware.org.uk::slackware/slackware64-current/extra/java/ ." by "rsync -Pavv ftp.slackware.org.uk::slackware/slackware64-14.1/extra/java/ ." according with my version. java is in my PATH but when I try to start minecraft or even just double clic on the java icon it is said that 'java' this file dosen't exist. I've tried some other Oracle product for arm or for linux embedded by just unpacking the tar.gz and I get the same error or even nothing happens. Thanks for any help.
What is the output of
Code:
readelf -h $(which java)
?
 
Old 06-23-2015, 05:09 PM   #8
Zabeille
LQ Newbie
 
Registered: Jun 2015
Location: Isère, France
Distribution: Slackware 14.0 32 bits, Slackware 14.1 arm
Posts: 6

Rep: Reputation: Disabled
Nice, I wasn't expecting an answer so fast.
Code:
root@slackraspyann:/# readelf -h
readelf: AVERTISSEMENT: Rien  faire.
In english something like : readelf: WARNING: Nothing to do.
And I don't know nothing about elf, right now I get lost in the 1084 lines of the 'man elf' command so I'm going to bed and I'll google it tomorrow.
Thanks doc to care about my rasp.

Last edited by Zabeille; 06-23-2015 at 05:22 PM.
 
Old 06-23-2015, 05:50 PM   #9
drmozes
Slackware Contributor
 
Registered: Apr 2008
Location: Surrey, England
Distribution: Slackware
Posts: 719

Rep: Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555
Quote:
Originally Posted by Zabeille View Post
Nice, I wasn't expecting an answer so fast.
Code:
root@slackraspyann:/# readelf -h
readelf: AVERTISSEMENT: Rien  faire.
Paste into the shell what I wrote, not one piece of it.

readelf -h $(which java)
 
Old 06-24-2015, 04:58 AM   #10
Zabeille
LQ Newbie
 
Registered: Jun 2015
Location: Isère, France
Distribution: Slackware 14.0 32 bits, Slackware 14.1 arm
Posts: 6

Rep: Reputation: Disabled
wow, sorry about that, it was late for me last night, so :
Code:
bash-4.2# readelf -h $(which java)
which: no java in (/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin)
readelf: AVERTISSEMENT: Rien  faire.
The package is only installed in /usr/lib/java/ , isn't it ?
and this is what I obtain when I'm logged on my session :
Code:
bash-4.2$ readelf -h $(which java)
En-tte ELF:
  Magique:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00 
  Classe:                            ELF32
  Donnes:                          complment  2, systme  octets de poids faible d'abord (little endian)
  Version:                           1 (current)
  OS/ABI:                            UNIX - System V
  Version ABI:                       0
  Type:                              EXEC (fichier excutable)
  Machine:                           ARM
  Version:                           0x1
  Adresse du point d'entre:         0x8470
  Dbut des en-ttes de programme:   52 (octets dans le fichier)
  Dbut des en-ttes de section:          2368 (octets dans le fichier)
  Fanions:                           0x5000002, has entry point, Version5 EABI
  Taille de cet en-tte:             52 (bytes)
  Taille de l'en-tte du programme:  32 (bytes)
  Nombre d'en-tte du programme:     8
  Taille des en-ttes de section:    40 (bytes)
  Nombre d'en-ttes de section:      31
  Table d'indexes des chanes d'en-tte de section: 28

Last edited by Zabeille; 06-24-2015 at 08:02 AM.
 
Old 06-24-2015, 05:27 PM   #11
drmozes
Slackware Contributor
 
Registered: Apr 2008
Location: Surrey, England
Distribution: Slackware
Posts: 719

Rep: Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555
[QUOTE=Zabeille;5382155]wow, sorry about that, it was late for me last night, so :
Code:
bash-4.2# readelf -h $(which java)
which: no java in (/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin)
readelf: AVERTISSEMENT: Rien  faire.
OK so then java is *not* in your $PATH which'd be why it does not work.
The profile scripts in the package's /etc/profile.d directory add /usr/lib/java to $PATH so my guess is that your shell isn't running them for some reason. If you do bash -l (calls bash as a login shell, which'd execute the profile scripts) then it should work.
 
Old 06-25-2015, 04:44 PM   #12
Zabeille
LQ Newbie
 
Registered: Jun 2015
Location: Isère, France
Distribution: Slackware 14.0 32 bits, Slackware 14.1 arm
Posts: 6

Rep: Reputation: Disabled
sorry :
Code:
bash-4.2$ bash -l java
/usr/lib/java/bin/java: /usr/lib/java/bin/java : fichier binaire impossible à lancer
which means 'binary file impossible to launch'
and same for root-logged. Could it be because of my version of Slackware, 14.1 ? Or maybe the one of my raspberry pi, 2 ?
 
Old 06-26-2015, 03:03 AM   #13
drmozes
Slackware Contributor
 
Registered: Apr 2008
Location: Surrey, England
Distribution: Slackware
Posts: 719

Rep: Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555
Quote:
Originally Posted by Zabeille View Post
sorry :
Code:
bash-4.2$ bash -l java
/usr/lib/java/bin/java: /usr/lib/java/bin/java : fichier binaire impossible à lancer
which means 'binary file impossible to launch'
and same for root-logged. Could it be because of my version of Slackware, 14.1 ? Or maybe the one of my raspberry pi, 2 ?
You've probably downloaded the 'hard float' version of it.

http://www.oracle.com/technetwork/ja...s-2187468.html
Linux ARM v6/v7 Soft Float ABI 9.73 MB jdk-7u60-linux-arm-vfp-sflt-demos.tar.gz

Use the bottom one.
 
Old 06-27-2015, 12:27 PM   #14
Zabeille
LQ Newbie
 
Registered: Jun 2015
Location: Isère, France
Distribution: Slackware 14.0 32 bits, Slackware 14.1 arm
Posts: 6

Rep: Reputation: Disabled
Yes, you did it doc, java works great now, thanks a lot.
Now I have to make minecraft work on arm.
Bye
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Kubuntu 6.10 (Edgy Eft) Step By Step Installation with Screenshots LXer Syndicated Linux News 0 12-21-2006 03:54 PM
Step by step guide to Pent@value DVB card installation in linux rajib_tol Linux - Server 0 08-21-2006 04:08 AM
Step by Step guied for Installation pent@net Dvb card under linux mobassir Linux - Networking 4 06-07-2006 08:31 PM
extremely detailed step by step instructions wanted for nvdia driver installation!!! saquib Linux - Hardware 1 03-09-2006 02:21 AM
step by step installation of java zexter Linux - Software 4 12-07-2003 02:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 12:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration