Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / UnsatisfiedLinkError trying to compile/run AGK Classic for Java

Author
Message
dooz
19
Years of Service
User Offline
Joined: 22nd Sep 2005
Location:
Posted: 27th Jul 2021 13:20
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)
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 28th Jul 2021 00:59 Edited at: 28th Jul 2021 01:02
you may way to send the creator hockeykid a PM or an email hockeykid2300@aol.com and point them to this thread where they aren't as active as they once were (tho i do see they logged in last month).
[My Itch.io Home] [Community Apps on Itch.io]
[AGK Resource Directory] [TGC @ GitHub]
[CODE lang=agk] YOUR CODE HERE [/CODE]
[VIDEO=youtube] VIDEO ID [/VIDEO]
[AGK Showcase][Google Forum Search]
dooz
19
Years of Service
User Offline
Joined: 22nd Sep 2005
Location:
Posted: 28th Jul 2021 11:28 Edited at: 28th Jul 2021 11:47
Thanks, I have done so.

I switched to Eclipse (which I should have tried first as I'm more familiar with it) and got it going in a flash. Just needed to set the library path.

Login to post a reply

Server time is: 2024-11-23 12:31:27
Your offset time is: 2024-11-23 12:31:27