[AC] JavaTimeCollector [message #115676] |
Tue, 16 October 2007 15:28  |
Eclipse User |
|
|
|
Originally posted by: mlafon.arcadsoftware.removethis.com
Hi,
I'm playing with the AC (stand alone, latest version 4.4.0.3) under
windows XP (sp2) with java 1.6, and trying to get the JavaTimeCollector
working...
I use a modified version of SampleClientAC for client (just change
"TimeColelctor" to "JavaTimeCollector" in agent name).
I have changed the agent.xml to this :
....
<launchInfo>
<Application executable="java.exe">
<Parameter value=" -Djava.library.path=." />
<Parameter value=" -classpath tptpcore.jar" />
<Parameter value="
org.eclipse.tptp.platform.execution.samples.TPTPJavaAgent"/ >
</Application>
</launchInfo>
....
The client can not access to the agent (ACServer is running), in the
servicelog.log there is a "processExitedEvent was received for which we
have nio corresponding agent."
If i try to run the agent form commandline like that :
java.exe -Djava.library.path=c:\tptp\bin -cp
"...;c:\tptp\bin\tptpcore.jar" org...TPTPJavaAgent
A get something about UnsatisfiedLinkError exception :
java.lang.UnsatisfiedLinkError: C:\tptp\bin\javaBaseAgent.dll: Le
systÞme d'exploitation ne peut pas exÚcuter %1
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at
org.eclipse.tptp.platform.execution.datacollection.BaseAgent . <clinit>(BaseAgent.java:98)
org.eclipse.tptp.platform.execution.exceptions.NativeLibrary NotFound: Error:
The native library not found.
at
org.eclipse.tptp.platform.execution.datacollection.BaseAgent .init(BaseAgent.java:161)
at
org.eclipse.tptp.platform.execution.samples.TPTPJavaAgent.<init >(TPTPJavaAgent.java:54)
at
org.eclipse.tptp.platform.execution.samples.TPTPJavaAgent.ma in(TPTPJavaAgent.java:63)
Exception in thread "main" java.lang.UnsatisfiedLinkError:
org.eclipse.tptp.platform.execution.datacollection.BaseAgent .register0(Ljava/lang/String;)I
at
org.eclipse.tptp.platform.execution.datacollection.BaseAgent .register0(Native
Method)
at
org.eclipse.tptp.platform.execution.datacollection.BaseAgent .register
(BaseAgent.java:202)
at
org.eclipse.tptp.platform.execution.samples.TPTPJavaAgent.ma in(TPTPJa
I checked, the C:\tptp\bin\javaBaseAgent.dll exist !
Does someone have any idea on what I am missing ?
Thanks in advance,
Marc.
|
|
|
|
|
Re: [AC] JavaTimeCollector [message #115971 is a reply to message #115713] |
Thu, 18 October 2007 06:29  |
Eclipse User |
|
|
|
Originally posted by: mlafon.arcadsoftware.removethis.com
In fact, the problem come from the alias to the java.exe command, this
command is started in the SYS_TEMP_DIR, and not in the bin directory of
TPTP. This way, if java search the dll in the java.library.path, the DLL
itself look in the local directory (temp) and in the system directory
and in the path.
This should be corrected if the java command was launched in the bin
directory of tptp ! Is there any particular reason to start java in the
Temp directory ?
Marc.
|
|
|
Powered by
FUDForum. Page generated in 0.05623 seconds