- C:\>set CREO_HOME="C:\Program Files\PTC\Creo 2.0\Common Files\M100"
- C:\>set JAVA_HOME=D:\dev-tools\jdk1.7.0_45_amd64
- C:\>cd jlink-first-master
- C:\jlink-first-master>%JAVA_HOME%\bin\javac cp %CREO_HOME%\text\java\pfc.jar src\jlink\Launcher.java -d dist
- cd C:\jlink-first-master\dist
- C:\jlink-first-master\dist> %CREO_HOME%\..\..\Parametric\bin\parametric.bat
I am using cmd to run above comments.I want to create a batch file .I did something but it can't solve my issue.
- @echo off
- SET CCREO_HOME=C:\Program Files\PTC\Creo 2.0\Common Files\M100
- SET JAVA_HOME=D:\dev-tools\jdk1.7.0_45_amd64
- SET PATH=C:\jlink-first-master
- SET OPATH=%OPATH%;%CREO_HOME%;%CREO_HOME%;%PATH%;
- SET "%JAVA_HOME%\bin\javac -cp %CREO_HOME%\text\java\pfc.jar src\jlink\Launcher.java -d dist"
- call %CREO_HOME%\..\..\Parametric\bin\parametric.bat
- pause
Please help me to solve my issue?