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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Setting classpath during Run/Advanced Settings

Hello,
I am attempting to set the classpath on the Run  Job/Advanced Settings screen. But Talend cannot recognize the command.
Here is my argument
-cp"C:\MyDirectory\Components".
1) Talend constantly removes the space between the -cp and the directory.
Anyone can suggest how to set the Argument for the classpath?
Labels (2)
6 Replies
Anonymous
Not applicable
Author

Hi,
Do you want to set classpath in Run/Advanced settings for installing custom component? What does your job requirement look like?
Best regards
Sabrina
Anonymous
Not applicable
Author

Hi Xdshi . Thanks for responding. That is correct. Inside of the Run Job, I have a component that runs an external JAR (already included). The first thing this JAR does is it 
looks for a configuration file in the classpath directory specified. 
I get the following errors with the options I tried below :
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Unrecognized option: 
-cp:C:\ MyDirectory\Components
-cp:"C:\ MyDirectory\Components"
-XX:cp="C:\ MyDirectory\Components"
Anonymous
Not applicable
Author

Hi,
Have you already checked document about: TalendHelpCenter:Installing a custom component?
Best regards
Sabrina
Anonymous
Not applicable
Author

Hi Xdshi,
Yes I have. Nothing related to setting classpath. I may have found a possible solution but need an expert  to verify. In File/Edit Project Properties/Build/Shell/BAT, there is a entry stating the following where  %NXCAS_CP% was entered by myself:
%~d0
cd %~dp0
java ${talend.job.jvmargs} -cp %NXCAS_CP% ${talend.job.bat.classpath} ${talend.job.class} ${talend.job.bat.addition} %*
How do I configure this so this system variable is always entered in the build path.
Thanks.
Max 
Anonymous
Not applicable
Author

Hi Max, 
We will make an investigation on your issue then come back to you as soon as we can.
Best regards
Sabrina
fred271828
Contributor
Contributor

Was there ever a solution to this issue?

 

Search engines know about these issues, so probably best to delete them if not resolved.  It will make the process easier for future people asking the same questions.