m2u icon indicating copy to clipboard operation
m2u copied to clipboard

Error: Could not find or load main class com.tguzik.

Open philipbannon opened this issue 10 years ago • 4 comments

Hey,

Thanks for taking the time to build this tool. I downloaded the zip file and ran the mvn command however when I try to use the outputted Jar file I get the following:

"Error: Could not find or load main class com.tguzik."

Here's the command I'm running:

java -jar m2u.jar --input /src/test/jmeter/results/xml/JMeterResults-as-nirvana-11112014043629PM.jtl --output jmeter.xml

philipbannon avatar Nov 11 '14 16:11 philipbannon

Hi,

Could you please try building the jar with this command mvn clean test assembly:single and retesting if it works for you?

Thanks

tguzik avatar Nov 16 '14 22:11 tguzik

Thanks for the feedback @tguzik

So when I execute that command I get the following error now:

mvn clean test assembly:single [INFO] Scanning for projects... [INFO] [INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1 [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building m2u 2014.xx-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ m2u --- [INFO] Deleting /Users/philip.bannon/Downloads/m2u-master/build [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ m2u --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /Users/philip.bannon/Downloads/m2u-master/src/main/resources [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ m2u --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 20 source files to /Users/philip.bannon/Downloads/m2u-master/build/classes [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ m2u --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /Users/philip.bannon/Downloads/m2u-master/src/test/resources [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ m2u --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 7 source files to /Users/philip.bannon/Downloads/m2u-master/build/test-classes [INFO] [INFO] --- maven-surefire-plugin:2.7.1:test (default-test) @ m2u --- [INFO] Surefire report directory: /Users/philip.bannon/Downloads/m2u-master/build/surefire-reports


T E S T S

Concurrency config is parallel='classes', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false Running com.tguzik.m2u.xml.JmeterXmlConverterTest Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.177 sec Running com.tguzik.m2u.data.JtlToJunitConverterTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0 sec Running com.tguzik.m2u.data.JtlToJunitConverterTest Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.196 sec <<< FAILURE! Running com.tguzik.m2u.xml.JunitXmlConverterTest Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.179 sec Running com.tguzik.util.xstream.OmittingXStreamTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.174 sec Running com.tguzik.util.xstream.AbstractXStreamConverterTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.173 sec

Results :

Failed tests: testParsing(com.tguzik.m2u.data.JtlToJunitConverterTest)

Tests run: 9, Failures: 1, Errors: 0, Skipped: 1

[INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.176 s [INFO] Finished at: 2014-11-17T08:21:31+00:00 [INFO] Final Memory: 15M/206M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.7.1:test (default-test) on project m2u: There are test failures. [ERROR] [ERROR] Please refer to /Users/philip.bannon/Downloads/m2u-master/build/surefire-reports for the individual test results. [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

philipbannon avatar Nov 17 '14 08:11 philipbannon

I'll look into this.

tguzik avatar Nov 17 '14 18:11 tguzik

That test has been suppressed. The project however needs some love, so today and during few next days I'm going to update it. I'll close this issue once that is done and the code is squeaky clean.

tguzik avatar Nov 23 '14 23:11 tguzik