Solved

Running classfile...

Posted on 1998-07-28
6
189 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
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
varialbe initialization 11 37
Custom Java Application connects to database: Which one of the 20? 4 35
SequenceInputStream example 3 19
Crystal Reports Licensing Questions 4 37
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

820 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