To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
VBForums  

VB Wire News
Part 10 of the Visual Basic .NET 2010 Express Tutorial Complete!
How to Use the Visual Studio Code Analysis Tool FxCop
Article :: Interview with Andrei Alexandrescu (Part 3 of 3)
Introducing Visual Studio LightSwitch
Visual Studio LightSwitch Beta 1 is Available



Go Back   VBForums > Other Languages > Java

Reply Post New Thread
 
Thread Tools Display Modes
Old Oct 26th, 2005, 11:44 PM   #1
dsheller
Fanatic Member
 
dsheller's Avatar
 
Join Date: Dec 02
Location: North Carolina
Posts: 733
dsheller is on a distinguished road (10+)
BASIC Java errors

Code:
public class HelloWorldApp  {
	public static void main ( String [] args ) {
		System.out.println ( "TEST" );
	}
}
I just installed java 1.4.2_09 and compiled the above, but when i try to run it as so:

java HelloWorldApp

I get this:

C:\Java>java HelloWorldApp
Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldApp

What is going on, here is some information that might be helpful:
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07)
Java HotSpot(TM) Client VM (build 1.5.0_03-b07, mixed mode, sharing)
__________________


"X-mas is 24.Desember you English morons.." - NoteMe
dsheller is offline   Reply With Quote
Old Oct 27th, 2005, 12:30 AM   #2
dsheller
Fanatic Member
 
dsheller's Avatar
 
Join Date: Dec 02
Location: North Carolina
Posts: 733
dsheller is on a distinguished road (10+)
Re: BASIC Java errors

Fixed it, classpath had to be set to nothing... something funky with quicktime was in there.
__________________


"X-mas is 24.Desember you English morons.." - NoteMe
dsheller is offline   Reply With Quote
Reply

Go Back   VBForums > Other Languages > Java


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:30 AM.





Acceptable Use Policy

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.