Results 1 to 2 of 2
  1. #1
    Eric97 is offline Member
    Join Date
    Nov 2010
    Posts
    1
    Rep Power
    0

    Default How to set java compiler compliance with command under Linux

    Hello everyone,

    I am using CentOS5 and java runtime environment(version 1.6.0_17, IceTea6 1.7.5) to compile one open source project. Came with the following errors:

    ".... statements are only available if source level is 5.0"

    I googled and found the solutions are mainly set in IDE to make the java compiler compliance with 5.0 instead of directly in a command. Could anyone suggest how to set this with command?

    Thank you,
    Eric

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,038
    Rep Power
    10

Similar Threads

  1. how to implement linux command using java?
    By sadiya pathan in forum Advanced Java
    Replies: 0
    Last Post: 10-16-2010, 10:42 AM
  2. executing linux command from Java not working.
    By baozhi in forum Advanced Java
    Replies: 2
    Last Post: 03-24-2010, 07:32 AM
  3. problem in executing linux command
    By Basit56 in forum New To Java
    Replies: 1
    Last Post: 02-08-2010, 04:53 PM
  4. linux command to start a java web server
    By lazarus in forum JavaServer Faces (JSF)
    Replies: 0
    Last Post: 06-24-2008, 04:30 PM
  5. calling linux command line in java
    By fangzhong in forum New To Java
    Replies: 0
    Last Post: 02-03-2008, 05:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •