Click to See Complete Forum and Search --> : how to buils and register an package??


wky086
September 19th, 2000, 09:26 AM
Hi:
Any one can tell me how to build and use an package??
TX !

wky086

Andi
September 19th, 2000, 09:37 AM
Hi,

create a new package:
1. create a new class
2. at the very beginning (top of the source file!) insert (for example) "package com.myCompany.packageName" (of course you can use another name for your package but they say you should use the name of the company domain...)
3. write your code

use a package:
use "import com.myCompany.packageName.*;" or "import com.myCompany.packageName.ClassName;"

Hope this helps,
Andi