elective-stereophonic
elective-stereophonic
[CORE] Get ready for Java 8  
Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Stable Nxt Client: Nxt 1.12.2

Pages: [1] 2 3  All

Author Topic: [CORE] Get ready for Java 8  (Read 10031 times)

ChuckOne

  • Hero Member
  • *****
  • Karma: +293/-17
  • Offline Offline
  • Posts: 3450
  • ☕ NXT-4BTE-8Y4K-CDS2-6TB82
    • View Profile
[CORE] Get ready for Java 8
« on: March 23, 2015, 04:45:51 pm »

Hi folks,

as the new release 1.5.0e slowly approaches, you need to get ready for Java 8 by the time we upgrade to the 1.5.x series.

I can imagine some folks of you need more time to get this ready and test your environment well; thus this announcement.

Cheers,
Chuck
« Last Edit: March 23, 2015, 06:15:46 pm by ChuckOne »
Logged

box1413

  • Hero Member
  • *****
  • Karma: +101/-4
  • Offline Offline
  • Posts: 687
    • View Profile
Re: [CORE] Get ready for Java 8.0
« Reply #1 on: March 23, 2015, 04:55:22 pm »

so what happens if we dont have java 8 and we try to run 1.5?
Logged

msin

  • Hero Member
  • *****
  • Karma: +138/-18
  • Offline Offline
  • Posts: 1288
    • View Profile
Re: [CORE] Get ready for Java 8.0
« Reply #2 on: March 23, 2015, 05:21:04 pm »

so what happens if we dont have java 8 and we try to run 1.5?

Computer screen explodes.
Logged

capodieci

  • Hero Member
  • *****
  • Karma: +256/-19
  • Offline Offline
  • Posts: 1360
  • BlockchainZoo.com
    • View Profile
    • ZooBC - Advancing Blockchain Technology
Re: [CORE] Get ready for Java 8.0
« Reply #3 on: March 23, 2015, 05:30:25 pm »

so what happens if we dont have java 8 and we try to run 1.5?

Computer may explode...

EDIT: Ah, posted the same joke of msin without having seen his post. So here I add something to it:

« Last Edit: March 23, 2015, 05:32:29 pm by capodieci »
Logged
- Decentralised Business Network: DeBuNe -
Will be implemented on
ZooBC.com - Join the forum ZooBC.org - By Blockchain Zoo

Tosch110

  • Hero Member
  • *****
  • Karma: +211/-18
  • Offline Offline
  • Posts: 2365
    • View Profile
Re: [CORE] Get ready for Java 8.0
« Reply #4 on: March 23, 2015, 05:40:43 pm »

Hi folks,

as the new release 1.5.0e slowly approaches, you need to get ready for Java 8.0 by the time we upgrade to the 1.5.x series.

I can imagine some folks of you need more time to get this ready and test your environment well; thus this announcement.

Cheers,
Chuck

Thanks for the info. For anybody interested, I recommend this for Ubuntu 14.04 or Linux Mint

http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html

2Kool4Skewl

  • Hero Member
  • *****
  • Karma: +396/-246
  • Offline Offline
  • Posts: 1897
  • Banned!
  • Because I'm a Genius
    • View Profile
Re: [CORE] Get ready for Java 8.0
« Reply #5 on: March 23, 2015, 05:47:14 pm »

What is the reason for switching to Java 8?
Logged
We are the descendants of Bitcoin.  We are the continuation of the cause it started, but that perished with its centralization.
An economic system is a manifestation of an ideology.  What was lost, we shall reclaim.
"The Times 03/Jan/2009 Chancellor on brink of second bailout for banks"

Daedelus

  • Hero Member
  • *****
  • Karma: +230/-12
  • Offline Offline
  • Posts: 3280
    • View Profile
Re: [CORE] Get ready for Java 8.0
« Reply #6 on: March 23, 2015, 05:55:02 pm »




 ;)
Logged
NXT: NXT-4CS7-S4N5-PTH5-A8R2Q

ChuckOne

  • Hero Member
  • *****
  • Karma: +293/-17
  • Offline Offline
  • Posts: 3450
  • ☕ NXT-4BTE-8Y4K-CDS2-6TB82
    • View Profile
Re: [CORE] Get ready for Java 8.0
« Reply #7 on: March 23, 2015, 05:56:59 pm »

What is the reason for switching to Java 8?

There are many new features available in Java 8 that of course our devs would like to experiment with. Those include a finer array/list api, streams, lambda expressions and much more.

Furthermore, from my own experience, I can tell you that continuous upgrades of third-party dependencies yield an enormous reduction of development resources. That is because of two reasons: 1) you get features to write code more easily for free 2) fast detection of problems, thus avoidance of bad practices of former versions and therefore less code which needs to be changed in the long run.

From what I can tell, nothing needed to be changed in the NRS code to adhere to Java 8. So, new features for free which can be used in future versions of the NRS from now on.
« Last Edit: March 23, 2015, 06:10:57 pm by ChuckOne »
Logged

ChuckOne

  • Hero Member
  • *****
  • Karma: +293/-17
  • Offline Offline
  • Posts: 3450
  • ☕ NXT-4BTE-8Y4K-CDS2-6TB82
    • View Profile
Re: [CORE] Get ready for Java 8.0
« Reply #8 on: March 23, 2015, 06:14:52 pm »

so what happens if we dont have java 8 and we try to run 1.5?

From what I can tell, it won't even compile with java 7.

According to http://www.oracle.com/technetwork/java/javase/8-compatibility-guide-2156366.html "Class files built with the Java SE 8 compiler will not run on earlier releases of Java SE." So, the Java runtime itself will prevent execution of the compiled files in the zip-package.
Logged

crimi

  • Hero Member
  • *****
  • Karma: +122/-11
  • Offline Offline
  • Posts: 863
    • View Profile
Re: [CORE] Get ready for Java 8
« Reply #9 on: March 23, 2015, 06:27:38 pm »

This is good news folks, java7 is ready for the trash. Welcome java 8... also for people using Nem in future.

PBKDF2–WithHmac–SHA1(java7)
PBKDF2–WithHmac–SHA224(java8)
PBKDF2–WithHmac–SHA256(java8)
PBKDF2–WithHmac–SHA384(java8)
PBKDF2–WithHmac–SHA512(java8)
Logged

kseistrup

  • Sr. Member
  • ****
  • Karma: +48/-0
  • Offline Offline
  • Posts: 465
  • Fortune favours the lucky
    • View Profile
    • @kseistrup
Re: [CORE] Get ready for Java 8
« Reply #10 on: March 23, 2015, 06:35:07 pm »

you need to get ready for Java 8 by the time we upgrade to the 1.5.x series.

What a pity.  For a couple of weeks I ran NRS 1.4.x with Java 8 and it required more than 30% extra RAM.  I guess I will not be able to run NRS 1.5.x on my 512 Mb VPSes.  That's such a shame.

Bernard Lerring

  • Sr. Member
  • ****
  • Karma: +30/-3
  • Offline Offline
  • Posts: 296
    • View Profile
Re: [CORE] Get ready for Java 8.0
« Reply #11 on: March 23, 2015, 06:42:03 pm »

Hi folks,

as the new release 1.5.0e slowly approaches, you need to get ready for Java 8.0 by the time we upgrade to the 1.5.x series.

I can imagine some folks of you need more time to get this ready and test your environment well; thus this announcement.

Cheers,
Chuck

Thanks for the info. For anybody interested, I recommend this for Ubuntu 14.04 or Linux Mint

http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html

If I enter "java -version" into Ubuntu 14.04 terminal I get the following info:

java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b25)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)

So if I follow that guide to add the Java 8 PPA and install the newest will it fuck the shit right out of my current install and leave old libraries lying around on my system? Shall I remove the Java that I already have first? If so, what's the best way to remove it? Synaptic "remove completely" option?

Also, will the PPA work on Xubuntu? I'm using Xubuntu on my public node and shall be updating that to NRS 1.5x faster than you can listen to this when it comes out.
Logged

ChuckOne

  • Hero Member
  • *****
  • Karma: +293/-17
  • Offline Offline
  • Posts: 3450
  • ☕ NXT-4BTE-8Y4K-CDS2-6TB82
    • View Profile
Re: [CORE] Get ready for Java 8.0
« Reply #12 on: March 23, 2015, 06:55:03 pm »

Hi folks,

as the new release 1.5.0e slowly approaches, you need to get ready for Java 8.0 by the time we upgrade to the 1.5.x series.

I can imagine some folks of you need more time to get this ready and test your environment well; thus this announcement.

Cheers,
Chuck

Thanks for the info. For anybody interested, I recommend this for Ubuntu 14.04 or Linux Mint

http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html

If I enter "java -version" into Ubuntu 14.04 terminal I get the following info:

java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b25)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)

So if I follow that guide to add the Java 8 PPA and install the newest will it fuck the shit right out of my current install and leave old libraries lying around on my system? Shall I remove the Java that I already have first? If so, what's the best way to remove it? Synaptic "remove completely" option?

Also, will the PPA work on Xubuntu? I'm using Xubuntu on my public node and shall be updating that to NRS 1.5x faster than you can listen to this when it comes out.

That is Java 8 ;)
Logged

ChuckOne

  • Hero Member
  • *****
  • Karma: +293/-17
  • Offline Offline
  • Posts: 3450
  • ☕ NXT-4BTE-8Y4K-CDS2-6TB82
    • View Profile
Re: [CORE] Get ready for Java 8
« Reply #13 on: March 23, 2015, 07:13:39 pm »

you need to get ready for Java 8 by the time we upgrade to the 1.5.x series.

What a pity.  For a couple of weeks I ran NRS 1.4.x with Java 8 and it required more than 30% extra RAM.  I guess I will not be able to run NRS 1.5.x on my 512 Mb VPSes.  That's such a shame.

I redirect the devs here. Let's what they have to say about it.
Logged

Tosch110

  • Hero Member
  • *****
  • Karma: +211/-18
  • Offline Offline
  • Posts: 2365
    • View Profile
Re: [CORE] Get ready for Java 8.0
« Reply #14 on: March 23, 2015, 07:18:05 pm »

If I enter "java -version" into Ubuntu 14.04 terminal I get the following info:

java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b25)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)

yep, "java version "1.8.0_40"" = Java 8

you already got it =)

McFly

  • Jr. Member
  • **
  • Karma: +6/-0
  • Offline Offline
  • Posts: 31
    • View Profile
Re: [CORE] Get ready for Java 8.0
« Reply #15 on: March 23, 2015, 08:18:36 pm »

Hi folks,

as the new release 1.5.0e slowly approaches, you need to get ready for Java 8.0 by the time we upgrade to the 1.5.x series.

I can imagine some folks of you need more time to get this ready and test your environment well; thus this announcement.

Cheers,
Chuck

Thanks for the info. For anybody interested, I recommend this for Ubuntu 14.04 or Linux Mint

http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html

If someone prefers OpenJDK8 instead of Oracle in Ubuntu 14.04, i have used this link: http://ubuntuhandbook.org/index.php/2015/01/install-openjdk-8-ubuntu-14-04-12-04-lts/
Logged
NXT - TURNING A VISION INTO REALITY

Account RS: NXT-FLY2-LNXY-U464-AXBZL | Alias: McFly

starik69

  • Sr. Member
  • ****
  • Karma: +11/-17
  • Offline Offline
  • Posts: 301
    • View Profile
Re: [CORE] Get ready for Java 8
« Reply #16 on: March 24, 2015, 01:55:57 pm »

May be use JavaFX as GUI? ::)
Logged
NXT-R2U6-22MC-LQL2-22222 (648774468) - NXT | All versions of NXT client and more - https://mega.co.nz/#F!J1xmgAyC!cnaqdxHALLMGiS0hTPrhAg

Riker

  • Core Dev
  • Hero Member
  • *****
  • Karma: +440/-42
  • Offline Offline
  • Posts: 1796
    • View Profile
Re: [CORE] Get ready for Java 8
« Reply #17 on: March 24, 2015, 03:35:49 pm »

you need to get ready for Java 8 by the time we upgrade to the 1.5.x series.

What a pity.  For a couple of weeks I ran NRS 1.4.x with Java 8 and it required more than 30% extra RAM.  I guess I will not be able to run NRS 1.5.x on my 512 Mb VPSes.  That's such a shame.

Try installing Java 8 32 bit it should reduce the memory consumption compared to the 64 bit one.
Logged
NXT Core Dev
Account: NXT-HBFW-X8TE-WXPW-DZFAG
Public Key: D8311651 Key fingerprint: 0560 443B 035C EE08 0EC0  D2DD 275E 94A7 D831 1651

kseistrup

  • Sr. Member
  • ****
  • Karma: +48/-0
  • Offline Offline
  • Posts: 465
  • Fortune favours the lucky
    • View Profile
    • @kseistrup
Re: [CORE] Get ready for Java 8
« Reply #18 on: March 24, 2015, 03:49:44 pm »

Try installing Java 8 32 bit it should reduce the memory consumption compared to the 64 bit one.

And compared to Java 7?

verymuchso

  • Hero Member
  • *****
  • Karma: +118/-2
  • Offline Offline
  • Posts: 549
    • View Profile
    • HEAT Ledger
Re: [CORE] Get ready for Java 8
« Reply #19 on: March 24, 2015, 03:50:21 pm »

Thanks for the notice!
Updated all our servers.

For anyone wanting to install java 8 on ubuntu/debian servers follow these steps.
Run as root or prepend everything with `sudo`


# optional this is needed by add-apt-repository
apt-get install python-software-properties
add-apt-repository ppa:webupd8team/java
apt-get update
# this has to be done once to auto-accept the license while running over ssh (headless)
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections
apt-get install oracle-java8-installer


Logged
HEAT: DEX | SDK | HOME
Pages: [1] 2 3  All
 

elective-stereophonic
elective-stereophonic
assembly
assembly