linux compilation failed : javac compiliance level

sc.bh's Avatar

sc.bh

24 Feb, 2014 03:56 PM

Hello,

i was on my way to try nodeblock 3, seems to be amazing. I would like to try it with my students to alternative ways to produce graphics.
but ...
i am on linux mageai 4 and the compilation failed with the following message :
[javac] Compliance level '1.5' is incompatible with source level '1.6'. A compliance level '1.6' or better is required

some help would be welcomed :)
thanks
bachir

  1. Support Staff 1 Posted by Frederik De Ble... on 24 Feb, 2014 07:38 PM

    Frederik De Bleser's Avatar

    Hi,

    • Which version of Java are you using?
    • Do you compile with "ant run"?

    F

  2. 2 Posted by sc.bh on 24 Feb, 2014 08:45 PM

    sc.bh's Avatar

    hi Frederik,

    > java -version java version "1.7.0_45" OpenJDK Runtime Environment (mageia-2.4.4.2.mga4-x86_64 u45-b15) OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)

    and yes ant run !

  3. Support Staff 3 Posted by Frederik De Ble... on 18 Mar, 2014 09:48 AM

    Frederik De Bleser's Avatar

    Hi,

    I just tried it on Ubuntu 12.04 without any issues, Here are my Java settings:

    java version "1.7.0_51"
    OpenJDK Runtime Environment (IcedTea 2.4.4) (7u51-2.4.4-0ubuntu0.12.04.2)
    OpenJDK Client VM (build 24.45-b08, mixed mode, sharing)
    

    A quick Google search turned up some stuff about dirty caches. Could you try running ant clean, then ant run again?

    Unfortunately I don't have the time to try this out every Linux distro. I've attached my Vagrant settings that I use to test NodeBox on. After provisioning the box, I run:

    git clone git://github.com/nodebox/nodebox.git
    cd nodebox
    ant run
    
  4. 4 Posted by sc.bh on 27 Apr, 2014 04:02 PM

    sc.bh's Avatar

    Hi Frederik,

    i get it ! i had java-1.5.0-gcj-devel instead of java-1.7.0-openjdk-devel
    i switched and "ant run" runs well
    i can now enjoy nodebox
    thank's again

  5. Support Staff 5 Posted by Frederik De Ble... on 28 Apr, 2014 01:59 AM

    Frederik De Bleser's Avatar

    Thanks for clearing that up. Good luck with NodeBox!

  6. Frederik De Bleser closed this discussion on 28 Apr, 2014 01:59 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

18 Nov, 2024 11:24 PM
18 Nov, 2024 09:01 PM
07 Nov, 2024 10:53 AM
02 Nov, 2024 11:22 AM
01 Nov, 2024 12:41 AM

 

01 Oct, 2024 07:59 AM
30 Sep, 2024 11:37 PM
30 Sep, 2024 11:11 AM
30 Sep, 2024 02:37 AM
28 Sep, 2024 10:33 AM
26 Sep, 2024 06:41 AM