YACQ

Yeat Another Class Loader Question

I'm trying to write a plugin which interfaces to a third party commercial product.

This product exposes an API to load and edit IDEA project files via a set of jar files.

Since I can't legitimately redistribute these files can I add them to the IDEA class path somehow or do I have to try and load them myself via my own classloader?

Thanks,

Martin

4 comments

It looks like you might want to programmatically download the jars or
ask the user to provide them, and use your own classloader.

Martin Zardecki wrote:

Yeat Another Class Loader Question

I'm trying to write a plugin which interfaces to a third party commercial product.

This product exposes an API to load and edit IDEA project files via a set of jar files.

Since I can't legitimately redistribute these files can I add them to the IDEA class path somehow or do I have to try and load them myself via my own classloader?

Thanks,

Martin

0

Hello Martin,

If one puts those jars into IDEA's lib folder they will be added to IDEA
classpath automatically. Similary if those are put to plugin's lib folder
they will be added to plugin's classloader so only your plugin will see them,
not IDEA or other plugins.

-


Maxim Shafirov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Yeat Another Class Loader Question

I'm trying to write a plugin which interfaces to a third party
commercial product.

This product exposes an API to load and edit IDEA project files via a
set of jar files.

Since I can't legitimately redistribute these files can I add them to
the IDEA class path somehow or do I have to try and load them myself
via my own classloader?

Thanks,

Martin



0

Granted, but as mentioned I can't redistribute the third party jars....I suppose I could copy them to the plugin folder and ask the user to restart IDEA.

0

Hello Martin,

I suppose I could copy them to the plugin folder and ask the
user to restart IDEA.


That's what I meant.
-


Maxim Shafirov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0

Please sign in to leave a comment.