java - JMonkeyEngine with JDK 8 -


i want use lambda expressions, need jdk 8. have set project jdk 8, in properties, editor of code gives errors when use lambda. when trying build gives error this: warning: [options] bootstrap class path not set in conjunction -source 1.7 test.java:17: error: lambda expressions not supported in -source 1.7 runnable r = () -> system.out.println(); (use -source 8 or higher enable lambda expressions) how set jmonkeyengine working on jdk 8? thanks.

i wasn't able java 8 work within jmonkey ide. able other way round; add jmonkey libraries netbeans 8.

then follow instructions for adding jmonkey library annother ide. instructions eclipse (as jmonkey ide based on netbeans make no sense this).

  • download recent build of jmonkey
  • unzip , save in user directory
  • open netbeans 8
  • either open existing jmonkey project or start new project

  • open project properties

    enter image description here

  • select add jars

    enter image description here

  • browse saved jmonkey build , open lib folder

    enter image description here

  • select libraries , add them

    enter image description here

at point possible create jmonkey program using java 8 code within netbeans 8. however; assets folder may still missing, if opened existing project there otherwise, again, follow similar instructions within setting jme3 in eclipse arguably easier in netbeans. pretty identical adding jars won't include screenshots.

  • open project properties (again)
  • open libraries tab
  • click add jar/folder
  • browse assets folder
  • click open

now can run project within jmonkey ide, using assetmanager load assets. of course won't have nice jme specific features of jmonkey ide.

note; jmonkey untested java 8, got basic program run, not guarantee success more complex program (that said have used technique move 500 class game across 0 issues; love java)


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -