Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS 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
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Basic question, please help me guys

Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Friends,

I have basic question.

I dont know how to import this package:

import org.flexdock.docking.*;
import org.flexdock.docking.defaults.DefaultDockingPort;

am geting error as: this package doesnt exist..

Please help me

Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Verify if you have packages and class in your class path.
You can use echo $CLASSPATH in unix or echo %CLASSPATH%.

If you are in jar file should be in classpath.

Posts: 70206
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What have you done with the files which are supposed to be in the flexdock package?
Have you got the same folder containing your classes as the folder which contains the "com" folder?
You will have a hierarchy of folders, from
Your classes ought to be where it will be obvious how to get to the "com" folder.
If your classes are in, say,
then they ought to have
"package;" in, and the "com" ought to refer to the same folder.

Are you using command prompt (if in Windows) or an IDE?
If using command prompt you can put all the files in a single folder, navigate to it, then using the
javac -d .
command, both compile the file and create the correct directories simultaneously.
If com.flexdock is in a jar, there are ways or adding the jar to the classpath on command prompt, but I can't remember how to do it. It has been discussed on the Ranch before. You can probably find it with "search."

If you are using an IDE, then use the IDE's help to import the .jar.

Other people might be able to help more.
Frederik Ericsson
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ritchie and Elango,

These are my folders,,

D:\Flexdoc\ felx****.jar
C:\Program Files\Java\j2re1.4.2_04\lib

i have tried in setting the ENVI var.. still no use

am using Eclipse, actually I donnt know, how to import, i have tried to import, still same error. please help me guys, am really fedup.

I have used this link to import,
but no use... Please help me guys...

author and cow tipper
Posts: 5000
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey dude.

Sounds like a classpath issue. What environment are you running in?

One test might be to find the jar or zip file those packages are in. Then maybe drop them in the lib directory of the JRE or SDK. It's a pretty big hammer to drop placing jar files in these lib directories, but it might just work.

Good luck.
[ August 27, 2006: Message edited by: Bear Bibeault ]
Watchya got in that poodle gun? Anything for me? Or this tiny ad?
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic