Solved

Running classfile...

Posted on 1998-07-28
6
173 Views
Last Modified: 2010-03-30
i am having trouble running a class that i have created.  I have also created a package that i am importing.

When i run the class i get the following error:
"Can't find class Udl"

I am running the class by entering the following command:

java Udl

Hope you can help.
Thanks in advance!

[NOTE]
I am not creating the Udl classfile as a package.
0
Comment
Question by:jefftk99
  • 4
  • 2
6 Comments
 

Author Comment

by:jefftk99
Comment Utility
Edited text of question
0
 

Author Comment

by:jefftk99
Comment Utility
Adjusted points to 50
0
 
LVL 5

Expert Comment

by:fontaine
Comment Utility
Assuming that Udl.class is in c:\test, does the following work?

c:\test> SET CLASSPATH=.;c:\pathtopackage\package.jar
c:\test> java Udl
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:jefftk99
Comment Utility
i am all set now.  Thanks!
0
 

Author Comment

by:jefftk99
Comment Utility
you may want to lock this question so i can grade it...
0
 
LVL 5

Accepted Solution

by:
fontaine earned 50 total points
Comment Utility
Solution:

     c:\test> SET CLASSPATH=.;c:\pathtopackage\package.jar
     c:\test> java Udl

The VM search for classes that are in the classpath. The SET ... sets the classpath to include
the current directory, containing the main class as well as the library that it uses.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now