Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Could not find or load main class

 

I have  already tried the solutions recommended by other posts on the community:

- install path with no spaces

- running on java 1.8_77

- cleaned up work space

- fresh install of talend

 

None of the above have resolved my issue. I am running talend on my local machine

 

i am running talend studio for big data 6.3.0

with 

java jdk is 1.8_77

 

talend path is  

/Users/me/Documents/Software/TOS_BD-20161026_1219-V6.3.0/TOS_BD-macosx-cocoa

 

can some one help as i have exhausted all possible solutions.

let me know if any other information can be provided

 

 

 

 

Labels (2)
36 Replies
Anonymous
Not applicable
Author

Solution FOUND !!

 

It seems i have added and extra java library in the extensions folder where the java install path is. somehow this effected talend although im not sure why. i have now removed this extra library and it works again.

 

 

Anonymous
Not applicable
Author

just to add to the solution, Any extra error or hints can be found by changing from integration mode (top right icon ), into java mode by clicking on the little icon at the top to change modes


Screen Shot 2017-08-09 at 12.03.50.png
Anonymous
Not applicable
Author

Hello,

Great this issue has been fixed. Thanks for posting your issue here.

Best regards

Sabrina

Anonymous
Not applicable
Author

You could use java 9 by adding the line 

--add-modules=ALL-SYSTEM 

to TOS_DI-20170623_1246-V6.4.1\plugins\org.talend.rcp_6.4.1.20170623_1246\eclipse.ini

-vmargs
--add-modules=ALL-SYSTEM

 

and to TOS_DI-win-x86_64.ini

-Dosgi.requiredJavaVersion=1.8
--add-modules=ALL-SYSTEM

 

Anonymous
Not applicable
Author

please, can you tell me in detail  how to solve this  error?!!! 

where is extensions folder? which libraries i need to remove ??

thanks

Anonymous
Not applicable
Author

Hi All,

I have an issue "could not find or load the main class" when I run the job from ide, I have instructed to check java installation path and environment setup everything, I have no idea to resolve this,

I have checked my installation path, there are no blank spaces,

this is the below environment setup,

JAVA_HOME - C:\Program Files\Java\jdk1.8.0_162\

JRE_HOME- C:\Program Files\Java\jre1.8.0_162\

TALEND_HOME -C:/Talend/6.4.1

path - C:\Program Files\Java\jdk1.8.0_162\bin   

operating system - Windows 8.1 or Windows Server 2012 R2 

can you have an alternative way to resolve this?

Anonymous
Not applicable
Author

Hi please mention that extensions folder where the java installation path.

Anonymous
Not applicable
Author

Hello,

Could you ensure JDK bin is included in your PATH environment variable and is being reached?

Best regards

Sabrina

Anonymous
Not applicable
Author

I have included JDK bin path to PATH variable also but it's not working.  Still, maintain the error "
Error: Could not find or load main class
" . is there any alternate way to resolving this?

Anonymous
Not applicable
Author

Hello,

Does this error "Error: Could not find or load main class" repro on all your jobs or a specific one?

We cannot repro this issue on our side. Could you please give us more information about your currrent situation? Which will be helpful for us to address your issue.

Thanks for your time.

Best regards

Sabrina