Dashboard > Confluence User Guides and Documents > ... > Confluence Developer FAQ > I am trying to compile a plugin, but get an error about the target release
I am trying to compile a plugin, but get an error about the target release Log In   View a printable version of the current page.

Added by vidya, last edited by david.soul@atlassian.com on Feb 03, 2006  (view change) show comment
Labels: 

I am trying to compile a plugin, but get an error about the "target release"

When compiling plugins and using version 1.5 of the JDK, the following error may appear:

javac: target release 1.3 conflicts with default source release 1.5
SOLUTION

The solution is essentially to tell your compiler to target Java 1.3. How to do this will differ depending on what compiler you are using, but generally, something like this will work:

javac -target 1.3 <other options here>

If you are using Maven to build your project, try adding the following to your project.properties or build.properties file:

# Set the javac target to 1.3
maven.compile.target=1.3
maven.compile.source=1.3
RELATED TOPICS

Confluence Plugin Guide
[FAQ Home]

DEMONSTRATION LICENSE - This Confluence site is for demonstration purposes only. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.6.1 Build:#916 Nov 09, 2007) - Bug/feature request - Contact Administrators