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

Could not find or load main class when running ThingPredictor

ahawaldar-2
5-Regular Member

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

View solution in original post

ahawaldar-2
5-Regular Member
(To:cmorfin)

Hi Christophe Morfin​,

You are Awesome. Many thanks for the help.

Thanks,

Azim

Announcements