File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Engineering
»
Ant, Maven and Other Build Tools
Author
maven 3 doesn't play nice with java 7
Hengki Widjaja
Ranch Hand
Joined: Oct 31, 2011
Posts: 44
posted
Nov 21, 2011 23:47:01
0
When I tried compiling my codes, I got a warning saying that
string
in switch is not supported in source 1.5, but I've already installed
java
7 and change the variables accordingly. Help please? thanks
Peter Johnson
author
Bartender
Joined: May 14, 2008
Posts: 5575
I like...
posted
Nov 22, 2011 10:04:54
0
change the variables accordingly
What variables? Please post the Compiler plugin configuration in your pom.xml, without that my only guess is that you did something incorrectly.
Also, run "mvn -version" and see what version of Java it tells you about. If it is not 1.7, you need to change your JAVA_HOME.
Also, what OS?
JBoss In Action
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: maven 3 doesn't play nice with java 7
Similar Threads
I like Ubuntu 8.04
JAVA 7 launching on 7/7/2011
7/7/11 - java released
what has changed in javaSE since 2005?
Using Modulus
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter