Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Upgrade Java 6 to Java 8

Tags:

java

jboss

As per the project requirement, i need to upgrade my JDK1.6.0_45 to JDK1.8.

I am using JBOSS 4.2.3.GA, once i am pointing to JDK1.8 bin and trying to compile the project it is throwing the below error: ERROR [org.jboss.deployment.MainDeployer] Could not start deployment: file:/C:/jboss-4.2.3.GA/jboss-4.2.3.GA/server/default/deploy/web.ear/facade.jar java.lang.IllegalStateException: Cannot build JAXB context

How can i fix this issue ?

Or any idea to migrate from JDK1.6 to JDK1.8 ,what action i need to take ?

like image 842
Avinash Avatar asked Sep 21 '26 16:09

Avinash


1 Answers

For starters you're going to also need to upgrade to a newer JBoss. Everything up to JBoss AS 7 does not run on Java 8, so you'll need at least Wildfly 8.

Similarly, if you want Java 9 you'll need Wildfly 11.

like image 73
Jeroen Steenbeeke Avatar answered Sep 23 '26 05:09

Jeroen Steenbeeke



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!