I don't think anyone understood what the question was :-)
Are you trying to start JBoss from a Java program? If yes, then have a look at the run.bat file which sets up the Classpath to be used while calling the org.jboss.Main:
"%JAVA%" %JAVA_OPTS% ^ -Djava.endorsed.dirs="%JBOSS_ENDORSED_DIRS%" ^ -classpath "%JBOSS_CLASSPATH%" ^ org.jboss.Main %*
I haven't tried it myself so don't know what issues you might run into. Try it out and if you have any specific errors/questions, do post here.
thank you for your reply. we tried it the way you suggested it and it turned out to be just a classpath issue.
nevertheless we stepped back from starting JBoss from Java and now we are using run.bat again. thanks anyway.