LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - ARM (https://www.linuxquestions.org/questions/slackware-arm-108/)
-   -   Java(TM) JDK for Slackware ARM -current (https://www.linuxquestions.org/questions/slackware-arm-108/java-tm-jdk-for-slackware-arm-current-4175622974/)

Exaga 02-02-2018 06:25 PM

Java(TM) JDK for Slackware ARM -current
 
Consider this package [experimental] for the time being, at least. I've tested it on command line as much as I'm happy that it's installing Java and seems to be functioning as expected. It compiles OK. It runs the Java code OK. I haven't found any problems with it thus far.

However, I have not tested it in a desktop environment. I'm hoping some of you Java gurus can apprise me of any results regarding that. Any feedback will be very much appreciated. :cool:

http://sarpi.co.uk/files/pkg/jdk-8u1...urrent_sp1.txz
http://sarpi.co.uk/files/pkg/jdk-8u1...urrent_sp1.md5

NB: Java 8 is hard float ABI only. So, ONLY install this package on Slackware ARM -current!

sndwvs 02-03-2018 06:39 AM

clean

Exaga 02-03-2018 07:15 AM

Quote:

Originally Posted by sndwvs (Post 5815170)
the script for assembling arm aarch64 has been changed

Errr... OK? Did you post in the wrong thread by accident or am I missing something here? :D

sndwvs 02-03-2018 07:33 AM

I just added an additional option + the ability for users to build the package

Exaga 02-03-2018 08:30 AM

Quote:

Originally Posted by sndwvs (Post 5815191)
I just added an additional option + the ability for users to build the package

Then would you mind starting a thread of your own for promoting whatever work you're doing or have done, instead of jumping on the back of mine? What you call an additional option is quite superfluous and in contrast to what I'm trying to achieve. I don't want people getting confused between your shizzle and my shizzle. Next thing you know, I'll be getting support questions or feedback about your JDK when it has sweet FA to do with me!

I've built this JDK myself using a script I wrote myself and I'm asking users to test it for me. Why would I be interested in the JDK you have built?

sndwvs 02-03-2018 08:33 AM

ok, understood

abga 02-03-2018 05:20 PM

Exaga, thanks for the update! I'm a Java "consumer" and was wondering if your JDK is different / better optimized in comparison with the official Oracle binary packages:
http://www.oracle.com/technetwork/ja...s-2133151.html
Linux ARM 32 Hard Float ABI 77.92 MB jdk-8u161-linux-arm32-vfp-hflt.tar.gz
Linux ARM 64 Hard Float ABI 74.88 MB jdk-8u161-linux-arm64-vfp-hflt.tar.gz

Exaga 02-04-2018 01:49 AM

Quote:

Originally Posted by abga (Post 5815447)
Exaga, thanks for the update! I'm a Java "consumer" and was wondering if your JDK is different / better optimized in comparison with the official Oracle binary packages:

If I understand your question correctly then, the answer is "No." Obviously, the software has been compiled for Slackware ARM hard float port, but other than that there's no specific or notable difference(s).

I needed to compile some Java shizzle and went looking for a Slackware ARM JDK package. Only to find there wasn't one, or at least Google wasn't helpful in finding one for me. So, I did a bit of D.I.Y.

It seemed to work fine so I thought it might be useful to share it with Joe Public, but only if it's working 100%. Hence my request for some assistance in testing it.

abga 02-04-2018 03:46 PM

Quote:

Originally Posted by Exaga (Post 5815544)
If I understand your question correctly then, the answer is "No." Obviously, the software has been compiled for Slackware ARM hard float port, but other than that there's no specific or notable difference(s).

The oracle binary was compiled for compatibility and not necessarily optimized, it uses the armv6 arch, thumb-1 and not the best VFP version. I thought yours, being built on Slackware ARM -current, whose compiler defaults on armv7, thumb-2 and VFPv3-D16 will be better, but apparently it's the same with the one from oracle:

Code:

# readelf -A /kit/java-compare/exaga/java/bin/java
Attribute Section: aeabi
File Attributes
  Tag_CPU_name: "6"
  Tag_CPU_arch: v6
  Tag_THUMB_ISA_use: Thumb-1
  Tag_FP_arch: VFPv2
  Tag_ABI_VFP_args: VFP registers

Code:

# readelf -A /kit/java-compare/oracle/java/bin/java
Attribute Section: aeabi
File Attributes
  Tag_CPU_name: "6"
  Tag_CPU_arch: v6
  Tag_THUMB_ISA_use: Thumb-1
  Tag_FP_arch: VFPv2
  Tag_ABI_VFP_args: VFP registers

I'm wondering, have you compiled it on your own? Or just took the binaries from oracle and packed them into a Slackware package?

This is how a binary is compiled by default on Slackware ARM -current:
Code:

# readelf -A /usr/bin/openssl
Attribute Section: aeabi
File Attributes
  Tag_CPU_name: "7-A"
  Tag_CPU_arch: v7
  Tag_THUMB_ISA_use: Thumb-2
  Tag_FP_arch: VFPv3-D16
  Tag_ABI_VFP_args: VFP registers


abga 02-04-2018 04:48 PM

I'm always forgetting about the differences between Java JDK (Oracle) and OpenJDK, but at least the SlackBuild is using the wording correctly repackage instead of building:
"This is a SlackBuild that will repackage Oracle Java into a package that
can be easily installed, upgraded, or removed using Slackware's native
package management tools."
https://slackbuilds.org/repository/1...velopment/jdk/

And the "source code" - src.zip is not useful for recompiling the Java JDK (Oracle):
"These files do not include platform-specific implementation code and cannot be used to rebuild the class libraries."
http://www.oracle.com/technetwork/ja....html#contents

@Exaga - your Oracle JDK (re)package should work, I can't see why it shouldn't, and I just removed the one I had (taken directly from Oracle) and put yours in place. Should I notice some weird things, I'll report.

Just for the record, this is how I manually download, unpack (I put it in /opt) and use the Oracle JDK under Slackware ARM -current (excerpt from my notes):
cd /opt
http://www.oracle.com/technetwork/ja...s-2133151.html
wget http://download.oracle.com/otn-pub/j...fp-hflt.tar.gz
tar -xzpf jdk-8u161-linux-arm32-vfp-hflt.tar.gz
mv jdk1.8.0_144/ java/

-create:
/etc/profile.d/jdk.sh
- with the following content:
#!/bin/sh
export PATH="$PATH:/opt/java/bin"
export JAVA_HOME="/opt/java/"
- then make it executable:
chmod +x /etc/profile.d/jdk.sh

Exaga 02-05-2018 02:15 AM

Quote:

Originally Posted by abga (Post 5815794)
I'm wondering, have you compiled it on your own? Or just took the binaries from oracle and packed them into a Slackware package?

You've gone to considerable lengths to determine the status and nature of this package. Why ask a question when it's obvious that you already know the answer?

Quote:

Originally Posted by abga (Post 5815813)
@Exaga - your Oracle JDK (re)package should work, I can't see why it shouldn't, and I just removed the one I had (taken directly from Oracle) and put yours in place. Should I notice some weird things, I'll report.

This is ALL I'm asking for! GEEZ! I'm not asking for anything more. No opinions, no investigations into how the '(re)package' was created, no lessons on compiling for Slackware ARM, or anything more than;

"Does it ******* work or not???". :banghead:

stormtracknole 02-05-2018 07:29 AM

Hi Exaga,

Quick question, did you write a new SBo or did you modify the original one from -current? Just curious. I was building one using a modified SBo (I renamed the 586 portion to arm). By building, I'm obviously referring to repackaging the file from Oracle. Thank you for taking the initiative to create this file.

abga 02-06-2018 01:19 AM

Quote:

Originally Posted by Exaga (Post 5815933)
You've gone to considerable lengths to determine the status and nature of this package. Why ask a question when it's obvious that you already know the answer?

Actually I got both happy and confused about your statements, first I thought you have managed to build it with optimal ARM instructions for ARMv7 HardFloat and then asked myself how, because your first answer was also confusing. It's only afterwards that I realized that you were repacking the Oracle JDK (you've also forgot to mention that).

Quote:

This is ALL I'm asking for! GEEZ! I'm not asking for anything more. No opinions, no investigations into how the '(re)package' was created, no lessons on compiling for Slackware ARM, or anything more than;

"Does it ******* work or not???". :banghead:
And you've got now a "beta tester" confirmed. Careful with that wall ;)

Exaga 02-06-2018 08:05 AM

Quote:

Originally Posted by abga (Post 5816292)
It's only afterwards that I realized that you were repacking the Oracle JDK (you've also forgot to mention that).

Congratulations. You eventually got something right (for a change). I forgot to mention that. It must be a milestone for you.

Quote:

Originally Posted by abga (Post 5816292)
And you've got now a "beta tester" confirmed. Careful with that wall ;)

Then I need to inform you, you're fired. The only thing you've successfully tested is my patience.

Jog on.

jeremy 02-06-2018 05:21 PM

A reminder that LQ aims to be welcoming to all, and personal attacks on others will not be tolerated.

--jeremy


All times are GMT -5. The time now is 06:17 AM.