'C:' is not recognized as an internal command... error when building RTI Perftest 2.3

8 posts / 0 new
Last post
Offline
Last seen: 9 months 2 hours ago
Joined: 02/15/2019
Posts: 44
'C:' is not recognized as an internal command... error when building RTI Perftest 2.3

Hello,

When trying to run the following command:

build.bat --platform x64Win64VS2017 --java-build

I get the following error:

================================== PERFTEST: ===================================
'C:' is not recognized as an internal or external command,
operable program or batch file.

[INFO]: Generating types and makefiles for java
The system cannot find the path specified.
[ERROR]: Failure generating code for java.

Any help would be much appreciated and apologies if this has been posted before (I couldn't seem to find a post with a solution). 

Many thanks,

Blitz3r

jmorales's picture
Offline
Last seen: 1 month 1 week ago
Joined: 08/28/2013
Posts: 61

My initial question is why are you using Perftest 2.3. I recomend you to use the latest official version: 2.4

Now, I believe the problem might be that you might be in a folder with spaces and or your NDDSHOME is in a folder with spaces. Could that be the case?

Offline
Last seen: 9 months 2 hours ago
Joined: 02/15/2019
Posts: 44

I've started using the 2.4 version and I am getting the same error.

My NDDSHOME path is: C:/Program Files/rti_connext_dds-6.0.0/bin

My Current Folder Location: C:\rtiperftest-2.4

Is the space in the NDDSHOME path the error?

Offline
Last seen: 9 months 2 hours ago
Joined: 02/15/2019
Posts: 44

Good news!

I managed to build it, here is what I did:

I set the JAVA_HOME environment variable to " C:\Program Files\Java\jdk1.8.0_211" rather than " C:\Program Files\Java\jdk1.8.0_211/bin".

I set the JRE_HOME environment variable to " C:\Program Files\Java\jre1.8.0_211" rather than " C:\Program Files\Java\jre1.8.0_211/bin".

I set the NDDSHOME environment variable to " C:/Program Files/rti_connext_dds-6.0.0" rather than " C:/Program Files/rti_connext_dds-6.0.0/bin".

However, I did run into another problem. When running the following command:

start cmd /k perftest_java.bat -pub -dataLen 4096 -numSubscribers 1 -domain 1 -latencyCount 10000 -numIter 500000 -bestEffort -multicast

I get the following error:

RTI Perftest 2.4.0 (RTI Connext DDS 6.0.0)
RTI Connext DDS No source for License information
Please contact support@rti.com with any questions or comments.
Exception in thread "main" com.rti.dds.infrastructure.RETCODE_ERROR: error creating entity
at com.rti.dds.util.Utilities.rethrow(Unknown Source)
at com.rti.dds.infrastructure.NativeFactoryMixin.create_entityI(Unknown Source)
at com.rti.dds.domain.DomainParticipantFactoryImpl.create_participant(Unknown Source)
at com.rti.perftest.ddsimpl.RTIDDSImpl.initialize(RTIDDSImpl.java:392)
at com.rti.perftest.harness.PerfTest.run(PerfTest.java:221)
at com.rti.perftest.harness.PerfTest.runTest(PerfTest.java:147)
at com.rti.perftest.ddsimpl.PerfTestLauncher.main(PerfTestLauncher.java:100)

Again, any help would be very much highly appreciated.

Thanks,

Blitz3r

jmorales's picture
Offline
Last seen: 1 month 1 week ago
Joined: 08/28/2013
Posts: 61

Great that you were able to find the solution for that! :D.

The error that you are getting is this one:

RTI Connext DDS No source for License information
Please contact support@rti.com with any questions or comments.

It seems that you didn't set up your license file correctly, or that it is expired. Find here the options to set the license file. Given your environment I would point to solution 3), as the easiest one for you.

Regards,
Javi

Offline
Last seen: 9 months 2 hours ago
Joined: 02/15/2019
Posts: 44

Thanks a lot Javi for the extremely swift reply. I noticed that I hadn't set up a license file at all. Once placed in the directory it was all working.

Thanks!

Blitz3r

Offline
Last seen: 9 months 2 hours ago
Joined: 02/15/2019
Posts: 44

Hi again,

Apologies for the disturbance. Whenever I try to run the following script:

start cmd /k perftest_java.bat -pub -dataLen 4096 -numSubscribers 1 -domain 1 -latencyCount 10000 -numIter 500000 -bestEffort -multicast

I get the following error:

xception in thread "main" java.lang.NoClassDefFoundError: com/rti/dds/infrastructure/Duration_t
at com.rti.perftest.harness.PerfTest.(PerfTest.java:41)
at com.rti.perftest.ddsimpl.PerfTestLauncher.parseConfig(PerfTestLauncher.java:160)
at com.rti.perftest.ddsimpl.PerfTestLauncher.main(PerfTestLauncher.java:35)
Caused by: java.lang.ClassNotFoundException: com.rti.dds.infrastructure.Duration_t
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 3 more

I have tried rebuilding it but it still doens't work. With admin access this command works fine. Any solutions?

Thanks,

Blitz3r

jmorales's picture
Offline
Last seen: 1 month 1 week ago
Joined: 08/28/2013
Posts: 61

If with admin priviledges this works fine, it looks to me like this user does not have access to the nddshome installation, does this make sense? Basically it is complaining that it cannot find Duration_t, which should be part of the java libraries for RTI Connext DDS. What if you try to execute the content of the script manually? does it work then? Else... could you copy your nddshome to a place where your user has complete access?