0

I'm preparing a deploy using Distcommand in Windows 7. (play 2.0.4)

The zip is generated successful but when I'm trying to start the application with this command:

java -Dhttp.port=9001 -cp "e:\deploy\test-1.0-SNAPSHOT\lib\*" play.core.server.NettyServer

The console displays this error:

Error: Could not find or load main class e:\deploy\test-1.0-SNAPSHOT\lib\ch.qos.logback.logback-core-logback-core-1.0.0.jar

I've checked that this jar is generated by Play Framework in... c:\Play\play-2.0.4\repository\cache\ch.qos.logback\

If I execute start or run command, the compilation and execution are successful.

Using stage command I receive other error:

[error] {file:/C:/test/}test/*:stage: java.io.IOException: Cannot run program "chmod": CreateProcess error=2, The system cannot find the file specified

I'm not sure but would be related with the original problem.

Market
  • 450
  • 6
  • 17

1 Answers1

2

The magic of ; In the fist command I added ; after the * this prevent Windows pre-processor from expanding the wildcard.

Finally:

java -Dhttp.port=9001 -cp "e:\deploy\test-1.0-SNAPSHOT\lib\*;" play.core.server.NettyServer

I've deployed in other windows system x64 previously and the ; wasn't necessary.

Community
  • 1
  • 1
Market
  • 450
  • 6
  • 17