dynamic java CLASSPATH?

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Daniel Blacklock

dynamic java CLASSPATH?

Post by Daniel Blacklock »

I frequently change my classpath before compiling java programs.
Is there any way to dynamically set the value of CLASSPATH for Textpad (maybe a parameter)?
javac -classpath ?????
But would Textpad preempt it and use the registry value anyway?

TIA
HY

Re: dynamic java CLASSPATH?

Post by HY »

In preferences --> tools --> compile java, you have the option to supply parameters, e.g. -classpath c:\some\path. If you'd like to specify the classpath for each compile, you should check "prompt for parameters". TextPad will then prompt you for compile parameters *each time* you compile.

If you have different projects with different classpaths, it might be a good idea to make several javac tools, each with its own classpath...

Hope this helps
HY
Post Reply