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
Solved

java class can not be found

Posted on 1998-11-18
2
201 Views
Last Modified: 2010-03-30
I just download the sun JDK 1.02 version, and installed on my Win NT. I tried the first helloworld program. But when I run it, the program generates the message:"Can't find class HelloWorld".

Can somebody tell me what else I need to do to set up the environment right? Thanks.
0
Comment
Question by:haitao
2 Comments
 
LVL 16

Accepted Solution

by:
heyhey_ earned 150 total points
ID: 1227686
Probably you need only to include the current directory "." in the CLASSPATH
SET CLASSPATH=%CLASSPATH%;.
when java searches for class files it looks through the CLASSPATH enviroment variable
(this is analogue to PATH for .exe files). the "." points to the current directory so
java will check the current directory too - and find the Hello.class (suppose that you
start Hello from the same directory where it is positioned)

So does this work ?
0
 

Author Comment

by:haitao
ID: 1227687
That a very clear answer. Thanks!
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
java stored proc example 9 44
runtime exception 2 41
going to wrong jsp page 2 33
Html Table Looping (part 2) 5 27
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…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

808 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