Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Possible to execute built job from directory with spaces?

Hi,

 

I just built a Talend job for Windows, in order to execute the job from the generated batch file.

I originally stored the built job folder within a folder called "Talend Showcase - Call Center Analytics", but upon execution the job fails with "Error: could not find or load main class Showcase".

However, the job works perfectly when I move it within a folder named "TalendShowcase_CallCenterAnalytics_BuiltTalendJob".

 

Just curious if it's possible to modify the built job to execute the job within a directory that contains spaces.

 

Thanks in advance.

 

 

Regards,

Veronica

Labels (2)
1 Solution

Accepted Solutions
vapukov
Master II
Master II

 Hi,

 

it is possible, just not interesting because of it is a  "Bad Practice" (same as column in db with space, or local language filenames and etc)

if it needed, you could edit .bat file

%~d0
cd %~dp0
java -Dtalend.component.manager.m2.repository=%cd%/../lib -Xms256M -Xmx1024M -cp .;

just replace %cd%/ for ./

%~d0
cd %~dp0
java -Dtalend.component.manager.m2.repository=./../lib -Xms256M -Xmx1024M -cp .;

and it will work

View solution in original post

1 Reply
vapukov
Master II
Master II

 Hi,

 

it is possible, just not interesting because of it is a  "Bad Practice" (same as column in db with space, or local language filenames and etc)

if it needed, you could edit .bat file

%~d0
cd %~dp0
java -Dtalend.component.manager.m2.repository=%cd%/../lib -Xms256M -Xmx1024M -cp .;

just replace %cd%/ for ./

%~d0
cd %~dp0
java -Dtalend.component.manager.m2.repository=./../lib -Xms256M -Xmx1024M -cp .;

and it will work