File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Help with dos batch script Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Help with dos batch script" Watch "Help with dos batch script" New topic

Help with dos batch script

Martin Lira
Ranch Hand

Joined: May 26, 2004
Posts: 97
I have a batch script that invokes a java application. I get this error and dont seem to understand its cause.

My batch file looks like this:

I think theres some problem because there's a space between the "Program Files"

Any help is appreciated.

Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

A quoted blank should work.

but perpaps your com.mypackage.JavaApplication isn't found.
If in your current working dir (C:\sample\dir)

I agree. Here's the link:
subject: Help with dos batch script
It's not a secret anymore!