my implementation of RunnableState does not work

Hi,

I have a class that implements a PatchedRunnableState. It works fine when IDEA uses that Runnable State under Windows but not under Linux. the command line generated below runs fine if I copy/paste it to the command line on linux. Does any one know what I should be doing so that it works:

/usr/lib/jvm/java-1.5.0-sun-1.5.0.08/bin/java -Dfile.encoding=UTF-8 -classpath /usr/share/idea-6112/lib/JNIWrap.jar:/usr/share/idea-6112/lib/alloy.jar:/usr/share/idea-6112/lib/annotations.jar:/usr/share/idea-6112/lib/ant/lib/ant-antlr.jar:/usr/share/idea-6112/lib/ant/lib/ant-apache-bcel.jar:/usr/share/idea-6112/lib/ant/lib/ant-apache-bsf.jar:/usr/share/idea-6112/lib/ant/lib/ant-apache-log4j.jar:/usr/share/idea-6112/lib/ant/lib/ant-apache-oro.jar:/usr/share/idea-6112/lib/ant/lib/ant-apache-regexp.jar:/usr/share/idea-6112/lib/ant/lib/ant-apache-resolver.jar:/usr/share/idea-6112/lib/ant/lib/ant-commons-logging.jar:/usr/share/idea-6112/lib/ant/lib/ant-commons-net.jar:/usr/share/idea-6112/lib/ant/lib/ant-icontract.jar:/usr/share/idea-6112/lib/ant/lib/ant-jai.jar:/usr/share/idea-6112/lib/ant/lib/ant-javamail.jar:/usr/share/idea-6112/lib/ant/lib/ant-jdepend.jar:/usr/share/idea-6112/lib/ant/lib/ant-jmf.jar:/usr/share/idea-6112/lib/ant/lib/ant-jsch.jar:/usr/share/idea-6112/lib/ant/lib/ant-junit.jar:/usr/share/idea-6112/lib/ant/lib/ant-launcher.jar:/usr/share/idea-6112/lib/ant/lib/ant-netrexx.jar:/usr/share/idea-6112/lib/ant/lib/ant-nodeps.jar:/usr/share/idea-6112/lib/ant/lib/ant-starteam.jar:/usr/share/idea-6112/lib/ant/lib/ant-stylebook.jar:/usr/share/idea-6112/lib/ant/lib/ant-swing.jar:/usr/share/idea-6112/lib/ant/lib/ant-trax.jar:/usr/share/idea-6112/lib/ant/lib/ant-vaj.jar:/usr/share/idea-6112/lib/ant/lib/ant-weblogic.jar:/usr/share/idea-6112/lib/ant/lib/ant-xalan1.jar:/usr/share/idea-6112/lib/ant/lib/ant-xslp.jar:/usr/share/idea-6112/lib/ant/lib/ant.jar:/usr/share/idea-6112/lib/ant/lib/xercesImpl.jar:/usr/share/idea-6112/lib/ant/lib/xml-apis.jar:/usr/share/idea-6112/lib/asm-commons.jar:/usr/share/idea-6112/lib/asm.jar:/usr/share/idea-6112/lib/boot.jar:/usr/share/idea-6112/lib/cglib-nodep-2.1_3.jar:/usr/share/idea-6112/lib/commons-codec-1.3.jar:/usr/share/idea-6112/lib/commons-collections.jar:/usr/share/idea-6112/lib/emma-agent.jar:/usr/share/idea-6112/lib/emma.jar:/usr/share/idea-6112/lib/extensions.jar:/usr/share/idea-6112/lib/forms_rt.jar:/usr/share/idea-6112/lib/icons.jar:/usr/share/idea-6112/lib/idea.jar:/usr/share/idea-6112/lib/idea_rt.jar:/usr/share/idea-6112/lib/j2ee.jar:/usr/share/idea-6112/lib/jasper2_rt.jar:/usr/share/idea-6112/lib/javac2.jar:/usr/share/idea-6112/lib/javaee.jar:/usr/share/idea-6112/lib/jaxen.jar:/usr/share/idea-6112/lib/jdom.jar:/usr/share/idea-6112/lib/jgoodies-forms.jar:/usr/share/idea-6112/lib/jh.jar:/usr/share/idea-6112/lib/jsf-api.jar:/usr/share/idea-6112/lib/jsp-api.jar:/usr/share/idea-6112/lib/junit-4.0.jar:/usr/share/idea-6112/lib/junit.jar:/usr/share/idea-6112/lib/log4j.jar:/usr/share/idea-6112/lib/microba.jar:/usr/share/idea-6112/lib/nanoxml-2.2.3.jar:/usr/share/idea-6112/lib/openapi.jar:/usr/share/idea-6112/lib/org.eclipse.jdt.core.jar:/usr/share/idea-6112/lib/oromatcher.jar:/usr/share/idea-6112/lib/picocontainer.jar:/usr/share/idea-6112/lib/resolver.jar:/usr/share/idea-6112/lib/resources.jar:/usr/share/idea-6112/lib/resources_en.jar:/usr/share/idea-6112/lib/rt/jasper2/commons-el.jar:/usr/share/idea-6112/lib/rt/jasper2/commons-logging-api.jar:/usr/share/idea-6112/lib/rt/jasper2/jasper-compiler.jar:/usr/share/idea-6112/lib/rt/jasper2/jasper-runtime.jar:/usr/share/idea-6112/lib/rt/jasper2/jsp-api.jar:/usr/share/idea-6112/lib/rt/jasper2/servlet-api.jar:/usr/share/idea-6112/lib/rt/servlet.jar:/usr/share/idea-6112/lib/rt/xerces1.jar:/usr/share/idea-6112/lib/saxpath.jar:/usr/share/idea-6112/lib/servlet-api.jar:/usr/share/idea-6112/lib/trove4j.jar:/usr/share/idea-6112/lib/trove4j_src.jar:/usr/share/idea-6112/lib/velocity.jar:/usr/share/idea-6112/lib/xerces.jar:/usr/share/idea-6112/lib/xml-apis.jar:/usr/share/idea-6112/lib/xmlrpc-2.0.jar:/usr/share/idea-6112/lib/xstream.jar:/usr/share/idea-6112/lib/yjp-controller-api-redist.jar:/usr/share/idea-6112/lib/src/src_openapi.zip:/usr/share/idea-6112/lib/src/src_extensions.zip:/home/florian/development/apps/fitnesse/fitnesse.jar com.intellij.rt.execution.application.AppMain fitnesse.FitNesse -d /home/florian/development/apps/fitnesse -r FitNesseRoot -p 8080
Exception in thread "main" java.lang.NoClassDefFoundError:

Process finished with exit code 1

What I am creating with my implementation of PatchedRunnableState is essentially a call that starts a java process with some special configuration. but as you can see above I get a NoClassDefFoundError error. If I create practically the same through the usual java Applicaiton configuration and get practically the same call it works.

So it's not my configuration that is wrong. the classpath is complete. There is something else going on in how I have implemented the Runnable State.

thanks,
Florian Hehlen

Please sign in to leave a comment.