on 09-01-2013 9:40 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.