skadistats / clarity-examples

Example code for clarity
BSD 3-Clause "New" or "Revised" License
113 stars 37 forks source link

Missing Main Class in Examples #2

Closed sarkar-anwar closed 9 years ago

sarkar-anwar commented 10 years ago

Hi, I am new in Java programming, so I might be doing something wrong here. I want to extract the combat log. I used the "mvn -P combatlog package" command and then "java -jar target/combatlog.jar replay.dem" to parse the combat log. But it says Error: Could not find or load main class skadistats.clarity.examples.combatlog.Main. I extracted the combatlog.jar file and it does not have the example folder. Can you tell me what I am doing wrong?

spheenik commented 10 years ago

Hi, I just did everything you described on my side, and it works here. So something must have gone wrong on your side, although it's hard for me to guess what.

Can you please check that you run a 1.7 JVM (from Sun), by entering java -versionon the command line? Then, if it is the correct version, try mvn clean, followed by mvn -P combatlog package and java -jar target/combatlog.jar replay.dem.

If it still fails, please send the output of the above commands to clarity@martin.schrodt.org.

Cheers!

sarkar-anwar commented 10 years ago

Thanks Martin, the JVM version is actually 1.8. Do I need 1.7 for clarity to work?

sarkar-anwar commented 10 years ago

Hi I uninstalled 1.8 and installed 1.7 and still have the same issue. It says- "Error: Could not find or load main class skadistats.clarity.examples.combatlog.Main" and also if I open the .jar file using winrar, the example folder is missing.

spheenik commented 10 years ago

Hey man, it should work with at least 1.7, however I didn't try with 1.8 yet, and I was grasping at straws. Are there any .class files in the resulting .jar? Does Maven say 'BUILD SUCCESS' at the end? What version of Maven is it? You can check by mvn -version.

Also, please do a mvn clean, followed by mvn -P combat log package and send the output of the above commands to clarity@martin.schrodt.org.

Good luck!

jsindos commented 10 years ago

I am also encountering a similar problem, after running mvn clean and mvn -P combatlog package it builds clarity-1.1-SNAPSHOT.jar rather than combatlog.jar, without an examples folder.

Running Maven 3.0.4 and JVM 1.8

spheenik commented 10 years ago

Hey, just wanting to ask if the problem finally got solved?

sarkar-anwar commented 10 years ago

Hi Martin, I gave up on the issue. Just to clarify, let me explain what I was thinking of trying. I was trying to find out the times of significant events in a game to create a highlight of the game- first blood, hero kills and denys, tower kill and deny etc. I am not very experienced in java, but I have developed a lot of macro in Excel/VBA and have lot of experience in MATLAB. So I was planning to use the combat log exporter you have and import that combat log in excel or matlab and extract the times and use ffmpeg to use the time to automate the highlight making. That was my plan. But it proved to be too much of hassle. Also as a PhD student, I don't have much time to learn a new language from scratch. So I tried some things in my spare times and none of them worked. So I gave up. Let me know if you have a working combat log exporter which does not need compiling. Thanks for contacting back.

Thanks Sarkar

On Wed, Aug 13, 2014 at 12:56 PM, Martin Schrodt notifications@github.com wrote:

Hey, just wanting to ask if the problem finally got solved?

— Reply to this email directly or view it on GitHub https://github.com/skadistats/clarity-examples/issues/2#issuecomment-52085426 .

sarkar-anwar commented 10 years ago

Also, if you want to close the issue in Github, I don't have any problem with it. I am pretty sure it's my fault of not properly setting up everything in my computer.

Thanks Rusho

On Wed, Aug 13, 2014 at 1:08 PM, Sarkar Anwar rahat5810@gmail.com wrote:

Hi Martin, I gave up on the issue. Just to clarify, let me explain what I was thinking of trying. I was trying to find out the times of significant events in a game to create a highlight of the game- first blood, hero kills and denys, tower kill and deny etc. I am not very experienced in java, but I have developed a lot of macro in Excel/VBA and have lot of experience in MATLAB. So I was planning to use the combat log exporter you have and import that combat log in excel or matlab and extract the times and use ffmpeg to use the time to automate the highlight making. That was my plan. But it proved to be too much of hassle. Also as a PhD student, I don't have much time to learn a new language from scratch. So I tried some things in my spare times and none of them worked. So I gave up. Let me know if you have a working combat log exporter which does not need compiling. Thanks for contacting back.

Thanks Sarkar

On Wed, Aug 13, 2014 at 12:56 PM, Martin Schrodt <notifications@github.com

wrote:

Hey, just wanting to ask if the problem finally got solved?

— Reply to this email directly or view it on GitHub https://github.com/skadistats/clarity-examples/issues/2#issuecomment-52085426 .

spheenik commented 10 years ago

I am sending you a compiled version via email.

Let's see if this one works :)

Am 13.08.2014 um 20:08 schrieb rahat5810:

Hi Martin, I gave up on the issue. Just to clarify, let me explain what I was thinking of trying. I was trying to find out the times of significant events in a game to create a highlight of the game- first blood, hero kills and denys, tower kill and deny etc. I am not very experienced in java, but I have developed a lot of macro in Excel/VBA and have lot of experience in MATLAB. So I was planning to use the combat log exporter you have and import that combat log in excel or matlab and extract the times and use ffmpeg to use the time to automate the highlight making. That was my plan. But it proved to be too much of hassle. Also as a PhD student, I don't have much time to learn a new language from scratch. So I tried some things in my spare times and none of them worked. So I gave up. Let me know if you have a working combat log exporter which does not need compiling. Thanks for contacting back.

Thanks Sarkar

On Wed, Aug 13, 2014 at 12:56 PM, Martin Schrodt notifications@github.com wrote:

Hey, just wanting to ask if the problem finally got solved?

— Reply to this email directly or view it on GitHub https://github.com/skadistats/clarity-examples/issues/2#issuecomment-52085426 .

— Reply to this email directly or view it on GitHub.

sarkar-anwar commented 10 years ago

Hey thanks for the compiled version. I highly appreciate it. I have received the attachment. I will try it out and get back to you in a couple of days.

Thanks Rusho

On Wed, Aug 13, 2014 at 1:23 PM, Martin Schrodt notifications@github.com wrote:

I am sending you a compiled version via email.

Let's see if this one works :)

Am 13.08.2014 um 20:08 schrieb rahat5810:

Hi Martin, I gave up on the issue. Just to clarify, let me explain what I was thinking of trying. I was trying to find out the times of significant events in a game to create a highlight of the game- first blood, hero kills and denys, tower kill and deny etc. I am not very experienced in java, but I have developed a lot of macro in Excel/VBA and have lot of experience in MATLAB. So I was planning to use the combat log exporter you have and import that combat log in excel or matlab and extract the times and use ffmpeg to use the time to automate the highlight making. That was my plan. But it proved to be too much of hassle. Also as a PhD student, I don't have much time to learn a new language from scratch. So I tried some things in my spare times and none of them worked. So I gave up. Let me know if you have a working combat log exporter which does not need compiling. Thanks for contacting back.

Thanks Sarkar

On Wed, Aug 13, 2014 at 12:56 PM, Martin Schrodt < notifications@github.com> wrote:

Hey, just wanting to ask if the problem finally got solved?

— Reply to this email directly or view it on GitHub < https://github.com/skadistats/clarity-examples/issues/2#issuecomment-52085426>

.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/skadistats/clarity-examples/issues/2#issuecomment-52088993 .

spheenik commented 9 years ago

I hope it worked out, man :)