How to Compile Java Applications that have environment varia

Using the Java SDK with TextPad

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

Post Reply
Godspeed

How to Compile Java Applications that have environment varia

Post by Godspeed »

Hi world

I want to compile a java file with servlet.jar and mysql.jar environment the servlet.jar works but not the mysql.jar how can i set it up in textpad like in Jbuilder.
or like this

set CLASSPATH=.;
C:\ServletDevel;
install_dir\common\lib\servlet.jar

Windows NT/2000/XP
Go to the Start menu and select Settings, then Control Panel, then System, then
Environment. Then, enter the CLASSPATH value from the previous bullet.

this works only for the servlet.jar
Graham

Re: How to Compile Java Applications that have environment v

Post by Graham »

if you have the full path names of both jar files (semicolon-separated) in the classpath variable it will work. In your example above, you have a ';' in the middle of the filename, this seems a bit strange. If it still doesn't work, then either you've typed the filename wrong in the classpath, there's a problem with the jar file, or you're not importing them or using them in your program.
Post Reply