Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

Cannot create Modular Input for Java SDK

$
0
0
I have been following the steps mentioned in http://dev.splunk.com/view/java-sdk/SP-CAAAER2 and I'm stuck at step 1d. jar cmf MANIFEST.MF myinput.jar com java -jar myinput.jar --scheme I run these commands in my Eclipse IDE workspace at workspace/Modular Input(my project name)/src. The first command works fine and a jar file gets created. However, the second command gives an error - **Could not find or load main class com.test.MyInput**. I know the file exists. The directory structure is - ..workspace/Modular Input/src com - splunk - test - MyInput.class - MyInput.java MANIFEST.MF myinput.jar The MANIFEST.MF file looks like this - Manifest-Version: 1.0 Main-Class: com.test.MyInput I'm guessing its either an issue with execution of the JAR file or my directory structure, but I haven't been able to pinpoint the issue yet. Java is installed (I even reinstalled it, just to be sure) and I set the path of my PATH environment variable to C:\Program Files\Java\jdk1.8.0_101\bin. Also, I have referenced the Java SDK JAR file as an external library in my Eclipse project folder.

Viewing all articles
Browse latest Browse all 47296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>