If you would like to use the classes inside the jar file you will need to add the path 
to the jar file to your CLASSPATH environment varialble

UNDER NT:

right click on MyComputer, click on the Environment tab and modify the CLASSPATH env. 
var to include the path to the jar file

Example
Before modify
CLASSPATH = C:\jdk1.1.7b\classes.lib
After modify
CLASSPATH = C:\jdk1.1.7b\classes.lib;C:\PathToYourJARfile\myjar.jar;

Under 95/98
modifiy the CLASSPATH in your autoexec.bat


The contents of your CLASSPATH my be different then the one displayed above. The point 
being append the path to your jar file to the existing CLASSPATH.


then reboot.

After you have completed this you can use the classes in your ND project by importing 
them:

//this wuold be the name of the package in the jar you wish
//to use
import packageInMyJar.VeryUsefulClass;

public class MyPage extends spider.visual.CSpPage
{
  VeryUsefulClass v = new VeryUsefulClass();
}

[EMAIL PROTECTED] wrote:
>Hello,
>
>Does anyone know how to import *jar(java archive file format) to NDStudio? I need
         to use the classes inside. I know that you can do so by clicking the user 
module
         button in NDStudio but it seems to work only for java files. 
>Any help will be greatly appreciated.
>
>Hwee Kheng

_________________________________________________________________________

For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html

For dire need help, email: [EMAIL PROTECTED]

Reply via email to