Hello… a few years ago I posted a question on the forums here about how to run both Java and Vassal from a flashdrive on a computer that didn’t have Java installed. With help from various sources here, I got it working and used it since then without a hitch. It’s ideal for my work environment where I have some free time over the noon hour.
However, I recently got a new desktop computer for work, and Vassal no longer works.
Vassal and JRE6 are both installed on the flashdrive. I was using the VSQL mod with Vassal 3.1.20 (due to compatibility issues) and I have a modified .bat file directing Vassal to the JRE installed on the drive.
I keep getting the following message, which I’ve never seen before:
“This application requires a Java Runtime Environment 1.5.0”
After some Googling I’ve tried a few things (reinstalling Vassal, resinstalling the JRE, downgrading to 3.1.19, creating another .bat file) and nothing appears to circumvent this. Any thoughts?
Update… for a lark I tried using the .bat file with “Run as Administrator” (as I don’t have admin rights to the desktop I’m using, which makes things difficult) and whoosh, Vassal runs.
I have NO IDEA why this is the case, as I never had to use this method before - I simply double-clicked on the Vassal .exe file and it always ran fine.
FYI, the computer is running Windows 7 and the .bat file on my flashdrive contains the following:
REM Execute this file to launch VASSAL on Windows
set path=.;%1%\VassalUSB\jre6\bin
start javaw -client -cp lib/Vengine.jar VASSAL.launch.ModuleManager %*
If anyone wants to weigh in with their thoughts from a technical perspective, I’m all ears, seriously.
Update… for a lark I tried using the .bat file with “Run as
Administrator” (as I don’t have admin rights to the desktop I’m using,
which makes things difficult) and whoosh, Vassal runs.
I have NO IDEA why this is the case, as I never had to use this method
before - I simply double-clicked on the Vassal .exe file and it always
ran fine.
FYI, the computer is running Windows 7 and the .bat file on my
flashdrive contains the following:
REM Execute this file to launch VASSAL on Windows
set path=.;%1%\VassalUSB\jre6\bin
start javaw -client -cp lib/Vengine.jar VASSAL.launch.ModuleManager %*
That’s not the batch file we distribute, but it ought to work for
launching from your thumb drive.
If anyone wants to weigh in with their thoughts from a technical
perspective, I’m all ears, seriously.
My guess is that VASSAL.exe isn’t working for you due to a PATH
problem. Open a terminal. (Run “cmd”.) What output do you get
when you run ‘java -version’? What ouptut do you get when you
run ‘echo %PATH%’?
BTW, you don’t need to use 3.1.20 for VSQL anymore; a version of VSQL
compatible with 3.2 has been out for some months now.
Hi… the batchfile is one I created based on a suggestion resulting from my original inquiry about this a few years ago. It seems to do the trick, yes.
I tried running the “java -version” command in a DOS prompt but it wouldn’t recognize it. For what it’s worth, the PATH command generates the following:
Not sure what any of that means or if it’s helpful to you… but VASSAL now works as long as I select the “run as administrator” option when opening the batch file, so overall I’m satisfied!
Hi… the batchfile is one I created based on a suggestion resulting
from my original inquiry about this a few years ago. It seems to do the
trick, yes.
I tried running the “java -version” command in a DOS prompt but it
wouldn’t recognize it. For what it’s worth, the PATH command generates
the following:
I just got the same problem when I start Vassal : “This application requires a Java Runtime Environment 1.5.0”
My computer is running Windows Vista (crappy OS)
I run the latest Vassal version : 3.2.8 and I have reinstalled it before posting.
here are java versions installed on my PC : 6-update 45, 7-update 6 which I have reinstalled too.
I try to install 7-update 45 but I failed …
I also try to run vassal as admin but it fails to lauch as well. here is my PATH run as admin too :
C:\Program Files\ATI Stream\bin\x86;C:\Program Files\NVIDIA Corporation\PhysX\Common;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\hp\bin\Python;C:\Program Files\Windows Live\Shared;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\QuickTime\QTSystem;C:\Program Files\Satsuki Decoder Pack\Filtres
Thank you for some advices and please forgot some english mistakes because I’m french
I installed only one java version (I ran javara and ccleaner in order not to be polluted by older versions). Its the one installed with vassal : 1.6.0_45.
I checked whether Java works and I got the good message. But Vassal don’t run anyway
Next step I go to find Vassal’s errolog.
But I don’t find it : I don’t have a VASSAL folder in C:\Documents and Settings<username> (I’m on Vista)
I installed only one java version (I ran javara and ccleaner in order
not to be polluted by older versions). Its the one installed with vassal
: 1.6.0_45.
You said in your initial message that you have both Java 6 and Java 7.
Is that not the case?
Next step I go to find Vassal’s errolog.
But I don’t find it : I don’t have a VASSAL folder in C:\Documents and
Settings<username> (I’m on Vista)
What happens when you try to run VASSAL from the command line using
VASSAL.bat?