# Module Updater Java Exception

Hi everyone,

I attempted to make a module updater following the help file and the one forum post about this item. Sadly, when I tried to run the exe .jar file I got this:

So I attempted to do a java cmd line execute and got this information as well:

Any insight on this issue? I believe I have the most up-to-date version of Java as well. I’m currently using Vassal v3.2.11, I haven’t updated yet nor tried the newest version to see if this is fixed.

Thanks!

Thus spake Zerrian:

Hi everyone,

I attempted to make a module updater following the help file and the one
I got this:

[1]

So I attempted to do a java cmd line execute and got this information as
well:

[2]

Any insight on this issue? I believe I have the most up-to-date version
of Java as well.

The immediate problem is that you don’t have Vengine.jar on the

J.

Bumping thread, having the same problem.

How exactly do you add Vengine to the classpath?

Thus spake m351305:

Bumping thread, having the same problem.

How exactly do you add Vengine to the classpath?

The option you want is “-classpath path\to\Vengine.jar” where you
replace “path\to\Vengine.jar” with the path to Vengine.jar.

J.

without:

myMac:Infinity me$java infinityModUpdateHoverZoom.jar Exception in thread "main" java.lang.NoClassDefFoundError: infinityModUpdateHoverZoom/jar Caused by: java.lang.ClassNotFoundException: infinityModUpdateHoverZoom.jar at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247)  with Exception in thread "main" java.lang.NoClassDefFoundError: Vengine/jar Caused by: java.lang.ClassNotFoundException: Vengine.jar at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247)  This the same issue? What is the exact command you used before the second example? Something like this ought to work, but I have never used an updater like this either: java -cp .:/Applications/VASSAL.app/Contents/Resources/Java/Vengine.jar -jar infinityModUpdateHoverZoom.jar (-cp is just a short alias for -classpath) [edit: I think the key thing you’re missing is the -jar before the jar name, the . on the front of the classpath is probably not important when using -jar] Just used the line you kindly provided above & got this. Exception in thread “main” java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory at VASSAL.tools.ZipUpdater.(ZipUpdater.java:60) Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) … 1 more Thus spake m351305: Just used the line you kindly provided above & got this. Exception in thread “main” java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory at VASSAL.tools.ZipUpdater.(ZipUpdater.java:60) Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory at java.net.URLClassLoader$1.run(URLClassLoader.java:202)