cancel
Showing results for 
Search instead for 
Did you mean: 

Run an NWDS project from the command promt

andriy_klymenko
Explorer
0 Kudos

Hi, Everyone,

     I've created a project in NWDS 7.1 and I'm able to build and run it. But I would like to run it from the

command promt by creating a *.bat file.

     In NWDS I've added required extra libraries (*jar) to the build path. But when I try to run a project

using "java myproject" these libraries were not connected. Use of SET CLASSPATH variable didn't help.

     Suggest me please, how to connect these jar libraries correctly.

Best regards,

Andriy

Accepted Solutions (0)

Answers (1)

Answers (1)

anandvithal
Active Participant
0 Kudos

Hi Andriy,

Copy all the jar files used in NWDS project into a folder say lib and place this lib folder in the same folder as the .bat file that you create.

In the .bat file set the class path variable as below

set CLASSPATH=.;lib/*.jar

then after the above statement in .bat file add the command to execute your main class

java com.sap.myprogram

Thanks,

Anand