Hi,
I was not able to reproduce the problem yet.
I see that you use Linux with OpenJDK 8, could be that there is some
problem.
Did you manually edit the classpath of the project or the launch
configuration? If yes, this should not be necessary.
Did you mention which ruta version you use and how you build your
project (maven vs simple ruta project)?
A comment: you should not use dashes in the name of the ruta script file
because the name wil become the last segment of the package of declared
types, and if you apply jcasgen you'll get some problems with java, I think.
Best,
Peter
Am 29.06.2017 um 14:26 schrieb Mary Collins:
Peter,
No worries! Any help is useful and I understand that you are busy. I will
just continue with other parts of my project until you have had a chance to
have a look.
Thanks again,
Mary
2017-06-25 9:33 GMT+02:00 Peter Klügl <[email protected]>:
Hi,
Am 21.06.2017 um 10:54 schrieb Mary Collins:
Hey Peter,
Thank you for your reply. I have tried with and without the classpath
extension option activated. I get the same error, but concerning a
different file. The error I get with the classpath activated is:
"An import could not be resolved. No file with name
"com/typesystems/CVParsingTypes.xml" was found in the class path or data
path. (Descriptor: file:/home/mary/git/cv-parser/
target/generated-sources/ruta/descriptor/com/semantic/projec
tWork/Main-RutaWorkbenchRutaTypeSystem.xml)"
This particular file (CVParsingTypes.xml) is the same TypeSystem that I
use for the normal execution of this script, so I know that it is in the
classpath. Are the classpaths for the normal script and the testing
different?
They should not be different.
I am also inserting a small screenshot of my classpaths view for the
script that I want to test with:
Can you post a link to the screenshot or send it directly to my email
address?
Best,
Peter
Images intégrées 1
Thank you,
Sincerely,
Mary Collins
2017-06-20 16:43 GMT+02:00 Peter Klügl <[email protected] <mailto:
[email protected]>>:
Hi,
just a quick guess: Is the option to extend the classpath activated?
It's the 6th button in the view, with four arrows.
Best,
Peter
Am 19.06.2017 um 17:18 schrieb Mary Collins:
> Hello everyone,
>
> When using the Annotation Test Ruta view, I encounter an Import
error,
> saying that the file it is looking for could not be found in the
class path
> or data path.
> The error:
> "An import could not be resolved. No file with name
> "com/semantic/projectWork/Main-RutaWorkbenchRutaTypeSystem.xml"
was found
> in the class path or data path. (Descriptor:
>
file:/home/mary/git/project1/target/generated-sources/ruta/d
escriptor/com/semantic/projectWork/Main-RutaWorkbenchRutaAnnotator.xml)"
>
> I have verified that the path to this particular generated file
is in the
> Class Path.
> I have put the testing files in the correct folder in the "Test"
hierarchy.
> Is there any other intermediare step that I may have missed when
trying to
> use this testing view, maybe something in the Type Systems or
the Class
> Path that needs to be changed?
>
> Thanks in advance for helping a newbie!
> Mary Collins
>