Cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Shell command error - Returned a value of 3"bmide_generatetcplmxmlschema.bat " Shell c

Pioneer
Pioneer

It has the symbolic likn to the java.exe

 

It returns me 

 

java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

Re: Shell command error - Returned a value of 3"bmide_generatetcplmxmlschema.bat " Shell c

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom
Last chance, check your system environment variable for PATH. We sometimes add the path to java\bin whenever an application fails to find it. And some applications want a C:\Temp

Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11.0.1.mp01 | SW 2016 | TcUA 11.2.3
Evaluating:AW 3.2

Re: Shell command error - Returned a value of 3"bmide_generatetcplmxmlschema.bat " Shell c

Experimenter
Experimenter

HI

you can try to edit tem.bat and set
environment JAVA
for example in my case is


setx JAVA_HOME=C:\Program Files\Java\jdk1.7.0_45
setx JRE64_HOME=C:\Program Files\Java\jdk1.7.0_45\jre

 

and after, run the tem as administrator

good luck

Saludos,

Re: Shell command error - Returned a value of 3"bmide_generatetcplmxmlschema.bat " Shell c

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom
NO. If you need to change Java for TEM then you either run TEM and migrate to a new JRE or you modify TC_ROOT\install\tem_init.bat. Do not modify TEM.bat please.

Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11.0.1.mp01 | SW 2016 | TcUA 11.2.3
Evaluating:AW 3.2

Re: Shell command error - Returned a value of 3"bmide_generatetcplmxmlschema.bat " Shell c

Pioneer
Pioneer

Yes, I will make sure java is not changed in tem.bat

 

But still waiting for some luck to work.

 

This is might be a small issue which is not allowing me to run any batch files through TC shell that itself tagged to installation. I will try to install a new java version and give a try

 

 

Re: Shell command error - Returned a value of 3"bmide_generatetcplmxmlschema.bat "

Pioneer
Pioneer

 I have fixed the java issue, it was in tc_profilevars.bat where JRE_HOME is set to path %TC_ROOT%/install

 

Now I am getting a new error

 

Output from command: "bmide_generatetcplmxmlschema.bat" -u=infodba -p=***** -g=dba
TcPlmXmlXsdInstallToTC - extractDataModel failed - retcode = 226058
command_exit=1

 

shell.err file shows

 

C:\Apps\Siemens\Teamcenter\Teamcenter10\bin\business_model_extractor -u=infodba -p=infodba -g=dba -outfile="C:\Siemens\tcdata\tcdev\model\model_dbextract.xml"

 
command_exit=226058

 

 

Re: Shell command error - Returned a value of 3"bmide_generatetcplmxmlschema.bat "

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom
The entries in tc_profilevars.bat should not be changed. They should read:
call "%TC_ROOT%\install\tem_init.bat"
set JRE_HOME=%TC_JRE_HOME%

They are setting JRE_HOME to the value specified by TC_JRE_HOME which is defined in TC_ROOT\install\tem_init.bat:
set TC_JRE_HOME=C:\progra~1\Java\jre1.8.0_101

I'm not sure if this is just a typo or not but I did notice that you have a space after the equals and before the value in JAVA_HOME:
I see environment variables pointed to the correct location
JAVA_HOME= C:\progra~1\Java\jre1.8.0_101
JRE_HOME=C:\progra~1\Java\jre1.8.0_101
JRE64_HOME=C:\progra~1\Java\jre1.8.0_101


Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11.0.1.mp01 | SW 2016 | TcUA 11.2.3
Evaluating:AW 3.2

Re: Shell command error - Returned a value of 3"bmide_generatetcplmxmlschema.bat "

Pioneer
Pioneer

It was "set JRE_HOME=%TC_ROOT%/install/install/jre" in tc_profilevars.bat, was not sure about that.

 

So I changed to set JRE_HOME=%TC_JRE_HOME%

 

Environment variables were also set correclty without space, it was just a typo