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
_AnonymousUser
Specialist III
Specialist III
Author

I just tested this again with a fresh install of TOS ESB and with a local/default workspace (i.e. inside the Studio directory) and I'm still getting the error. The job I'm testing with is just a tRowGenerator outputting to a tLogRow.
I've also:
- Emptied the C:\Users\<USERNAME>\.m2 directory (which has repopulated with the fresh install)
- Tested with the 1.7 JDK and 1.8 JDK.
- Re-installed 1.8 JDK.
- Installed all required third-party libraries.
I forgot to mention I'm using Windows 7 Pro 64-bit.
_AnonymousUser
Specialist III
Specialist III
Author

I followed this quote in order to get Talend ESB to start, however I now think this may be part of the problem:

My system is behind a proxy and I've set the proxy up in Talend. I've restored the file names and attempted to start Talend ESB again, however I've run in to the  java.lang.NullPointerException at org.talend.designer.codegen.JavaRoutineSynchronizer.doSyncRoutine(JavaRoutineSynchronizer.java:145) error again.
_AnonymousUser
Specialist III
Specialist III
Author

I followed this quote in order to get Talend ESB to start, however I now think this may be part of the problem:

My system is behind a proxy and I've set the proxy up in Talend. I've restored the file names and attempted to start Talend ESB again, however I've run in to the java.lang.NullPointerException at org.talend.designer.codegen.JavaRoutineSynchronizer.doSyncRoutine(JavaRoutineSynchronizer.java:145) error again.

Submitting the post removed my link, the original users quote is:
Hi,
I have manged to get TOS 6.0.0 working on Windows 7 64 bit by removing the suffix of ".lastUpdated" from the files maven-resources-plugin-2.7.jar.lastUpdated and maven-resources-plugin-2.7.pom.lastUpdated in the folder c:\Users\<USERNAME>\.m2\repository\org\plugins\maven-resources-plugin
Hope this helps</USERNAME>
Anonymous
Not applicable

Hi JayJay29122,
Your ESB studio cannot start or you cannot execute your job successfull? Did you also get any "java.lang.NullPointerException" exception?
Did you point JDK folder to "Installed JREs" instead of JRE?
Best regards
Sabrina


0683p000009MAYV.png
_AnonymousUser
Specialist III
Specialist III
Author

Hi JayJay29122,
Your ESB studio cannot start or you cannot execute your job successfull? Did you also get any "java.lang.NullPointerException" exception?
Did you point JDK folder to "Installed JREs" instead of JRE?
Best regards
Sabrina


Hi Sabrina,
Thanks for the response.
The ESB studio cannot start (gives a Null pointer exception) while the maven-resources-plugin-2.7.jar.lastUpdated and maven-resources-plugin-2.7.pom.lastUpdated have .lastUpdated in the name. Once I rename the files, ESB starts.
Once ESB has started I can create jobs fine however none execute or build to standalone jobs; executing a job gives me an error of "could not find or load main class".  
The JDK folder was pointed at  C:\Program Files\Java\jdk1.8.0_51

Thanks,
Jay
Anonymous
Not applicable

Hi,
Did you install both JDK 1.7 and 1.8 on your machine?
Best regards
Sabrina
_AnonymousUser
Specialist III
Specialist III
Author

Hi,
Yes, JDK 1.7 and 1.8 installed, and tested with both.
Thanks,
Jay
Anonymous
Not applicable

I managed to get this working.
I had originally followed this process to get around the start-up issue due to my system being behind a proxy:
Hi,
I have manged to get TOS 6.0.0 working on Windows 7 64 bit by removing the suffix of ".lastUpdated" from the files maven-resources-plugin-2.7.jar.lastUpdated and maven-resources-plugin-2.7.pom.lastUpdated in the folder c:\Users\<USERNAME>\.m2\repository\org\plugins\maven-resources-plugin
Hope this helps</USERNAME>

Maven apparently uses a settings.xml file sitting in <USER directory="">/.m2</USER>,  however this neither existed nor worked when a file it was created there.
What should be done instead is there is a file called maven_user_settings.xml sitting inside <TALEND esb="" installation="" directory="">/Studio/configuration</TALEND>
Add the proxy information to this file and then restart Talend (you may need to go through the /.m2/repository/org/plugins/ sub-directories and remove all .lastUpdated files). Maven should download a whole host of files into the /.m2 directory, Talend should start normally and you should be good to go! 
Obviously make sure Java JDK 1.8 is installed and that your JAVA_HOME environment variable is set.
Anonymous
Not applicable

Hi jayjay2912,
Thanks a lot for your feedback. Is your " https://community.talend.com/t5/Installing-and-Upgrading/Could-not-find-or-load-main-class/td-p/1735..." 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