Hello,

please try the following:
java -cp
/opt/lib/*:/path-to-your-working-directory-where-class-files-are-stored/
com.cache.init.ServerNodeCodeStartup

I think that these links will be very helpful for you:
https://stackoverflow.com/questions/219585/including-all-the-jars-in-a-directory-within-the-java-classpath
https://docs.oracle.com/javase/10/tools/java.htm#GUID-3B1CE181-CD30-4178-9602-230B800D4FAE__BABDJJFI

Thanks.


вт, 17 июл. 2018 г. в 18:35, Skollur <skol...@idbny.com>:

> Running below command in UNIX and getting error.....it runs fine in windows
> in eclipse..any help on this?
>
> 1. java -cp /opt/lib/*.jar:/opt/com/test/cache/*.*:/opt/com/test/config/*.*
> ServerNodeCodeStartup               Error: Could not find or load main
> class
> ServerNodeCodeStartup
>
> 2. java -cp /opt/lib/*.jar:/opt/com/test/cache/*.*:/opt/com/test/config/*.*
> com.test.cache.ServerNodeCodeStartup               Error: Could not find or
> load main class ServerNodeCodeStartup
>
>
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

Reply via email to