On Wed, 15 Mar 2000, Roy Terry wrote: > Mo, > > My jar file looks like the tcl/lang sample > below except that it has a manifest included. Ok, back up and start over. First, extract the classes from the jar file into an empty directory. Then, add that directory to your env(TCL_CLASSPATH). Make sure the .jar file is not sitting in the directory you just created. Then call your java main method like so. java::call mypkg.myclass main If that works, jar up your files, remove the dir you just created and try it again. > However I've even built a new .jar containing > only the one class I'm wanting to work with > (sans manifest) and I still get the "unknown class" message in > all cases. Try running "javap -verify class" just to make sure the file is not hosed in some strange way. > FWIW, I can use the sun java 1.2.2 (on NT) to run the class from > the command line (the class has a main method). > > Any further clues or suggestions? This is > a roadblock to getting Tcl usage going in > the company. Humm, I am not sure what that means. If your class depends on another class that can not be found that might be part of the problem. The TclClassLoader should give you an error message in this case. Oh right, the improved TclClassLoader error message stuff has not been released yet. You could try grabbing the 1.2 branch from the CVS like so. The 1.2 branch includes only bug fixes for 1.2.5 that have yet to be released. setenv CVSROOT :pserver:[EMAIL PROTECTED]:/cvsroot cvs login (password is cvs) cvs checkout -r branch-1_2 tcljava cd tcljava/unix autoconf mkdir Build_Jacl cd Build_Jacl ../configure --with-build=jacl --prefix=$your_prefix make make install > I've attached the single-class jar file in hopes > that will answer the mystery. Any java:: technique that > will execute the main method of the class would be > a big boost. I know the sample jar will just generate an > error due to missing class dependencies but just getting > to that point would be an improvement. > > Thanks, > Roy You are not still calling java::new like this, right? java::new x.y.z.class It needs to be like this: java::new x.y.z > PS: I know the java::new call wasn't proper for "real" code. I am just > trying anything to see if I can get access to the class (or any class)! I hope that helps Mo Dejong Red Hat Inc. Things likely to be overheard from a Klingon Programmer Specifications are for the weak and timid! Klingon function calls do not have 'parameters' - they have 'arguments' - and they ALWAYS WIN THEM. A TRUE Klingon Warrior does not comment his code! Our users will know fear and cower before our software! Ship it! Ship it and let them flee like the dogs they are! ---------------------------------------------------------------- The TclJava mailing list is sponsored by Scriptics Corporation. To subscribe: send mail to [EMAIL PROTECTED] with the word SUBSCRIBE as the subject. To unsubscribe: send mail to [EMAIL PROTECTED] with the word UNSUBSCRIBE as the subject. To send to the list, send email to '[EMAIL PROTECTED]'. An archive is available at http://www.mail-archive.com/tcljava@scriptics.com