x.x not sure what that means... where should I put the autohaven file?loftar wrote:That probably means you didn't navigate to the directory where you put the autohaven file.lhharrison89 wrote:when I tried the run command I received this error: Error: Unable to access jarfile autohaven-lhharrison89.jar
-
lhharrison89
- Posts: 10
- Joined: Mon Apr 12, 2021 5:48 pm
Re: cant start game
-
MagicManICT
- Posts: 18435
- Joined: Tue Aug 17, 2010 1:47 am
Re: cant start game
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).
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.
-
lhharrison89
- Posts: 10
- Joined: Mon Apr 12, 2021 5:48 pm
Re: cant start game
C:\Users\lhhar>cd desktopMagicManICT 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\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
-
MagicManICT
- Posts: 18435
- Joined: Tue Aug 17, 2010 1:47 am
Re: cant start game
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.
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.
-
lhharrison89
- Posts: 10
- Joined: Mon Apr 12, 2021 5:48 pm
Re: cant start game
how do i check the ports or open them btw? i looked at the check box in properties, is is not checked.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.
-
MagicManICT
- Posts: 18435
- Joined: Tue Aug 17, 2010 1:47 am
Re: cant start game
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.
-
lhharrison89
- Posts: 10
- Joined: Mon Apr 12, 2021 5:48 pm
Re: cant start game
haha no worries! I appreciate all the help so far!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.
-
lhharrison89
- Posts: 10
- Joined: Mon Apr 12, 2021 5:48 pm
Re: cant start game
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
-
loftar
- Posts: 9096
- Joined: Fri Apr 03, 2009 7:05 am
- Location: Your character database
Re: cant start game
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