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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
_AnonymousUser
Specialist III
Specialist III

Could not find or load main class

Hi,
I'm encountering an error when executing a small job in Talend Open Studio for ESB:
Error: Could not find or load main class miscellaneous.standing_orders_0_1.STANDING_ORDERS
Some points that might help shed some light:
- This error is only encountered when executing the job in TOS ESB. 
- I am unable to build a Standalone Job job. It appears to complete successfully but no zip file is produced and no error is shown. Building to an OSGI Bundle produces a file.
- The TOS ESB directory has no spaces: C:/TESB/
- My workspace is on a mapped network drive, however this also has no spaces in the name (and never caused problems with TOS ESB 5.6).
- I am using the Java 1.7 JDK
Any help would be greatly appreciated.
Thanks,
Jay

Labels (3)
26 Replies
Anonymous
Not applicable

Hi,
I tried to run job after adding the proxy information in maven_user_settings.xml. But still giving Error: Could not find or load main class (all .lastUpdated files from .m2 folder are also removed)
Anonymous
Not applicable

Hi neha 1993,
Could you please also paste the whole log of this "Could not find or load main class " into forum which is helpful for us to make a further investigation on this issue?
In addition, have you tried to make a testing on the 6.1.0M1 to see if it is Ok with you?
Best regards
Sabrina
Anonymous
Not applicable

Tried with 6.1.0M1 also.Not working 0683p000009MPcz.png
Anonymous
Not applicable

Hi jayjay2912,
Thanks a lot for your feedback. Is your "Could not find or load main class" issue also fixed ?
Could you please take a try on the 6.1.0M1 to see if everything is OK with you?

Best regards
Sabrina

Hi Sabrina,
Yes, the "Could not find or load main class" is fixed and I've managed to get Talend started and building jobs again.
Neha1993, all I can think of is to check the following:

Java JDK 1.8 installed.
JAVA_HOME is set to the <JDK 1.8="" dir="">\jre</JDK> directory. Run "echo %JAVA_HOME%" in a cmd prompt (assuming you're on Windows) to confirm this. Just run "echo JAVA_HOME" if you're on Linux.
This is an example of my maven_user_settings.xml file (with the proxy address and port changed).  However as you are getting Talend to start this may not be your problem.

<SETTINGS xmlns="">
xmlns:xsi=""
xsi:schemaLocation=" ">
<PROXIES>
<PROXY>
<ACTIVE>true</ACTIVE>
<PROTOCOL>http</PROTOCOL>
<HOST>proxy.mynetwork.local</HOST>
<PORT>3000</PORT>
</PROXY>
</PROXIES>
</SETTINGS>


Thanks,
Jay
Anonymous
Not applicable

Hi jayjay2912,
Great it is fixed. Would you mind making a testing on the 6.1.0M1 to see if this issue is fixed without adding the proxy information in maven_user_settings.xml?
Great thanks!
Best regards
Sabrina
Anonymous
Not applicable

Hi Sabrina , 
I did all the mentioned above and it does not work for me. Could it be because of maven , I see the when i am running the job the error is thrown after the step:

Liana 
Anonymous
Not applicable

Sorry , I did not paste it : 
Anonymous
Not applicable

Liana
Anonymous
Not applicable

This is the last operation talend does
Anonymous
Not applicable

It does not paste it) so the last operation before throwing "Could not find or load main class " is : Refreshing maven model . 
Can I work without maven , if yes , how ? 
Thanks ,
Liana