MarketSquare / SwingLibrary

Swing UI testing library for Robot Framework
Other
113 stars 68 forks source link

Unable to load SwingLibrary into project #91

Closed oloughka closed 5 years ago

oloughka commented 7 years ago

Hi all,

I cannot load the SwingLibrary into my project, I am seeing the error:

Importing test library 'SwingLibrary' failed: Expected class or module, got javapackage.

I thought it might have something to do with Robot trying to run the tests with Python instead of Jython but I am specifically setting Jython as my interpreter in Eclipse and I don't even have Python installed on my machine. I have no idea how to work around this and I can't find any other posts about it.

sindhua25 commented 6 years ago

Can you please check what is the value set for CLASSPATH environmental variable? Is it like C:\Python27\SwingLibrary\SwingLibrary-\.jar ? If so, then move the SwingLibrary-\.jar to location C:\Python27 and update the CLASSPATH variable to C:\Python27\SwingLibrary-\.jar

Seems like the folder named SwingLibrary is getting picked up as package name, hence to avoid confusion, try the above changes.

This helped me.

mihaiparvu commented 5 years ago

Closing due to inactivity.