Jump to content

Recommended Posts

Posted

I think Forge may have an issue with a UNC path for the .minecraft folder.  I run my minecraft instances from a NAS because there are 3 players on 4 different computers in the house and they move around.  I use the batch file trick of setting the appdata path to the path to get it all to run from the directory.  After an installation of Forge, I get an app crash upon running the Forge profile.  If I do a drive mapping to the NAS path instead of using the UNC, it works.

 

I did not find any other articles with the same beginning error line that were close to relevant in time or version. I did find this on Stackoverflow of a person that had that Java type error and it was because they had a UNC path, which is what prompted me to try the drive mapping.  http://stackoverflow.com/questions/2366270/what-does-uri-has-an-authority-component-mean

 

Steps to produce:

Get a network location set up (ex \\nas\minecraft\testfolder)

Create a batch file with the below example named runme.bat in the testfolder

Download the latest Minecraft.exe and put into the testfolder path

Run the runme.bat file

Launch the default profile once to get everything initialized

Quit Mincraft and Launcher

Run the Forge installer and install into the \\nas\minecraft\testfolder\.minecraft path

Run the runme.bat file

Choose the new Forge profile and launch it

 

Environment:

Windows 8 Pro

Java 1.7.0_25

Minecraft.exe downloaded on 8/25/2013.  661k in size

Launcher 1.2.1

Forge Installer: minecraftforge-installer-1.6.2-9.10.0.804.jar

 

Runme.bat contents

 

  Reveal hidden contents

 

 

Minecraft crash report

 

  Reveal hidden contents

 

 

ForgeModLoader-client-0.log contents

 

  Reveal hidden contents

 

Posted

1) No need for that batch file or screwing with appdata. Just use the --workDir argument in the launcher.

2) I'll have to take a look at UNC paths, they should work fine as logn as Java itself supports the underlying setup.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

  • 2 months later...
Posted

I'm in the same boat as the original poster, in that APPDATA points to a UNC path, although the details are slightly different: I'm logged into a roaming profile with folder redirection enabled.  My Documents, Pictures, AppData, etc. folders all live on a file server.  Setting the Forge profile's game directory to the mapped drive doesn't fix this error, nor does wrapping the Java command with a batch file that sets the APPDATA environment variable to the mapped drive.  Instead, one must override the value of APPDATA _before_ the launcher runs; otherwise, the classpath generated by the launcher for Forge's various support libraries will still refer to the UNC path, which will cause this error.

 

The vanilla Minecraft profile works without any difficulty.

 

P.S. I don't see where in the launcher GUI that I can specify the "--workDir" argument, but I'm guessing that I need to add it to the minecraftArguments line in "..\versions\1.6.4-Forge*\1.6.4-Forge*.json".  Is that correct?

Posted

Its not a gui feature as it's part of the boot strap.

Pass it to THE LAUNCHER.

The jar or exe file you download from minecraft.net

Ya, that.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.