IBM Support

The error message: "javac: invalid argument: Files\JavaSoft\JRE\1.3.1_06\lib\ext\QTJava.zip" is displayed when compiling a Rose RealTime Java model.

Troubleshooting


Problem

Rose RealTime models will not compile when having installed QuickTime for Java on the machine. The following error is displayed in the Build Log: !> Compiling RTcompileAll javac: invalid argument: Files\JavaSoft\JRE\1.3.1_06\lib\ext\QTJava.zip Usage: javac where possible options include: -g Generate all debugging info -g:none Generate no debugging info -g:{lines,vars,source} Generate only some debugging info -O Optimize; may hinder debugging or enlarge class file -nowarn Generate no warnings -verbose Output messages about what the compiler is doing -deprecation Output source locations where deprecated APIs are used -classpath Specify where to find user class files -sourcepath Specify where to find input source files -bootclasspath Override location of bootstrap class files -extdirs Override location of installed extensions -d Specify where to place generated class files -encoding Specify character encoding used by source files -target Generate class files for specific VM version NMAKE : fatal error U1077: 'rtperl' : return code '0x1' Stop. NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\VC98\bin\nmake.exe"' : return code '0x2' Stop. Error: Compile failed status 2 Build failed.

Cause

QuickTime for Java has added an entry to the CLASSPATH environment variable in a faulty way.

CLASSPATH="C:\Program Files\JavaSoft\JRE\1.3.1_06\lib\ext\QTJava.zip"

Resolving The Problem

Remove the double quotas, "", around the QuickTime for Java entry in the CLASSPATH environment variable. Rose RealTime will then be able to compile the Java model.





[{"Product":{"code":"SSSHKL","label":"Rational Rose RealTime"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"--","Platform":[{"code":"PF033","label":"Windows"}],"Version":"2002.05.20","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Historical Number

146999139

Document Information

Modified date:
16 June 2018

UID

swg21131548