Can't get ToT.jar to run?

Can't get ToT.jar to run?

Postby Hemogoblin » Tue Sep 30, 2014 6:23 pm

So, I can't seem to get ToT.jar to run and I've exhausted all options I can think of, ie. re-downloading the alpha, reinstalling and updating Java, scouring Google for answers I can comprehend, etc.

I double click ToT.jar, and nothing happens. Any thoughts? I want to slay some heroes! :D

Edit: Forgot to mention, I'm running Win7 64-bit and it is up to date
Hemogoblin
 
Posts: 4
Joined: Tue Sep 30, 2014 3:47 pm

Re: Can't get ToT.jar to run?

Postby Jake » Tue Sep 30, 2014 6:50 pm

I want you to, too!

The game actually shouldn't require anywhere near the latest version--mobile devices stick with older versions of Java to ensure stability, so that's what I target. Since you've definitely reinstalled and updated Java, though, it seems likely that the .jar is opening, but immediately crashing. You can try running it from a console/command prompt by changing to the directory of ToT.jar and entering "java -jar ToT.jar"; that should give you some output when it crashes, and you can post it here for me to look at. Hopefully, we can get this resolved quickly =). Thanks!

Incidentally, what OS are you running?
Jake
Site Admin
 
Posts: 235
Joined: Thu Aug 07, 2014 12:07 am
Location: Saint Louis, MO

Re: Can't get ToT.jar to run?

Postby Hemogoblin » Tue Sep 30, 2014 7:32 pm

Hey Jake! Thanks for the reply :)

Okay, so I did some more digging and realized that when in CMD, I would type "java" and receive "java is not a recognized as an internal or external command..." as an error. I looked into that and found this solution:
1. go to start, right click on the computer and choose properties
click on advanced system settings
go to advanced and click on environment Variables button

2. press the first new... button
Varieble name = Path
Variable value = C:\Program Files (x86)\Java\jre6\bin
press ok
(you might need to reboot your computer)


This worked as far as giving me a wall of text regarding Java rather than the previous error message, so that's a step in the right direction I reckon.

Now, that being said, I still cannot get ToT.jar to run, either by double clicking on it, or by running it through CMD.
When I attempt to run it via the command prompt, I get this:

D:\Games\Tomb of Tyrants>java -jar tot.jar
java.lang.UnsatisfiedLinkError: C:\Users\Taylor JL\AppData\Local\Temp\libgdxTayl
or JL\80fffa20\gdx.dll: Access is denied
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(Unknown Source)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at com.badlogic.gdx.utils.SharedLibraryLoader.loadFile(SharedLibraryLoad
er.java:293)
at com.badlogic.gdx.utils.SharedLibraryLoader.loadFile(SharedLibraryLoad
er.java:262)
at com.badlogic.gdx.utils.SharedLibraryLoader.load(SharedLibraryLoader.j
ava:114)
at com.badlogic.gdx.utils.GdxNativesLoader.load(GdxNativesLoader.java:34
)
at com.badlogic.gdx.backends.lwjgl.LwjglNativesLoader.load(LwjglNativesL
oader.java:47)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.<init>(LwjglApplicat
ion.java:76)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.<init>(LwjglApplicat
ion.java:64)
at com.jcumin.tot.desktop.DesktopLauncher.main(DesktopLauncher.java:19)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoa
der.java:58)
java.lang.UnsatisfiedLinkError: C:\Users\Taylor JL\AppData\Local\Temp\80fffa2073
97999078308666587.tmp: Access is denied
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(Unknown Source)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at com.badlogic.gdx.utils.SharedLibraryLoader.loadFile(SharedLibraryLoad
er.java:293)
at com.badlogic.gdx.utils.SharedLibraryLoader.loadFile(SharedLibraryLoad
er.java:268)
at com.badlogic.gdx.utils.SharedLibraryLoader.load(SharedLibraryLoader.j
ava:114)
at com.badlogic.gdx.utils.GdxNativesLoader.load(GdxNativesLoader.java:34
)
at com.badlogic.gdx.backends.lwjgl.LwjglNativesLoader.load(LwjglNativesL
oader.java:47)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.<init>(LwjglApplicat
ion.java:76)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.<init>(LwjglApplicat
ion.java:64)
at com.jcumin.tot.desktop.DesktopLauncher.main(DesktopLauncher.java:19)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoa
der.java:58)
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoa
der.java:58)
Caused by: java.lang.UnsatisfiedLinkError: C:\Users\Taylor JL\AppData\Local\Temp
\libgdxTaylor JL\dd4c9aff\lwjgl.dll: Access is denied
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(Unknown Source)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at org.lwjgl.Sys$1.run(Sys.java:70)
at java.security.AccessController.doPrivileged(Native Method)
at org.lwjgl.Sys.doLoadLibrary(Sys.java:66)
at org.lwjgl.Sys.loadLibrary(Sys.java:95)
at org.lwjgl.Sys.<clinit>(Sys.java:112)
at org.lwjgl.openal.AL.<clinit>(AL.java:59)
at com.badlogic.gdx.backends.lwjgl.audio.OpenALAudio.<init>(OpenALAudio.
java:72)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.<init>(LwjglApplicat
ion.java:82)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.<init>(LwjglApplicat
ion.java:64)
at com.jcumin.tot.desktop.DesktopLauncher.main(DesktopLauncher.java:19)
... 5 more


Which looks to be similar to what Featherfall was experiencing, though my Java is up to date.

Also, in case you missed my edit in the initial post, I'm running Windows 7 64-bit :)
Hemogoblin
 
Posts: 4
Joined: Tue Sep 30, 2014 3:47 pm

Re: Can't get ToT.jar to run?

Postby Jake » Tue Sep 30, 2014 8:25 pm

Okay, judging by the error log, it looks like the game isn't receiving access to the temp folder. It sounded like a permissions issue to me, and some digging turned up this very similar bug report:
https://code.google.com/p/libgdx/issues/detail?id=1504
There are three solutions at the bottom, any one of which should work, according to the author. While #1 is the simplest, I suggest number two; right-click your Temp folder->Properties->Security->Edit...

It is possible that your AppData folder is invisible, in which case, you'll have to tell Windows Explorer to show hidden folders: http://windows.microsoft.com/en-us/wind ... =windows-7

Sorry about all that. If any of that works, then this is a mistake on Windows' part--the user should always have permission to access their own Temp folder. Please let me know if you find success, in case anyone else runs into this in the future. Thanks!
Jake
Site Admin
 
Posts: 235
Joined: Thu Aug 07, 2014 12:07 am
Location: Saint Louis, MO

Re: Can't get ToT.jar to run?

Postby Hemogoblin » Tue Sep 30, 2014 9:27 pm

We have a winner! It makes sense, I do come across permission issues from time to time.

So, I began with the second option (changing permissions in my Temp folder) but that didn't work. So, I chose option 3 and created a new user account, logged into it and deleted my main user's Temp folder, restarted, logged into my main user account and tried it (double clicking ToT.jar) and it worked! I'm glad it did because when I was logged into the new user account, I tried to run the game and it worked flawlessly much to my confusion. My computer is a jerk.

Thank you very much for the speedy assistance! I really appreciate it, and am super excited to get into some tyranny! :)
Hemogoblin
 
Posts: 4
Joined: Tue Sep 30, 2014 3:47 pm

Re: Can't get ToT.jar to run?

Postby Jake » Tue Sep 30, 2014 10:10 pm

Glad to hear it! Thank you for your patience and assistance :) .
Jake
Site Admin
 
Posts: 235
Joined: Thu Aug 07, 2014 12:07 am
Location: Saint Louis, MO


Return to Questions

Who is online

Users browsing this forum: No registered users and 0 guests

cron