shell - run a java program -



shell - run a java program -

i want run java programme using shell script. java programme in p2 directory , name maxconnect4 , have compiled it, class name maxconnect4. write shell commands this:

java p2/maxconnect4 arg1 arg2 arg3

this shell command not work. give error: exception in thread "main" java.lang.noclassdeffounderror: p2/maxconnect

however, compile java programme in way:

javac p2/*.java, , works.

just utilize java -cp p2 maxconnect4 arg1 arg2 arg3. -cp sets classpath of jvm. edit: assume don't utilize bundle maxconnect4.

java shell command

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -