Six Stars

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

 

 

 

 

  • Talend Studio
1 ACCEPTED SOLUTION

Accepted Solutions
Six Stars

Re: Could not find or load main class

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.

 

 

12 REPLIES
Moderator

Re: Could not find or load main class

Hi,

What's your OS? Does this issue repro on all jobs or a specific job on big data 6.3.0? Does this issue repro on other build version? V 6.4? Is your java environment set correctly?

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Six Stars

Re: Could not find or load main class

im running on mac os seirra 64 bit. 

the issue if affecting all jobs, i cannot even just run a blank talend job.

 

i have set my paths as follows 

JDK:   

export JAVA_HOME=/Library/Java/JavaVirtualMachines/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home

 

and in talend studio my JRE library points to :

/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home

 

currently i am only using talend studio big data V6.3 and had no issue till today, even earlier my setup was working fine, but suddenly stopped working.

Moderator

Re: Could not find or load main class

Hi,

Is there any more error message in log? Which is located in <Talend Studio installation path>/workspace/.metadata/.log

Is it a random issue?

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Six Stars

Re: Could not find or load main class

I cant find the /.metadata/.log path in the workspace folder?
Six Stars

Re: Could not find or load main class

this is my folder set up

Moderator

Re: Could not find or load main class

Hello,

Is there any log under your configuration folder?

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Six Stars

Re: Could not find or load main class

no nothing under there either. is it created by default or do i have to set up in Talend studio preferences to make a log location??

Moderator

Re: Could not find or load main class

Hi,

Can you start up your studio successfully  without error? Does this issue only repro when build a job? Could you please go to “Window > Show view > General > Error Log” to see if there is any error message?

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Six Stars

Re: Could not find or load main class

i am running in just the studio which indeed does start up without any errors . I am just running it in studio not building it.

 

these are the following log error i get :

 

eclipse.buildId=unknown
java.version=1.8.0_77
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_GB
Framework arguments: -keyring /Users/joeldasari/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -keyring /Users/joeldasari/.eclipse_keyring -showlocation

org.talend.platform.logging
Info
Wed Aug 09 10:56:07 BST 2017
2017-08-09 10:56:07,201 INFO org.eclipse.m2e.core.internal.lifecyclemapping.LifecycleMappingFactory - Using NULL lifecycle mapping for MavenProject: org.talend.master.local:code.Master:6.3.0 @ /Users/joeldasari/Documents/Software/TOS_BD-20161026_1219-V6.3.0/workspace/.Java/pom.xml.
-----------------------------


eclipse.buildId=unknown
java.version=1.8.0_77
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_GB
Framework arguments: -keyring /Users/joeldasari/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -keyring /Users/joeldasari/.eclipse_keyring -showlocation

org.talend.platform.logging
Info
Wed Aug 09 10:56:06 BST 2017
2017-08-09 10:56:06,657 INFO org.talend.designer.core.runprocess.Processor - Command line: java -Xms256M -Xmx1024M -Dfile.encoding=UTF-8 -cp /Users/joeldasari/Documents/Software/TOS_BD-20161026_1219-V6.3.0/workspace/.Java/target/classes:.:/Users/joeldasari/Documents/Software/TOS_BD-20161026_1219-V6.3.0/workspace/.Java/lib/dom4j-1.6.1.jar:/Users/joeldasari/Documents/Software/TOS_BD-20161026_1219-V6.3.0/workspace/.Java/lib/log4j-1.2.16.jar: local.test_0_1.test --context=Default --stat_port=3585
-----------------------------


eclipse.buildId=unknown
java.version=1.8.0_77
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_GB
Framework arguments: -keyring /Users/joeldasari/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -keyring /Users/joeldasari/.eclipse_keyring -showlocation

org.talend.platform.logging
Info
Wed Aug 09 10:56:06 BST 2017
2017-08-09 10:56:06,240 INFO org.eclipse.m2e.core.internal.lifecyclemapping.LifecycleMappingFactory - Using NULL lifecycle mapping for MavenProject: org.talend.master.local:code.Master:6.3.0 @ /Users/joeldasari/Documents/Software/TOS_BD-20161026_1219-V6.3.0/workspace/.Java/pom.xml.

Six Stars

Re: Could not find or load main class

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.

 

 

Six Stars

Re: Could not find or load main class

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

Moderator

Re: Could not find or load main class

Hello,

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

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.