Why do I see a Java 'usage' error when I run rtiddsgen on Windows?

The short answer is that you need to remove the trailing backslash from your NDDSHOME environment variable.

The rtiddsgen code generator calls a Java program within a batch script. This script passes %NDDSHOME% as a define argument to java. If NDDSHOME ends with a backslash, the shell escapes the quote and interprets the rest of the command as a string. When this happens, the java binary never sees the remaining arguments, causing an error similar to: 

Usage: java [-options] class [args...] 

(to execute a class) 

or 

Usage: java [-options] -jar jarfile [args...]

(to execute a jar file) 

Removing the trailing backslash in NDDSHOME fixes the problem.

Platform: