[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Problems with java



I'm trying to learn a little about java, so I installed jdk1.1 from hamm.
The rest of my system is Debian 1.3 (or stable).

I'm testing the installation using the 'hello world' app below:

class HelloWorldApp {
    public static void main(String[] args) {
        System.out.println("Hello World!"); //Display the string.
    }
}          


Compiling the app seems to work fine:

[/usr/home/witt/devel/java] $ javac -verbose HelloWorldApp.java
[parsed HelloWorldApp.java in 451 ms]
[loaded /usr/lib/jdk1.1/bin/../lib/classes.zip(java/lang/Object.class) in
96 ms]
[checking class HelloWorldApp]
[loaded /usr/lib/jdk1.1/bin/../lib/classes.zip(java/lang/String.class) in
242 ms]
[loaded /usr/lib/jdk1.1/bin/../lib/classes.zip(java/lang/System.class) in
172 ms]
[loaded /usr/lib/jdk1.1/bin/../lib/classes.zip(java/io/PrintStream.class)
in 29 ms]
[loaded /usr/lib/jdk1.1/bin/../lib/classes.zip(java/io/Serializable.class)
in 16 ms]
[loaded
/usr/lib/jdk1.1/bin/../lib/classes.zip(java/io/FilterOutputStream.class)
in 21 ms]
[loaded /usr/lib/jdk1.1/bin/../lib/classes.zip(java/io/OutputStream.class)
in 10 ms]
[wrote HelloWorldApp.class]
[done in 2423 ms]             


My problem is when I try to run the app:

[/usr/home/witt/devel/java] $ java HelloWorldApp.class
Can't find class HelloWorldApp.class        
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

I've checked the environment variables CLASSPATH (I don't have it set, so
it should be set by the java scripts) and can't think of anything else.
Anyone have any ideas??

Thanks...

Steve


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: