zach sycks

Greenhorn
+ Follow
since Dec 18, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by zach sycks

Per the other thread, I typed:

java -cp . MyFirstApp and that took care of it!

Also, if I read the prior thread correctly, I needed to put a . in my CLASSPATH for Windows XP. I did that as well, we'll see what happens.
18 years ago
Checking out that thread, looks like the right thing so far! It is indeed the same error, but without /class as you've pointed out.

Thanks!
18 years ago
just typed that at the command prompt and got the same error. argh.
18 years ago
I just worked through this first example in the book and I can't figure out why it issues an error when I try to run it.

public class MyFirstApp {

public static void main (String[] args) {
System.out.println("I Rule!");
System.out.println("The World");
}

}


I saved it as MyFirstApp.java. I compiled it (javac MyFirstApp.java) and it generated MyFirstApp.class. I typed at the command line "java MyFirstApp.class" and it says:

Exception in thread "main" java.lang.NoClassDefFoundError: MyFirstApp/class

So what gives? Any help is gratiously appreciated.
[ December 18, 2005: Message edited by: zach sycks ]
18 years ago
http://www.emailbattles.com/archive/battles/virus_aacdehdcic_ei/

seeing anything like this?

Google Error

We're sorry...
... but we can't process your request right now. A computer virus or spyware application is sending us automated requests, and it appears that your computer or network has been infected.

We'll restore your access as quickly as possible, so try again soon. In the meantime, you might want to run a virus checker or spyware remover to make sure that your computer is free of viruses and other spurious software.

We apologize for the inconvenience, and hope we'll see you again on Google.
18 years ago