Hi, I tried following the AppGameKit Classic Tier 2 for Java info here: https://forum.thegamecreators.com/thread/222554 and am stuck.
I installed NetBeans, opened the 3D First Person Shooter demo and ran it, and it worked fine.
Then I started taking a look at the code, etc. and then ran it again and now get this below exception, which I cannot get past.
I assume it is trying to load either the agk64.dll or libagk64.so file in the project root directory.
I've tried setting -Djava.library.path a few different ways and no luck.
Any help would be appreciated.
Exception in thread "main" java.lang.UnsatisfiedLinkError: 'void com.thegamecreators.agk.AGKLib.Begin(com.thegamecreators.agk.AGKEntry)'
at com.thegamecreators.agk.AGKLib.Begin(Native Method)
at com.thegamecreators.agk.AGKEntry.main(AGKEntry.java:14)
C:\Users\psago\AppData\Local\NetBeans\Cache\12.4\executor-snippets\run.xml:111: The following error occurred while executing this line:
C:\Users\psago\AppData\Local\NetBeans\Cache\12.4\executor-snippets\run.xml:94: Java returned: 1
at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:566)
at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:394)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at jdk.internal.reflect.GeneratedMethodAccessor70.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
at org.apache.tools.ant.Task.perform(Task.java:350)
at org.apache.tools.ant.Target.execute(Target.java:449)
at org.apache.tools.ant.Target.performTasks(Target.java:470)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1391)
at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1254)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:261)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:573)
at org.netbeans.core.execution.RunClassThread.doRun(RunClassThread.java:132)
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:81)