cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Could not find or load main class when running ThingPredictor

ahawaldar-2
6-Contributor

Could not find or load main class when running ThingPredictor

Hi,

I am following this tutorial PTC

When Run the following command to deploy the ThingPredictor JAR file from the command line:

java –jar thingpredictor.jar server prediction-with-analysis.yml

I am getting this error

Could not find or load main class


​Please let me know what I am missing here?

Thanks,

Azim

1 ACCEPTED SOLUTION

Accepted Solutions
cmorfin
19-Tanzanite
(To:ahawaldar-2)

Hi Azim

one common issue that leads to this error is a problem durign copy and paste of the command.

Try retyping the - character in front of jar in java –jar thingpredictor.jar server prediction-with-analysis.yml


If it still does not work, please post a screenshot of the command and error so we can see the full message.


Thank you

Kind regards

Christophe

View solution in original post

2 REPLIES 2
cmorfin
19-Tanzanite
(To:ahawaldar-2)

Hi Azim

one common issue that leads to this error is a problem durign copy and paste of the command.

Try retyping the - character in front of jar in java –jar thingpredictor.jar server prediction-with-analysis.yml


If it still does not work, please post a screenshot of the command and error so we can see the full message.


Thank you

Kind regards

Christophe

ahawaldar-2
6-Contributor
(To:cmorfin)

Hi Christophe Morfin​,

You are Awesome. Many thanks for the help.

Thanks,

Azim

Top Tags