in reply to Re^2: inline::java problem
in thread inline::java problem

Here's the error I get when running the script from the command line:

main::java::lang:: NoClassDefFoundErr or=HASH(0x2242180)

not sure what it means. I don't get this error when I run the java from the command line. any suggestions?

Replies are listed 'Best First'.
Re^4: inline::java problem
by tobyink (Canon) on Jul 17, 2012 at 21:38 UTC

    This is an exception that's been thrown. Catch the exception (read up on eval and $@), and figure out which class has not been found. The exception object should have a getMessage method.

    perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
      That did it!! Thank you so much for all your help
Re^4: inline::java problem
by Anonymous Monk on Jul 16, 2012 at 23:03 UTC

    I don't get this error when I run the java from the command line. any suggestions?

    The environment, obviously :) (classpath) Re: Environment Variables?????

      I've put every file I am using in the classpath and am still getting that error. Is there any way to know which file it can't find??
      I've put every file I know of in the classpath, checked the permissions on the all the folders I know of, and am still getting that same error..which I don't get when I run the java outside the perl. anyway to find out which file the error is referring to?