MedTagger icon indicating copy to clipboard operation
MedTagger copied to clipboard

can't find org.ohnlp.medtagger.fit.Main

Open mingust opened this issue 1 year ago • 5 comments

Describe the bug I am not sure if this is a bug or not configure properly it said: Error: Could not find or load main class org.ohnlp.medtagger.fit.Main

Desktop (please complete the following information):

  • OS: window 10
  • Java Version latest

Additional context Add any other context about the problem here.

mingust avatar Aug 14 '24 07:08 mingust

Oh, that’s from a command in run.bat file.

mingust avatar Aug 15 '24 11:08 mingust

What is your execution pathway? Are you launching this through OHNLPTK/Backbone or are you running this directly? Are you downloading the compiled release or are you running this from source?

qqndrew avatar Aug 16 '24 00:08 qqndrew

Hi Andrew,

Oh...thanks replying.

I followed the instructions and downloaded the MedTagger-1.0.72 zip After I unzip The runmedtaggerwin.bat is under MedTagger-1.0.72\src\main\resources directory so I tried to run it there (since the bat file has put there)

I think after the unzip, that should be the source files and I am running from source.

One major disappointment is I can't find the covid19 directly for the rule files.

Thanks.


From: Andrew @.> Sent: Friday, August 16, 2024 8:37 AM To: OHNLP/MedTagger @.> Cc: Ming Lo @.>; Author @.> Subject: Re: [OHNLP/MedTagger] can't find org.ohnlp.medtagger.fit.Main (Issue #22)

What is your execution pathway? Are you launching this through OHNLPTK/Backbone or are you running this directly? Are you downloading the compiled release or are you running this from source?

— Reply to this email directly, view it on GitHubhttps://github.com/OHNLP/MedTagger/issues/22#issuecomment-2292513821, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATOFQAKIB2M2VPLB42TSTEDZRVCTNAVCNFSM6AAAAABMPXNFISVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJSGUYTGOBSGE. You are receiving this because you authored the thread.Message ID: @.***>

mingust avatar Aug 16 '24 00:08 mingust

Yeah you downloaded the source code, not the compiled program. You will need to compile yourself via maven or download the release binaries from MedTagger.zip at https://github.com/OHNLP/MedTagger/releases/tag/v1.0.72

The COVID-19 project was consolidated to the pasc project, which is a union of both covid-19 signs/symptoms and signs/symptoms associated with long COVID/post-acute sequelae of COVID-19 (PASC)

qqndrew avatar Aug 16 '24 01:08 qqndrew

Hi Andrew,

I checked each steps and had compiled medtagger using maven. After compilation, a new medtagger-1.0.72.jar created But when I run it an error occur; Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0 at org.ohnlp.medtagger.fit.Main.main(Main.java:22)

The java version I am using is 22.0.2

If you know what the problem is? pls let me know, thanks.


From: Andrew @.> Sent: Friday, August 16, 2024 9:53 AM To: OHNLP/MedTagger @.> Cc: Ming Lo @.>; Author @.> Subject: Re: [OHNLP/MedTagger] can't find org.ohnlp.medtagger.fit.Main (Issue #22)

Yeah you downloaded the source code, not the compiled program. You will need to compile yourself via maven or download the release binaries from MedTagger.zip at https://github.com/OHNLP/MedTagger/releases/tag/v1.0.72

The COVID-19 project was consolidated to the pasc project, which is a union of both covid-19 signs/symptoms and signs/symptoms associated with long COVID/post-acute sequelae of COVID-19 (PASC)

— Reply to this email directly, view it on GitHubhttps://github.com/OHNLP/MedTagger/issues/22#issuecomment-2292588864, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATOFQANVOALBCOA57W7NFILZRVLQZAVCNFSM6AAAAABMPXNFISVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJSGU4DQOBWGQ. You are receiving this because you authored the thread.Message ID: @.***>

mingust avatar Sep 20 '24 06:09 mingust