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.
- install 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
select add jars
browse saved jmonkey build , open lib folder
select libraries , add them
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
Post a Comment