|
Try setting the classpath so it points to the file classes.zip, rather than to your program. The compiler needs the classes.zip file for compilation purposes. gfeinste @ planethollywood.com on 23/10/97 16:05:38 Please respond to JAVA400-L@midrange.com To: JAVA400-L @ midrange.com cc: (bcc: Ed Doxtator/SSAOT) Subject: Symantec Cafe Lite I bought the book "Teach Yourself Java in 21 Days" a while ago. I have just started playing around with the Symantec Cafe Lite Java Developers Kit that came with it. Its version 7.5 build 40. Has anyone ever used this product? The book didn't come with any documentation on the compiler, however I have managed to muddle my way through it. I am trying to create the HelloWorld application in day 1 but here is my source and compile problem. class HelloWorld { public static void main (String args[]) { System.out.println("Hello World!"); } } javac -O -classpath c:\irajava\hello3 HelloWorld.java compiling: HelloWorld.java Error: c:\IraJava\hello3\HelloWorld.java(1): Superclass java.lang.Object of class HelloWorld not found. class HelloWorld { ^ Lines Processed: 0 Errors: 1 Warnings: 0 Build failed Am I missing an Import statement or something. If I recall, I wuz able to compile it at one point but then it wouldn't run. And the source I just posted is exactly what it has in the book. HELP! Gary Feinstein AS/400 System Administrator Planet Hollywood International, Inc. +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to "JAVA400-L@midrange.com". | To unsubscribe from this list send email to MAJORDOMO@midrange.com | and specify 'unsubscribe JAVA400-L' in the body of your message. | Questions should be directed to the list owner/operator: david@midrange.com +--- +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to "JAVA400-L@midrange.com". | To unsubscribe from this list send email to MAJORDOMO@midrange.com | and specify 'unsubscribe JAVA400-L' in the body of your message. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.