Can not save Module

Win 8.1 Fresh install.
Using 3.6.2
java.nio.file.FileSystemException: C:\Users\Scott\Vassal Modules\The Longest Day v → C:\Users\Scott\Vassal Modules\The Longest Day v The process cannot access the file because it is being used by another process
at java.base/sun.nio.fs.WindowsException.translateToIOException(
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(
at java.base/sun.nio.fs.WindowsFileCopy.move(
at java.base/sun.nio.fs.WindowsFileSystemProvider.move(
at java.base/java.nio.file.Files.move(
at VASSAL.launch.ModuleEditorWindow.lambda$save$0(
at VASSAL.launch.EditorWindow.saver(
at VASSAL.launch.EditorWindow$2.actionPerformed(
at java.desktop/javax.swing.AbstractButton.fireActionPerformed(
at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(
at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(
at java.desktop/javax.swing.DefaultButtonModel.setPressed(
at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(
at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(
at java.desktop/java.awt.Component.processMouseEvent(
at java.desktop/javax.swing.JComponent.processMouseEvent(
at java.desktop/java.awt.Component.processEvent(
at java.desktop/java.awt.Container.processEvent(
at java.desktop/java.awt.Component.dispatchEventImpl(
at java.desktop/java.awt.Container.dispatchEventImpl(
at java.desktop/java.awt.Component.dispatchEvent(
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(
at java.desktop/java.awt.Container.dispatchEventImpl(
at java.desktop/java.awt.Window.dispatchEventImpl(
at java.desktop/java.awt.Component.dispatchEvent(
at java.desktop/java.awt.EventQueue.dispatchEventImpl(
at java.desktop/java.awt.EventQueue$
at java.desktop/java.awt.EventQueue$
at java.base/
at java.base/$JavaSecurityAccessImpl.doIntersectionPrivilege(
at java.base/$JavaSecurityAccessImpl.doIntersectionPrivilege(
at java.desktop/java.awt.EventQueue$
at java.desktop/java.awt.EventQueue$
at java.base/
at java.base/$JavaSecurityAccessImpl.doIntersectionPrivilege(
at java.desktop/java.awt.EventQueue.dispatchEvent(
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(
at java.desktop/java.awt.EventDispatchThread.pumpEvents(
at java.desktop/java.awt.EventDispatchThread.pumpEvents(
at java.desktop/

Something else still has an open file handle on the file you’re trying to overwrite, so windows won’t give you access.

yes Vassal, I have no other Program running.If I save as and change the name, it works, in a linux O/S it just saves it with the same name.
All I wanted to do was change the version number, I can not do that in this fresh windows install, Not exactly a good thing, Can I provide you anything to help you track this down? The module I am working on is available in the modules area The Longest Day

It may appear that way, but have you verified that in Process Manager?

You can’t have a problem like this in Linux because Linux doesn’t block opening a file for writing when there’s another process that has an open handle to the file.

The next time this happens, you could look in Resource Monitor to track down what process has the file handle which is blocking you. Details for how to run Resource Monitor are here. You might also be able to find the same information with Process Explorer.

J, WIN 8.1 does not have a resource Monitor that is Linux, This issue is not happening in my Linux machine. It is happening in this fresh clean 48 hour old WIN 8.1 install.
I have Processes, Performance, App History, Startup, Users, Details, Services in the Task Manager.

Did you look at the link? The link I gave is for Resource Monitor on Windows. There’s also a second link for Process Explorer. Both are Windows programs.

There are no handles in the associated handles I don’t know what to look for?
Why can I make changes in my Mint 18.3 Machine, but not in this new win 8.1?
To me this is weird.

Already explained above. Windows prevents writes to files which another process has open. Linux does not.

Sorry did not see that.

Use the search box on the Associated Handles tab to search for the the two files named at the top of the error message.

You need to do this immediately after having the error to maximize the the chances of catching what has the open file handle.

Image PID Type Handle Name
java.exe 1812 File C:\Users\Scott\Vassal Modules\The Longest Day v

this is the only process it is reporting no matter how many times I try to save the vmod.

The second file The Longest Day v has no handles at all no matter how many times I try to save the mod it gives me no handles for the .bak

Ok. Next you need to compare that PID with the PIDs of all the java.exe processes which are open at the time, so we can determine which process that one is. You should be able to get a process list from one of the other tabs in Resource Monitor.

Image PID Description Status Threads CPU Average CPU
javaw.exe 1676 OpenJDK Platform binary Running 38 0 0.00
Image PID Description Status Threads CPU Average CPU
java.exe 3488 OpenJDK Platform binary Terminated 21 45 22.35

I think ours is 1812

Image PID Description Status Threads CPU Average CPU
java.exe 1812 OpenJDK Platform binary Running 43 0 0.00

If I change the name of the vmod file from the one I am running. It works.

Try to get the command line arguments for those two processes. We need that to be able to identify what they are.

You have stepped beyond my Ability.
How do I get those CMD lines?

I hate Windows, and I hate Mondays.

I am going to have a Cigar.

Does it help you that it seems to be only this mod other mods are saving under their same name?