Guys, sorry to bother you but I'm stuck with this annoying issue.
I have a java piece that I need to run from the windows task scheduler.
I was doing this in windows XP without any issues, now I moved to Win7 and it stopped working.
The particular thing is, I have a gigantic classpath here, so what I did is, use a MANIFEST.MF file to declare all the jars that I need to run my script, and then, a simple .cmd file to execute the script:
java -cp myApp.jar com.company.MainClass
If I run the .cmd file double clicking on it, or at the command line, everything goes fine.
If I call the same .cmd file from the windows task scheduler, I get all sort of NoClassDefFound exceptions, from missing libraries that are contained inside that MANIFEST.MF