Skip to main content
1-Visitor
September 20, 2017
Solved

Could not find or load main class when running ThingPredictor

  • September 20, 2017
  • 2 replies
  • 3847 views

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

Best answer by cmorfin

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

2 replies

cmorfin19-TanzaniteAnswer
19-Tanzanite
September 20, 2017

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

1-Visitor
September 20, 2017

Hi Christophe Morfin​,

You are Awesome. Many thanks for the help.

Thanks,

Azim