You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ctakes.apache.org by "Finan, Sean" <Se...@childrens.harvard.edu> on 2019/10/11 18:07:43 UTC
Re: PiperFileRunner Error [EXTERNAL]
Hi Carolina,
ctakes is written for java 8. I don't know if anybody has tested any higher version. It looks like you are compiling with java version 11.
Are you using Apache maven to build ctakes? ctakes is modular and uses https://maven.apache.org/.
The most complete instructions of which I am aware are here:
https://cwiki.apache.org/confluence/display/CTAKES/cTAKES+4.0+Developer+Install+Guide#cTAKES4.0DeveloperInstallGuide-Build
Sean
________________________________________
From: Cervantes, Carolina <cc...@luc.edu>
Sent: Friday, October 11, 2019 1:55 PM
To: dev@ctakes.apache.org
Subject: PiperFileRunner Error [EXTERNAL]
Hello,
I am trying to run the HelloWorld piper file and when I try to do it via terminal I have been getting this error:
Error: Could not find or load main class org.apache.ctakes.core.pipeline.PiperFileRunner
Caused by: java.lang.ClassNotFoundException: org.apache.ctakes.core.pipeline.PiperFileRunner
When I try to run it through IntelliJ I get this error:
Information:java: Errors occurred while compiling module 'ctakes-utils'
Information:javac 11.0.2 was used to compile java sources
Information:10/11/2019 11:53 AM - Compilation completed with 2 errors and 0 warnings in 8 s 947 ms
C: /Users /Zach Barrett /Documents /Computer Science /Junior /Comp 398 /ctakes /ctakes-utils /src /main /java /org /apache /ctakes /utils /env /EnvironmentVariable.java
Error:Error:line (21)java: package jdk.nashorn.internal.ir.annotations does not exist
Error:Error:line (24)java: cannot find symbol
symbol: class Immutable
Any help would be appreciated!
Re: PiperFileRunner Error [EXTERNAL]
Posted by "Finan, Sean" <Se...@childrens.harvard.edu>.
Hi Peter,
That is interesting, thank you for the information.
Sean
________________________________________
From: Peter Abramowitsch <pa...@gmail.com>
Sent: Saturday, October 12, 2019 2:47 AM
To: dev@ctakes.apache.org
Subject: Re: PiperFileRunner Error [EXTERNAL]
It runs under Java 9 and possibly 11 if built in 8, and with a bunch of hasty changes I got it to compile and run in 9, but it wasn’t worth the effort. With Java 11, bigger changes were introduced in the packaging of modules, which are no longer completely synonymous with jar files. It would take some work to create a release-generating codebase in java 11.
Sent from my iPad
> On Oct 11, 2019, at 11:07, Finan, Sean <Se...@childrens.harvard.edu> wrote:
>
> Hi Carolina,
>
> ctakes is written for java 8. I don't know if anybody has tested any higher version. It looks like you are compiling with java version 11.
>
> Are you using Apache maven to build ctakes? ctakes is modular and uses https://urldefense.proofpoint.com/v2/url?u=https-3A__maven.apache.org_&d=DwIFaQ&c=qS4goWBT7poplM69zy_3xhKwEW14JZMSdioCoppxeFU&r=fs67GvlGZstTpyIisCYNYmQCP6r0bcpKGd4f7d4gTao&m=DvgmaX5P7v9Tih8eukhI225fZcJpUX__vIhzzg5kUkQ&s=YgWkzhfSvqV9GNwtoMQxyCnNR9SeSFA32FxC04gg26Y&e= .
>
> The most complete instructions of which I am aware are here:
>
> https://urldefense.proofpoint.com/v2/url?u=https-3A__cwiki.apache.org_confluence_display_CTAKES_cTAKES-2B4.0-2BDeveloper-2BInstall-2BGuide-23cTAKES4.0DeveloperInstallGuide-2DBuild&d=DwIFaQ&c=qS4goWBT7poplM69zy_3xhKwEW14JZMSdioCoppxeFU&r=fs67GvlGZstTpyIisCYNYmQCP6r0bcpKGd4f7d4gTao&m=DvgmaX5P7v9Tih8eukhI225fZcJpUX__vIhzzg5kUkQ&s=j238Q4bWaKf51Jr8aXhzS1NVFqYfXm_WWvKDRje3x2k&e=
>
> Sean
>
> ________________________________________
> From: Cervantes, Carolina <cc...@luc.edu>
> Sent: Friday, October 11, 2019 1:55 PM
> To: dev@ctakes.apache.org
> Subject: PiperFileRunner Error [EXTERNAL]
>
> Hello,
>
> I am trying to run the HelloWorld piper file and when I try to do it via terminal I have been getting this error:
>
> Error: Could not find or load main class org.apache.ctakes.core.pipeline.PiperFileRunner
> Caused by: java.lang.ClassNotFoundException: org.apache.ctakes.core.pipeline.PiperFileRunner
>
> When I try to run it through IntelliJ I get this error:
>
> Information:java: Errors occurred while compiling module 'ctakes-utils'
> Information:javac 11.0.2 was used to compile java sources
> Information:10/11/2019 11:53 AM - Compilation completed with 2 errors and 0 warnings in 8 s 947 ms
> C: /Users /Zach Barrett /Documents /Computer Science /Junior /Comp 398 /ctakes /ctakes-utils /src /main /java /org /apache /ctakes /utils /env /EnvironmentVariable.java
> Error:Error:line (21)java: package jdk.nashorn.internal.ir.annotations does not exist
> Error:Error:line (24)java: cannot find symbol
> symbol: class Immutable
>
> Any help would be appreciated!
Re: PiperFileRunner Error [EXTERNAL]
Posted by Peter Abramowitsch <pa...@gmail.com>.
It runs under Java 9 and possibly 11 if built in 8, and with a bunch of hasty changes I got it to compile and run in 9, but it wasn’t worth the effort. With Java 11, bigger changes were introduced in the packaging of modules, which are no longer completely synonymous with jar files. It would take some work to create a release-generating codebase in java 11.
Sent from my iPad
> On Oct 11, 2019, at 11:07, Finan, Sean <Se...@childrens.harvard.edu> wrote:
>
> Hi Carolina,
>
> ctakes is written for java 8. I don't know if anybody has tested any higher version. It looks like you are compiling with java version 11.
>
> Are you using Apache maven to build ctakes? ctakes is modular and uses https://maven.apache.org/.
>
> The most complete instructions of which I am aware are here:
>
> https://cwiki.apache.org/confluence/display/CTAKES/cTAKES+4.0+Developer+Install+Guide#cTAKES4.0DeveloperInstallGuide-Build
>
> Sean
>
> ________________________________________
> From: Cervantes, Carolina <cc...@luc.edu>
> Sent: Friday, October 11, 2019 1:55 PM
> To: dev@ctakes.apache.org
> Subject: PiperFileRunner Error [EXTERNAL]
>
> Hello,
>
> I am trying to run the HelloWorld piper file and when I try to do it via terminal I have been getting this error:
>
> Error: Could not find or load main class org.apache.ctakes.core.pipeline.PiperFileRunner
> Caused by: java.lang.ClassNotFoundException: org.apache.ctakes.core.pipeline.PiperFileRunner
>
> When I try to run it through IntelliJ I get this error:
>
> Information:java: Errors occurred while compiling module 'ctakes-utils'
> Information:javac 11.0.2 was used to compile java sources
> Information:10/11/2019 11:53 AM - Compilation completed with 2 errors and 0 warnings in 8 s 947 ms
> C: /Users /Zach Barrett /Documents /Computer Science /Junior /Comp 398 /ctakes /ctakes-utils /src /main /java /org /apache /ctakes /utils /env /EnvironmentVariable.java
> Error:Error:line (21)java: package jdk.nashorn.internal.ir.annotations does not exist
> Error:Error:line (24)java: cannot find symbol
> symbol: class Immutable
>
> Any help would be appreciated!
Re: PiperFileRunner Error [EXTERNAL]
Posted by "Finan, Sean" <Se...@childrens.harvard.edu>.
Hi Carolina,
It looks like you are trying to execute that script within the ctakes-distribution source. The script files located there are not meant to be used so directly. They exist for a built ctakes binary installation, which will put them in a bin/ directory.
Since you are using Intellij, try one or more of the following:
1. Use the runPiperGui maven profile. Intellij will let you specify a maven profile for the Compile step. Specify "runPIperGui" as the profile name. on a command line this would be "mvn compile -P runPIperGui".
2. Create a Run configuration within Intellij. Set the executable class to be RunPiperFile.java. You can set the command line parameters within that configuration screen.
3. Run the maven "Package" step. Go into the ctakes-distribution/target/ directory and unzip the *-bin.zip file into another directory. That is a ctakes binary installation. Within that area you can use the script files directly.
I almost always use #2. When I don't it is because I have a main(..) class and I just right-click there and select "run". You should be able to do that with org.apache.ctakes.gui.pipeline.PiperRunnerGui , which is what he runPiperGui maven profile runs (#1).
Sean
________________________________________
From: Cervantes, Carolina <cc...@luc.edu>
Sent: Wednesday, October 16, 2019 2:23 PM
To: dev@ctakes.apache.org
Subject: Re: PiperFileRunner Error [EXTERNAL]
Hi,
Yes I am now compiling with version 8 and I am also using maven to build. I still seem to be getting the same error.
TERMINAL CMD ERROR:
C:\Users\Zach Barrett\Documents\Computer Science\Junior\Comp 398\ctakes\ctakes-distribution\src\main\bin>runPiperFile.bat -p "C:\Users\Zach Barrett\Documents\Computer Science\Junior\Comp 398\ctakes\ctakes-examples-res\src\main\resources\org\apache\ctakes\examples\pipeline\HelloWorld.piper"
Error: Could not find or load main class org.apache.ctakes.core.pipeline.PiperFileRunner
Caused by: java.lang.ClassNotFoundException: org.apache.ctakes.core.pipeline.PiperFileRunner
INTELIJI ERROR:
ERROR PiperFileRunner - MESSAGE LOCALIZATION FAILED: Can't find resource for bundle java.util.PropertyResourceBundle, key No Analysis Component found for ContextDependentTokenizerAnnotator
Log File:
org.apache.uima.resource.ResourceInitializationException: MESSAGE LOCALIZATION FAILED: Can't find resource for bundle java.util.PropertyResourceBundle, key No Analysis Component found for ContextDependentTokenizerAnnotator
at org.apache.ctakes.core.pipeline.PipeBitLocator.getComponentClass(PipeBitLocator.java:97)
at org.apache.ctakes.core.pipeline.PiperFileReader.addToPipeline(PiperFileReader.java:194)
at org.apache.ctakes.core.pipeline.PiperFileReader.parsePipelineLine(PiperFileReader.java:137)
at org.apache.ctakes.core.pipeline.PiperFileReader.loadPipelineFile(PiperFileReader.java:119)
at org.apache.ctakes.core.pipeline.PiperFileRunner.run(PiperFileRunner.java:63)
at org.apache.ctakes.core.pipeline.PiperFileRunner.main(PiperFileRunner.java:30)
Thank you,
Carolina
________________________________
From: Finan, Sean <Se...@childrens.harvard.edu>
Sent: Friday, October 11, 2019 1:07 PM
To: dev@ctakes.apache.org <de...@ctakes.apache.org>
Subject: Re: PiperFileRunner Error [EXTERNAL]
Hi Carolina,
ctakes is written for java 8. I don't know if anybody has tested any higher version. It looks like you are compiling with java version 11.
Are you using Apache maven to build ctakes? ctakes is modular and uses https://urldefense.proofpoint.com/v2/url?u=https-3A__maven.apache.org_&d=DwIFAg&c=qS4goWBT7poplM69zy_3xhKwEW14JZMSdioCoppxeFU&r=fs67GvlGZstTpyIisCYNYmQCP6r0bcpKGd4f7d4gTao&m=ULDhpEqPb1qwL3A_9G0Q-a9b7y_YJKhsj1IJMgde_OA&s=_NkEGL6XwFQ7jOG3EyGYKoaBOM_o0F46EzQXwXMa9FQ&e= .
The most complete instructions of which I am aware are here:
https://urldefense.proofpoint.com/v2/url?u=https-3A__cwiki.apache.org_confluence_display_CTAKES_cTAKES-2B4.0-2BDeveloper-2BInstall-2BGuide-23cTAKES4.0DeveloperInstallGuide-2DBuild&d=DwIFAg&c=qS4goWBT7poplM69zy_3xhKwEW14JZMSdioCoppxeFU&r=fs67GvlGZstTpyIisCYNYmQCP6r0bcpKGd4f7d4gTao&m=ULDhpEqPb1qwL3A_9G0Q-a9b7y_YJKhsj1IJMgde_OA&s=5NYfTfHtAIGYrD2dL3Tu0Kce4kNqnNCLRsKAPmiZGws&e=
Sean
________________________________________
From: Cervantes, Carolina <cc...@luc.edu>
Sent: Friday, October 11, 2019 1:55 PM
To: dev@ctakes.apache.org
Subject: PiperFileRunner Error [EXTERNAL]
Hello,
I am trying to run the HelloWorld piper file and when I try to do it via terminal I have been getting this error:
Error: Could not find or load main class org.apache.ctakes.core.pipeline.PiperFileRunner
Caused by: java.lang.ClassNotFoundException: org.apache.ctakes.core.pipeline.PiperFileRunner
When I try to run it through IntelliJ I get this error:
Information:java: Errors occurred while compiling module 'ctakes-utils'
Information:javac 11.0.2 was used to compile java sources
Information:10/11/2019 11:53 AM - Compilation completed with 2 errors and 0 warnings in 8 s 947 ms
C: /Users /Zach Barrett /Documents /Computer Science /Junior /Comp 398 /ctakes /ctakes-utils /src /main /java /org /apache /ctakes /utils /env /EnvironmentVariable.java
Error:Error:line (21)java: package jdk.nashorn.internal.ir.annotations does not exist
Error:Error:line (24)java: cannot find symbol
symbol: class Immutable
Any help would be appreciated!
Re: PiperFileRunner Error [EXTERNAL]
Posted by "Cervantes, Carolina" <cc...@luc.edu>.
Hi,
Yes I am now compiling with version 8 and I am also using maven to build. I still seem to be getting the same error.
TERMINAL CMD ERROR:
C:\Users\Zach Barrett\Documents\Computer Science\Junior\Comp 398\ctakes\ctakes-distribution\src\main\bin>runPiperFile.bat -p "C:\Users\Zach Barrett\Documents\Computer Science\Junior\Comp 398\ctakes\ctakes-examples-res\src\main\resources\org\apache\ctakes\examples\pipeline\HelloWorld.piper"
Error: Could not find or load main class org.apache.ctakes.core.pipeline.PiperFileRunner
Caused by: java.lang.ClassNotFoundException: org.apache.ctakes.core.pipeline.PiperFileRunner
INTELIJI ERROR:
ERROR PiperFileRunner - MESSAGE LOCALIZATION FAILED: Can't find resource for bundle java.util.PropertyResourceBundle, key No Analysis Component found for ContextDependentTokenizerAnnotator
Log File:
org.apache.uima.resource.ResourceInitializationException: MESSAGE LOCALIZATION FAILED: Can't find resource for bundle java.util.PropertyResourceBundle, key No Analysis Component found for ContextDependentTokenizerAnnotator
at org.apache.ctakes.core.pipeline.PipeBitLocator.getComponentClass(PipeBitLocator.java:97)
at org.apache.ctakes.core.pipeline.PiperFileReader.addToPipeline(PiperFileReader.java:194)
at org.apache.ctakes.core.pipeline.PiperFileReader.parsePipelineLine(PiperFileReader.java:137)
at org.apache.ctakes.core.pipeline.PiperFileReader.loadPipelineFile(PiperFileReader.java:119)
at org.apache.ctakes.core.pipeline.PiperFileRunner.run(PiperFileRunner.java:63)
at org.apache.ctakes.core.pipeline.PiperFileRunner.main(PiperFileRunner.java:30)
Thank you,
Carolina
________________________________
From: Finan, Sean <Se...@childrens.harvard.edu>
Sent: Friday, October 11, 2019 1:07 PM
To: dev@ctakes.apache.org <de...@ctakes.apache.org>
Subject: Re: PiperFileRunner Error [EXTERNAL]
Hi Carolina,
ctakes is written for java 8. I don't know if anybody has tested any higher version. It looks like you are compiling with java version 11.
Are you using Apache maven to build ctakes? ctakes is modular and uses https://maven.apache.org/.
The most complete instructions of which I am aware are here:
https://cwiki.apache.org/confluence/display/CTAKES/cTAKES+4.0+Developer+Install+Guide#cTAKES4.0DeveloperInstallGuide-Build
Sean
________________________________________
From: Cervantes, Carolina <cc...@luc.edu>
Sent: Friday, October 11, 2019 1:55 PM
To: dev@ctakes.apache.org
Subject: PiperFileRunner Error [EXTERNAL]
Hello,
I am trying to run the HelloWorld piper file and when I try to do it via terminal I have been getting this error:
Error: Could not find or load main class org.apache.ctakes.core.pipeline.PiperFileRunner
Caused by: java.lang.ClassNotFoundException: org.apache.ctakes.core.pipeline.PiperFileRunner
When I try to run it through IntelliJ I get this error:
Information:java: Errors occurred while compiling module 'ctakes-utils'
Information:javac 11.0.2 was used to compile java sources
Information:10/11/2019 11:53 AM - Compilation completed with 2 errors and 0 warnings in 8 s 947 ms
C: /Users /Zach Barrett /Documents /Computer Science /Junior /Comp 398 /ctakes /ctakes-utils /src /main /java /org /apache /ctakes /utils /env /EnvironmentVariable.java
Error:Error:line (21)java: package jdk.nashorn.internal.ir.annotations does not exist
Error:Error:line (24)java: cannot find symbol
symbol: class Immutable
Any help would be appreciated!