![]() |
|
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
Join Date: Jan 2005
Posts: 29
Rep Power: 0
![]() |
Errors when compiling simple program
I'm trying to program a small program:
class example { public static void Main (String args[]){ System.out.println("java drives the web"); } } this file is Example.java. I then compile the file: javac C:\java\Example.java When i try running the file with: java C:\java\Example.class i get the error: Exception in thread "main" java.lang.NoClassDefFoundError: C:\java\Example/class Any way I can fix this? Thanks for the help! |
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|