Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
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

Hi,

My all the jobs have this error, not a  specific one job. i had mentioned my all details in previous msg or replies

Anonymous
Not applicable
Author

Hi,

 

When I try to run even print statement it gives an error "could not find or load the main class". please let me know what information i should give more ?

 

Thanks,

Mani

Anonymous
Not applicable
Author

Hello,

Are you using Oracle JDK 1.8 or OpenJDK? So far, we cannot repro this issue on window10, talend v 6.4.

Best regards

Sabrina

Anonymous
Not applicable
Author

Hello,

 

am using oracle jdk, below is our java -version details,

C:\Users\mani>java -version
java version "1.8.0_162"
Java(TM) SE Runtime Environment (build 1.8.0_162-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.162-b12, mixed mode)

 

Thanks,

mani

Anonymous
Not applicable
Author

Hello,

Does this issue repro on other build version? V 6.5 or V 7.0? Could you please post your installation path here?

Note: No blank space or special characters in the installation path or the workspace path

I upload my java environment setting screenshot, hope it will help.

0683p000009LyWm.png

 

Best regards

Sabrina

MartinD1
Contributor
Contributor

I had the same problem  with talend 7.0.1. In my case, there was a problem with tRunJob and mostly helped uncheck "Use specific JVM arguments" in SubJob.

0683p000009LyYc.png

 

 

Final solution was: Project Settings -> Job Settings -> Use Project Settings and check all jobs.  After this setting everything works correctly. And, surprisingly, you can set the specific JVM back and it's OK.

0683p000009LyYY.png

 

Tested on Windows 10 and Windows Server 2016. Java version "1.8.0_171" installed by classic next next (all in default)
Sorry for my English

 

Best Regards
Martin

Anonymous
Not applicable
Author

Hi,

 Below I shared my environment setup path, please take a look at with it,

 

0683p000009LydN.jpg0683p000009LydX.jpg

Anonymous
Not applicable
Author

Hello MartinG,

I had tried your idea, but in my case its not worked, facing again could not find or load the main class
Anonymous
Not applicable
Author

HI,
My talend version is 6.4.1 FYI
Anonymous
Not applicable
Author

Hello,

From your screenshot, we don't find any issue in your Java environment setting. What can you get when do java -version in cmd?

Have you tried to go to Window > Preferences >Java--> Installed JREs, selecting Edit and browsing for the appropriate JRE? Is your workspace corrupt?

Best regards

Sabrina