cant start game

Ask, answer and discuss any and all topics about the hows, whys, wheres and whens of playing Haven & Hearth.

Re: cant start game

Postby lhharrison89 » Tue Apr 13, 2021 1:11 am

loftar wrote:
lhharrison89 wrote:when I tried the run command I received this error: Error: Unable to access jarfile autohaven-lhharrison89.jar

That probably means you didn't navigate to the directory where you put the autohaven file.


x.x not sure what that means... where should I put the autohaven file?
lhharrison89
 
Posts: 10
Joined: Mon Apr 12, 2021 5:48 pm

Re: cant start game

Postby MagicManICT » Tue Apr 13, 2021 2:24 am

Doesn't matter so much "where you put it," but when using the command line, you have to make sure you launch a program when the file system is pointing at the right folder. My suggestion is this:

Save (or move) your autohaven-<account-name>.jar file to your Desktop
Open the command line (Windows>run>cmd.exe). The default starting location is your user directory. From here, type "cd desktop" to move to the proper folder.
Once in the right location, you can run Haven with the command given (java.exe -jar autohaven-<account-name>.jar).

The goal of this is to get any error output to the command console rather than relying on any pop-ups or trying to find a missing log file. Hopefully, if there is an error or other premature termination, something is written to the console that you can copy-paste to a post so it can be used to figure out the problem. Note: you can select text with the mouse, but you will have to use ctrl+c to copy the selected text to the clipboard from a command line prompt (ctrl+x to 'cut' and ctrl+v to paste).
Opinions expressed in this statement are the authors alone and in no way reflect on the game development values of the actual developers.
User avatar
MagicManICT
 
Posts: 18435
Joined: Tue Aug 17, 2010 1:47 am

Re: cant start game

Postby lhharrison89 » Tue Apr 13, 2021 2:54 am

MagicManICT wrote:Doesn't matter so much "where you put it," but when using the command line, you have to make sure you launch a program when the file system is pointing at the right folder. My suggestion is this:

Save (or move) your autohaven-<account-name>.jar file to your Desktop
Open the command line (Windows>run>cmd.exe). The default starting location is your user directory. From here, type "cd desktop" to move to the proper folder.
Once in the right location, you can run Haven with the command given (java.exe -jar autohaven-<account-name>.jar).

The goal of this is to get any error output to the command console rather than relying on any pop-ups or trying to find a missing log file. Hopefully, if there is an error or other premature termination, something is written to the console that you can copy-paste to a post so it can be used to figure out the problem. Note: you can select text with the mouse, but you will have to use ctrl+c to copy the selected text to the clipboard from a command line prompt (ctrl+x to 'cut' and ctrl+v to paste).


C:\Users\lhhar>cd desktop

C:\Users\lhhar\Desktop>java.exe -jar autohaven-lhharrison89.jar
Error: Unable to access jarfile autohaven-lhharrison89.jar

I moved the file to the desktop and received the same error :''( i have no idea what to do lol
lhharrison89
 
Posts: 10
Joined: Mon Apr 12, 2021 5:48 pm

Re: cant start game

Postby MagicManICT » Tue Apr 13, 2021 4:51 am

This might be a security/permissions issue.

Right click the "autohaven-<account-name>.jar" file and open "properties." I'm assuming you're using Win 10 (though it might be the same in 8; not familiar enough with 7 to guide on this without doing some digging through Microsoft docs). Towards the bottom on the 'General' tab there should be a Security label with some text and a check box labeled "Unblock." Make sure it is unchecked. After that, what may need to be done could be trickier, and I'm a good bit rusty on troubleshooting some of these issues.

You may also need to add an exception for Java and/or Haven to your security software. I believe I mentioned in the previous thread I linked the ports that are needed to be open. That may also get results.

Only other thought I have at the moment is a Java security setting. There's been so much change with Java over the years, I'm not sure what to suggest checking.
Opinions expressed in this statement are the authors alone and in no way reflect on the game development values of the actual developers.
User avatar
MagicManICT
 
Posts: 18435
Joined: Tue Aug 17, 2010 1:47 am

Re: cant start game

Postby lhharrison89 » Tue Apr 13, 2021 5:23 am

MagicManICT wrote:This might be a security/permissions issue.

Right click the "autohaven-<account-name>.jar" file and open "properties." I'm assuming you're using Win 10 (though it might be the same in 8; not familiar enough with 7 to guide on this without doing some digging through Microsoft docs). Towards the bottom on the 'General' tab there should be a Security label with some text and a check box labeled "Unblock." Make sure it is unchecked. After that, what may need to be done could be trickier, and I'm a good bit rusty on troubleshooting some of these issues.

You may also need to add an exception for Java and/or Haven to your security software. I believe I mentioned in the previous thread I linked the ports that are needed to be open. That may also get results.

Only other thought I have at the moment is a Java security setting. There's been so much change with Java over the years, I'm not sure what to suggest checking.


how do i check the ports or open them btw? i looked at the check box in properties, is is not checked.
lhharrison89
 
Posts: 10
Joined: Mon Apr 12, 2021 5:48 pm

Re: cant start game

Postby MagicManICT » Tue Apr 13, 2021 12:14 pm

Disregard that last post I made for now. I went down the wrong path of thought. The specific error you received has a variety of causes, but what I posted generally isn't considered one of them. It's the end of my day, and I'll try to get some other suggestions together to try if someone else doesn't have something for you.
Opinions expressed in this statement are the authors alone and in no way reflect on the game development values of the actual developers.
User avatar
MagicManICT
 
Posts: 18435
Joined: Tue Aug 17, 2010 1:47 am

Re: cant start game

Postby lhharrison89 » Tue Apr 13, 2021 5:06 pm

MagicManICT wrote:Disregard that last post I made for now. I went down the wrong path of thought. The specific error you received has a variety of causes, but what I posted generally isn't considered one of them. It's the end of my day, and I'll try to get some other suggestions together to try if someone else doesn't have something for you.


haha no worries! I appreciate all the help so far!
lhharrison89
 
Posts: 10
Joined: Mon Apr 12, 2021 5:48 pm

Re: cant start game

Postby lhharrison89 » Wed Apr 14, 2021 1:46 am

Someone in a discord server suggested I try "rename the file autohaven-lhharrison89.jar to autohaven.jar and see what happens" and it worked! i'm in! ty to all for your help
lhharrison89
 
Posts: 10
Joined: Mon Apr 12, 2021 5:48 pm

Re: cant start game

Postby loftar » Sun Apr 25, 2021 3:22 pm

That's interesting to know, but I've got to say I have no idea why that would make it work. I'll have to keep it in mind if anyone else has this problem.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
loftar
 
Posts: 9055
Joined: Fri Apr 03, 2009 7:05 am

Previous

Return to How do I?

Who is online

Users browsing this forum: Claude [Bot] and 0 guests