--------- Forwarded Message From: "MANCHIKALAP, KRISHNA (SBCSI)" <[EMAIL PROTECTED]> > Am passing 2 arguments (SomeTextFile.txt & SomeJavaClass.class ) > to BCELDemo.java but the example gives me an error as
Krishna, I have updated the demo code to have clearer usage instructions and error messages. http://www.jeffyjeffy.com/TEMP/BCELDemo.java The class you provide must exist in the CLASSPATH, and you must provide the fully-qualified *class* name (for example 'java.lang.String'), not file name. Please try calling the (new) code again with your *same* parameters. You should recieve a much better error message. After that, ensure that dot (".") is in your CLASSPATH. Then cd C:\TEMP and call java BCELDemo C:/TEMP/SomeTextFile.java SomeJavaClass That should work. Let me know if you have further problems. Look in C:/TEMP/SomeTextFile.java for output Thanks very much for your comments, and for trying it out! :' ) > > Provided parameters: > Output file: 'C:/TEMP/SomeTextFile.txt'... > Fully qualified class: 'C:/TEMP/SomeJavaClass.class'... > > Retriving class file and parsing... > java.lang.IllegalArgumentException: ERROR in BCELDemo.main: FQClass > does not exist in the CLASSPATH. > > REQUIRED PARAMETERS: > - ONE: File to write output to. > - TWO: A fully-qualified class name, one which exists in your > CLASSPATH. ===== :' ) Jeffy [EMAIL PROTECTED] http://www.jeffyjeffy.com [NOTE: If you send an email to me, and it has the word "Microsoft" in the from field, or "Security" in either the from or subject, then your message will be automatically trashed :' ( ] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
