Unable to execute java program in jenkins? -


i trying execute simple java class through jenkins , have followed below post no results,please how execute complete java program in jenkins.

how compile , run simple java file in jenkins on windows

always getting error

building in workspace c:\program files (x86)\jenkins\workspace\run java class [run java class] $ cmd /c call c:\windows\temp\hudson7739288570136427109.bat  c:\program files (x86)\jenkins\workspace\run java class>javac "e:\java_tutorials\javapractices\src\com\practice\javssupercars.java"  javac: file not found: e:\java_tutorials\javapractices\src\com\practice\javssupercars.java usage: javac <options> <source files> use -help list of possible options  c:\program files (x86)\jenkins\workspace\run java class>java supercars  error: not find or load main class supercars  c:\program files (x86)\jenkins\workspace\run java class>exit 1  build step 'execute windows batch command' marked build failure finished: failure 

the post referred sample example java class executed on jenkins workspace folder directly, application different project folder structure.

jenkins doesn't identify main class without adding classpath implicitly. here necessity of setting classpath more important.

in execute windows batch command section, need traverse main class , need issue command compile same.

hope helps!


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -