Solved

Running classfile...

Posted on 1998-07-28
6
196 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 

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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
difference between sorce folder and folder in eclipise 3 64
How to determine if a string is a valid SHA value 7 57
junit example issue 2 56
Coding for the first time 9 100
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses

734 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