Adding values to classpath

I need to be able to add a file to the classpath of my application to be used in one of my java actions. Does one simply add this to the classpath in windows? Or does mendix simply use the .classpath file that is generated. Is there a way to check whether or not the file is in the classpath at runtime?
1 answers

If this file is a Java library, you should put it in the userlib directory of your project. All .jar files in this directory are automatically included on the classpath by Mendix when running the application, and are also correctly packaged for deployment when generating a deployment archive.

If the file is some other resource, you probably should place it in the resources directory of your project. From a Java action you can access this location by calling Core.getConfiguration().getResourcesPath(). This directory also gets automatically packaged by Mendix when creating a deployment archive.