I have this error that only happens when I run jDOSBox in my Spigot plugin project in my IDE. It doesn't happen when running the jar. It's when I try to mount the C drive with a long directory (eg. C:\Users\Anston Sorensen\IdeaProjects\Plugin Development\VMComputers). The Java version doesn't matter. I don't understand why running jDOSBox inside the project vs the jar causes this.
Here is the stack trace:
java.lang.StringIndexOutOfBoundsException: begin 0, end 6, length 4
at java.base/java.lang.String.checkBoundsBeginEnd(String.java:4604)
at java.base/java.lang.String.substring(String.java:2707)
at jdos.dos.DOS_Drive_Cache.CompareShortname(DOS_Drive_Cache.java:591)
at jdos.dos.DOS_Drive_Cache.CreateShortNameID(DOS_Drive_Cache.java:548)
at jdos.dos.DOS_Drive_Cache.CreateShortName(DOS_Drive_Cache.java:488)
at jdos.dos.DOS_Drive_Cache.CreateEntry(DOS_Drive_Cache.java:726)
at jdos.dos.DOS_Drive_Cache.ReadDir(DOS_Drive_Cache.java:123)
at jdos.dos.DOS_Drive_Cache.FindDirInfo(DOS_Drive_Cache.java:640)
at jdos.dos.DOS_Drive_Cache.OpenDir(DOS_Drive_Cache.java:95)
at jdos.dos.DOS_Drive_Cache.SetBaseDir(DOS_Drive_Cache.java:82)
at jdos.dos.drives.Drive_local.<init>(Drive_local.java:152)
at jdos.dos.Dos_programs$MOUNT.Run(Dos_programs.java:295)
at jdos.misc.Program$1.call(Program.java:76)
at jdos.Dosbox$1.call(Dosbox.java:75)
at jdos.Dosbox.DOSBOX_RunMachine(Dosbox.java:205)
at jdos.cpu.Callback.CALLBACK_RunRealInt(Callback.java:158)
at jdos.shell.Dos_shell.Execute(Dos_shell.java:755)
at jdos.shell.Dos_shell.DoCommand(Dos_shell.java:633)
at jdos.shell.Dos_shell.ParseLine(Dos_shell.java:173)
at jdos.shell.Dos_shell.Run(Dos_shell.java:98)
at jdos.shell.Shell$5.call(Shell.java:398)
at jdos.misc.setup.Config.StartUp(Config.java:97)
at jdos.gui.MainBase.main(MainBase.java:536)
at jdos.gui.MainFrame$4.run(MainFrame.java:247)
at java.base/java.lang.Thread.run(Thread.java:833)
I have no idea where to begin on this and again it's bizarre that this error happens only when I run jDOSBox in my project (via jdos.gui.MainFrame). It doesn't happen with mount C C:\
I guess it doesn't affect the actual development of the project though, because DOSBox automatically uses whatever disk images are in its working directory
I have this error that only happens when I run jDOSBox in my Spigot plugin project in my IDE. It doesn't happen when running the jar. It's when I try to mount the C drive with a long directory (eg. C:\Users\Anston Sorensen\IdeaProjects\Plugin Development\VMComputers). The Java version doesn't matter. I don't understand why running jDOSBox inside the project vs the jar causes this.
Here is the stack trace:
I have no idea where to begin on this and again it's bizarre that this error happens only when I run jDOSBox in my project (via jdos.gui.MainFrame). It doesn't happen with
mount C C:\I guess it doesn't affect the actual development of the project though, because DOSBox automatically uses whatever disk images are in its working directory