build own packages in java

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hussainbabu
    New Member
    • Feb 2007
    • 2

    build own packages in java

    creation ,compilation and running of classes developed using packages
    sample code with clear explanation will help me .
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by hussainbabu
    creation ,compilation and running of classes developed using packages
    sample code with clear explanation will help me .
    Read a tutorial on packages first.

    Comment

    • abctech
      New Member
      • Dec 2006
      • 157

      #3
      Originally posted by hussainbabu
      creation ,compilation and running of classes developed using packages
      sample code with clear explanation will help me .
      Hi,
      Just to get an idea about this why dont you go through this thread , search for the term "Java packages" here.

      Comment

      • dmjpro
        Top Contributor
        • Jan 2007
        • 2476

        #4
        package package_name; //Package name will be considered after the class_path env variable..

        as for example ...
        ur class_path = C:/dir1/dir2;

        if u specify package .... dir3;
        then the directory structure should exist like ... C:/dir1/dir2/dir3

        the generated class will be dropped on this path .. C:/dir1/dir2/dir3

        the main class and file name will same with case sensitive factor

        then try to import the package like ...
        import dir3.* or dir3.class_name ... after class generation

        then do what u want to do with that class


        welcome in advance

        Comment

        Working...