Solved

Running classfile...

Posted on 1998-07-28
6
178 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
ID: 1228712
Edited text of question
0
 

Author Comment

by:jefftk99
ID: 1228713
Adjusted points to 50
0
 
LVL 5

Expert Comment

by:fontaine
ID: 1228714
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:jefftk99
ID: 1228715
i am all set now.  Thanks!
0
 

Author Comment

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

Accepted Solution

by:
fontaine earned 50 total points
ID: 1228717
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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)
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

911 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

24 Experts available now in Live!

Get 1:1 Help Now