Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

javac: invalid target release: 1.6

843789Jun 7 2010 — edited Jun 7 2010
I'm duplicating this topic: http://forums.sun.com/thread.jspa?threadID=5238294
I've the same problem after years, so why to lock, if there is no any solution.
I've downloaded svnant, and executed ant:
$ ant
Buildfile: build.xml

compile:
    [mkdir] Created dir: /home/kenorb/Downloads/ubuntu/svnant/build/classes
    [javac] Compiling 50 source files to /home/kenorb/Downloads/ubuntu/svnant/build/classes
    [javac] javac: invalid target release: ${targetJvm}
    [javac] Usage: javac <options> <source files>
    [javac] use -help for a list of possible options

$ javac -version
javac 1.6.0_0
How to check proper paths and set up this properly? I'm on Ubuntu.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 5 2010
Added on Jun 7 2010
11 comments
786 views