1

I try to execute a class from the command line via java command (Windows cmd). I specified the classpath as well.

java -cp bin\ training.TestClient

works. But I can't specify another folder with a jar.

java -cp bin\:lib\ojdbc7.jar training.TestClient

If I try this I get an "main class not found" error.

How can I include the lib\ojdbc7.jar in the classpath as well?

knowledge
  • 871
  • 1
  • 9
  • 23

1 Answers1

3

On Windows the path separator is ;. : only works on *nix systems.

Vampire
  • 32,892
  • 3
  • 65
  • 94