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

22 Feb, 2024 05:51 AM
22 Feb, 2024 01:11 AM
21 Feb, 2024 05:27 PM
21 Feb, 2024 04:49 PM
16 Feb, 2024 05:24 PM

 

06 Feb, 2024 04:45 AM
19 Jan, 2024 09:50 AM
13 Jan, 2024 03:47 AM
05 Jan, 2024 05:10 PM
05 Jan, 2024 04:54 PM
04 Jan, 2024 11:49 PM