ViT-Vetal-
ViT-Vetal-

Reputation: 2471

Could not find or load main (Ubuntu Java)

I use in Windows cmd:

java -cp "E:\myproject\backend\build\WEB-INF\lib\backend.jar;E:\myproject\backend\libs*" com.droid.myproject.backend.BackendServer

but after put next string in Ubuntu terminal, I get

java -cp "/home/droid/andro/staging1/myproject/backend/build/WEB-INF/lib/backend.jar;/home/droid/andro/staging1/myproject/backend/libs/*" com.droid.myproject.backend.BackendServer

Error: Could not find or load main class com.droid.myproject.backend.BackendServer

What is my fault?

Upvotes: 0

Views: 302

Answers (1)

Jens
Jens

Reputation: 69470

remove the quotes from classpath and use the ":" as seperator

Upvotes: 2

Related Questions