i am trying to run a stateful session bean program.
after starting the jboss server from eclipse helios,when i try to run the Client.java,i am getting following error
Exception occurred executing command line.
Cannot run program "C:\Program Files\Java\jdk1.6.0_24\bin\javaw.exe" (in directory "H:\eclipse-jee-helios-SR1-win32\eclipse\storeprograms\Trialone"): CreateProcess error=87, The parameter is incorrect
Have you set up run options for your client? If so, what are they? It appears that one of the options could be misspelled and thus the JVM does not recognize it.
I asked about run options for your app, not for Eclipse.
The code you posted, is that in its own project? If so, right-click the source file and select Run As | Java Application.
shriram iyer
Ranch Hand
Joined: Dec 10, 2003
Posts: 43
posted
0
The code i posted,is that in its own project
but when i run it is as a java application it shows following error
Exception occurred executing command line.
Cannot run program "C:\Program Files\Java\jdk1.6.0_24\bin\javaw.exe" (in directory "H:\eclipse-jee-helios-SR1-win32\eclipse\storeprograms\Trialone"): CreateProcess error=87, The parameter is incorrect
See http://eclipsecoding.wikidot.com/faq#launchError for details.
The max command prompt line length in windows xp is 8191 characters. You'll have to shorten your CLASSPATH variable, it seems.
shriram iyer
Ranch Hand
Joined: Dec 10, 2003
Posts: 43
posted
0
Regarding
C:\Program Files\Java\jdk1.6.0_24\bin\javaw.exe" (in directory "H:\eclipse-jee-helios-SR1-win32\eclipse\storeprograms\Trialone"
jre classpath i have not changed and tried out.
i changed that H:\eclipse-jee-helios-SR1-win32\eclipse\storeprograms\Trialone to H:\eclipse\storeprograms\Trialone
still it is giving same error
if have to change jre classpath i have to ensure smooth working of all applications depending on jre.Are you advising me to change jre path?.
Look in the Eclipse log to see if there is more information about this. The log is at workspace/.metadata/.log
How big is the classpath for this app? How many JARs are in it and how deeply are the JARs nested within the directory structure? Googling the error indicates that the command is too long to be issued and that usually means that the classpath is too long.
shriram iyer
Ranch Hand
Joined: Dec 10, 2003
Posts: 43
posted
0
now i shortened the jdk classpath still i get following error
Exception occurred executing command line.
Cannot run program "D:\jdk\bin\javaw.exe" (in directory "H:\eclipse\s\T"): CreateProcess error=87, The parameter is incorrect
cheers
shriram iyer
Ranch Hand
Joined: Dec 10, 2003
Posts: 43
posted
0
problem resolved
instead of including entire jboss library i included j2ee 1.4 libraries (jboss tools)