Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Class Path Problem

Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
i have my File in Package Suncertify.db
it calls another file from the same package
my directory structure is c:\Suncertify\db\*.java
how should i edit my class path to be able to compile DataInfo file.
I tried but could not do so.
Please suggest both command line argument and editing the batch file methods
will be very thankful
Preety Agarwal
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi preety,
what u have to do is set classpath till the parent directory of ur package(in the way u want to import)
case 1)
suppose in ur program , if ur writing
import Suncertify.db;
then class path has to set to (in command line syntex)
>set Classpath = %Classpath%;c:\;
case 2)
suppose in ur program, if u r writing
import db;
then class path has to set to (command line syntex)
>set classpath = %classpath%;c:\suncertify\;

Similary u can edit ur autoexec.bat and make the nesscessary changes in
You guys haven't done this much, have ya? I suggest you study this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic