[Solved] How do i set the java version on the ant build for the SDK test project?

I am on Ubuntu and using the beta version of the SDK

Anyone have a quick way of making the IDE run the build file as Java 1.8

ant -f /home/gbluntzer/dev/jmonkey-wksp/jmetests/JmeTests -Dnb.internal.action.name=run run init: Deleting: /home/gbluntzer/dev/jmonkey-wksp/jmetests/JmeTests/build/built-jar.properties deps-jar: Updating property file: /home/gbluntzer/dev/jmonkey-wksp/jmetests/JmeTests/build/built-jar.properties Compiling 258 source files to /home/gbluntzer/dev/jmonkey-wksp/jmetests/JmeTests/build/classes warning: [options] bootstrap class path not set in conjunction with -source 1.6 /home/gbluntzer/dev/jmonkey-wksp/jmetests/JmeTests/src/jme3test/app/TestCloneSpatial.java:176: error: diamond operator is not supported in -source 1.6 Set skipSet = new HashSet<>(Arrays.asList(skip)); (use -source 7 or higher to enable diamond operator) /home/gbluntzer/dev/jmonkey-wksp/jmetests/JmeTests/src/jme3test/app/TestCloner.java:194: error: diamond operator is not supported in -source 1.6 private List links = new ArrayList<>(); (use -source 7 or higher to enable diamond operator) 2 errors 1 warning /home/gbluntzer/dev/jmonkey-wksp/jmetests/JmeTests/nbproject/build-impl.xml:521: The following error occurred while executing this line: /home/gbluntzer/dev/jmonkey-wksp/jmetests/JmeTests/nbproject/build-impl.xml:219: Compile failed; see the compiler error output for details. BUILD FAILED (total time: 0 seconds)

Here is what IDE shows for about

Product Version: jMonkeyEngine SDK 3.1.0-beta1
Updates: Updates available to version NetBeans 8.1 Patch 1
Java: 1.8.0_77; Java HotSpot™ 64-Bit Server VM 25.77-b03
Runtime: Java™ SE Runtime Environment 1.8.0_77-b03
System: Linux version 4.2.0-35-generic running on amd64; UTF-8; en_US (jmonkeyplatform)
User directory: /home/gbluntzer/.jmonkeyplatform/3.1.0-beta1
Cache directory: /home/gbluntzer/.jmonkeyplatform/3.1.0-beta1/var/cache

Set it in the project settings?

wow i was overthinking it. Netbeans is a bit foreign to me.

Just in case anyone else is trying to build the JMEtest
you have to right click on the project file in the project view
Click on sources
Then update the Categories : Source/Binary Format to JDK 8

I now have a different error but will try to figure that one out myself

ant -f /home/gbluntzer/dev/jmonkey-wksp/jmetests/JmeTests -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8 -Dnb.internal.action.name=build jar
init:
Deleting: /home/gbluntzer/dev/jmonkey-wksp/jmetests/JmeTests/build/built-jar.properties
deps-jar:
Updating property file: /home/gbluntzer/dev/jmonkey-wksp/jmetests/JmeTests/build/built-jar.properties
Compiling 211 source files to /home/gbluntzer/dev/jmonkey-wksp/jmetests/JmeTests/build/classes
/home/gbluntzer/dev/jmonkey-wksp/jmetests/JmeTests/src/jme3test/bullet/PhysicsHoverControl.java:187: error: cannot access MotionState
getMotionState().applyTransform(spatial);
class file for com.bulletphysics.linearmath.MotionState not found
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /home/gbluntzer/dev/jmonkey-wksp/jmetests/JmeTests/src/jme3test/export/TestAssetLinkNode.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
/home/gbluntzer/dev/jmonkey-wksp/jmetests/JmeTests/nbproject/build-impl.xml:521: The following error occurred while executing this line:
/home/gbluntzer/dev/jmonkey-wksp/jmetests/JmeTests/nbproject/build-impl.xml:219: Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 0 seconds)

Sorry for the bother

Well this is a bit broken I guess. You need to comment it out or maybe adding all jBullet Libraries helps