Skip to content

Error while packaging with Jdk 1.5 #608

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
anandwali opened this issue Mar 31, 2014 · 6 comments
Closed

Error while packaging with Jdk 1.5 #608

anandwali opened this issue Mar 31, 2014 · 6 comments

Comments

@anandwali
Copy link

Hi,

I am getting this error while building with Jdk 1.5. Is it not compatible?

[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin
:1.0.0.RC1:repackage (default) on project unverified-batch: Execution default of
goal org.springframework.boot:spring-boot-maven-plugin:1.0.0.RC1:repackage fail
ed: Unable to load the mojo 'repackage' in the plugin 'org.springframework.boot:
spring-boot-maven-plugin:1.0.0.RC1' due to an API incompatibility: org.codehaus.
plexus.component.repository.exception.ComponentLookupException: Bad version number in .class file
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.springframework.boot:spring-boot-maven-plugin:1.0.
0.RC1
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/D:/maven_repo/org/springframework/boot/spring-boot-maven

@snicoll
Copy link
Member

snicoll commented Mar 31, 2014

Hi,

Spring boot requires at least java6. I am afraid this will not work with your current setup. Any reason why you could not upgrade to a more recent Java version?

Thanks!

@dsyer dsyer added the question label Mar 31, 2014
@anandwali
Copy link
Author

Hello, Thanks for answering my query. I found it the hard way that it does
not work on Java5.

I am in customer environment, where production servers are on Java 5,
changing it would be a governance blocker at this stage.

Hope you understand..

BTW, is there a way to find which release of spring works on which which
version of Java?

Thanks, Anand

On Mon, Mar 31, 2014 at 1:14 PM, Stéphane Nicoll
notifications@github.comwrote:

Hi,

Spring boot requires at least java6. I am afraid this will not work with
your current setup. Any reason why you could not upgrade to a more recent
Java version?

Thanks!

Reply to this email directly or view it on GitHubhttps://github.com//issues/608#issuecomment-39081304
.

@dsyer
Copy link
Member

dsyer commented Mar 31, 2014

"Which release of Spring..." is a bit of an open-ended question, since "Spring" can mean different things to different people. This is the issue tracker for Spring Boot, so I'll answer for that project: we require Java 1.6 for all Spring Boot releases to date (as stated in the docs here).

The answer for other projects can generally be found in their release notes.

@anandwali
Copy link
Author

Thanks Dave,

I am looking to use Spring-batch with spring boot on Jdk5. As Spring boot
doesn't support jdk5, I wanted to make sure which version of spring-batch
is released with jdk5 compatability or do I need to take a maven build on
jdk5? Or do I assume all works on jdk 5 as doc says spring-batch 2.x is
targeting jdk5?

Thanks, Anand

On Mon, Mar 31, 2014 at 3:07 PM, Dave Syer notifications@github.com wrote:

"Which release of Spring..." is a bit of an open-ended question, since
"Spring" can mean different things to different people. This is the issue
tracker for Spring Boot, so I'll answer for that project: we require Java
1.6 for all Spring Boot releases to date (as stated in the docs herehttp://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#getting-started-installing-spring-boot
).

The answer for other projects can generally be found in their release
notes.

Reply to this email directly or view it on GitHubhttps://github.com//issues/608#issuecomment-39091936
.

@dsyer
Copy link
Member

dsyer commented Mar 31, 2014

If the Spring Batch docs say 1.5 then it's 1.5, but that's not going to work with Boot.

@dsyer dsyer closed this as completed Mar 31, 2014
@philwebb
Copy link
Member

Spring Boot is builds on new features introduced in Spring Framework 4.0, since this needs Java 6 there is zero chance of getting Spring Boot working with Java 5.

I would strongly recommend that you look at upgrading from Java 5 if at all possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants