Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [che-dev] java development/runtime version


Having updated Jenkins to Oracle JDK 11.0.1, I can now build CRW with JDK 11, but moving to JDK 11.0.1 didn't fix building Che with 11, which fails to compile che-plugin-maven-server:

10:22:11 [INFO] Compiling 16 source files to /mnt/hudson_workspace/workspace/eclipse-che_JDK11_master/sources/plugins/plugin-maven/che-plugin-maven-server/target/classes
10:22:11 [INFO] -------------------------------------------------------------
10:22:11 [ERROR] COMPILATION ERROR : 
10:22:11 [INFO] -------------------------------------------------------------
10:22:11 [ERROR] bootstrap class path not set in conjunction with -source 8
10:22:11 /mnt/hudson_workspace/workspace/eclipse-che_JDK11_master/sources/plugins/plugin-maven/che-plugin-maven-server/src/main/java/org/eclipse/che/plugin/maven/server/rmi/RmiClient.java:[23,16] error: package javax.rmi does not exist
10:22:11 [ERROR] /mnt/hudson_workspace/workspace/eclipse-che_JDK11_master/sources/plugins/plugin-maven/che-plugin-maven-server/src/main/java/org/eclipse/che/plugin/maven/server/rmi/RmiClient.java:[81,25] error: cannot find symbol
10:22:11   symbol:   variable PortableRemoteObject
10:22:11   location: class RmiClient<Remote>
10:22:11   where Remote is a type-variable:
10:22:11     Remote extends Object declared in class RmiClient
10:22:11 [INFO] 2 errors 

That said, you're right that it's important to distinguish between "builds with" and "runs with".

I can't speak to the runs with issue, but I can report build failures against Che, if you'll find them useful. Since JDK 8 is EOL, I suppose we ought to be able to build w/ 11.

I know that the containers we have right now for stacks all depend on Java 8, not 11. But we could start updating the Che and CRW stacks to include JDK 11 as the default. 

WDYT?

Nick

On Fri, Dec 7, 2018 at 6:48 AM Sergii Kabashniuk <skabashn@xxxxxxxxxx> wrote:
Ok. Make sense. Let's divide this question on two.
1. How to build on Java 11
2. Can we run on Java 11.

I'm more interested in 2. Because if answer - NO, first one doesn't make sense.
@Nick Boldt Do you see any issues in 2?




On Thu, Dec 6, 2018 at 6:42 PM Nick Boldt <nboldt@xxxxxxxxxx> wrote:
I tried building Che w/ OpenJDK 11ea28...

11:10:17 Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
11:10:17 Maven home: /var/lib/jenkins/tools/hudson.tasks.Maven_MavenInstallation/maven-3.5.4
11:10:17 Java version: 11, vendor: Oracle Corporation, runtime: /qa/tools/opt/x86_64/openjdk11_ea28

... and it failed spectacularly:

11:21:07 [INFO] Che Core :: Commons :: GWT Logger .................. FAILURE [ 2.758 s]
11:21:07 Caused by: org.apache.maven.plugin.PluginContainerException: An API incompatibility was encountered while executing net.ltgt.gwt.maven:gwt-maven-plugin:1.0-rc-8:package-lib: java.lang.ExceptionInInitializerError: null


Perhaps we need to move to the JDK 11.0.1 and Maven 3.6?


On Sun, Dec 2, 2018 at 1:52 PM Sergii Kabashniuk <skabashn@xxxxxxxxxx> wrote:
Hello
I would like to initiate discussing around development/runtime version of java that we use to build and run Che. (workspace agent and workspace server).

Idea is to bump version to the latest LTS Java 11 (18.9^ LTS)  [1]

Does anybody have any comments or concerns?


--

Sergii Kabashniuk

Principal Software Engineer, DevTools 

Red Hat Ukraine

skabashniuk@xxxxxxxxxx    

_______________________________________________
che-dev mailing list
che-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/che-dev


--

Nick Boldt

Principal Software Engineer, RHCSA

Productization Lead :: JBoss Tools & Dev Studio

IM: @nickboldt / @nboldt / http://nick.divbyzero.com



“The Only Thing That Is Constant Is Change” - Heraclitus
_______________________________________________
che-dev mailing list
che-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/che-dev


--

Sergii Kabashniuk

Principal Software Engineer, DevTools 

Red Hat Ukraine

skabashniuk@xxxxxxxxxx    



--

Nick Boldt

Principal Software Engineer, RHCSA

Productization Lead :: JBoss Tools & Dev Studio

IM: @nickboldt / @nboldt / http://nick.divbyzero.com



“The Only Thing That Is Constant Is Change” - Heraclitus

Back to the top