This is the first time I install opentestman. I met some problem and had no idea how to fix it. I googled but didn't get much useful information.
#java -version
java version "1.6.0_05"
#xmllint -version
xmllint: using libxml version 20626
The requirements claimed by INSTALL are met.
#cd opentestman/ext/tools
#./build_tools.sh
~/Desktop/opentestman-0.6.2/etc/tools ~/Desktop/opentestman-0.6.2/etc/tools
----------
1. WARNING in CmdLineParser.java (at line 7)
import java.util.Enumeration;
^^^^^^^^^^^^^^^^^^^^^
The import java.util.Enumeration is never used
----------
2. WARNING in CmdLineParser.java (at line 35)
public static class UnknownOptionException extends OptionException {
^^^^^^^^^^^^^^^^^^^^^^
The serializable class UnknownOptionException does not declare a static final serialVersionUID field of type long
----------
3. WARNING in CmdLineParser.java (at line 59)
public static class UnknownSuboptionException
^^^^^^^^^^^^^^^^^^^^^^^^^
The serializable class UnknownSuboptionException does not declare a static final serialVersionUID field of type long
----------
4. WARNING in CmdLineParser.java (at line 77)
public static class NotFlagException extends UnknownOptionException {
^^^^^^^^^^^^^^^^
The serializable class NotFlagException does not declare a static final serialVersionUID field of type long
----------
5. WARNING in CmdLineParser.java (at line 98)
public static class IllegalOptionValueException extends OptionException {
^^^^^^^^^^^^^^^^^^^^^^^^^^^
The serializable class IllegalOptionValueException does not declare a static final serialVersionUID field of type long
----------
5 problems (5 warnings)----------
1. ERROR in OTMServer.java (at line 51)
private static Boolean canExit=true;
^^^^^^^
Type mismatch: cannot convert from boolean to Boolean
----------
2. ERROR in OTMServer.java (at line 55)
@Override
^^^^^^^^^
Syntax error, annotations are only available if source level is 5.0
----------
3. ERROR in OTMServer.java (at line 57)
if(!canExit) {
^^^^^^^^
The operator ! is undefined for the argument type(s) Boolean
----------
4. ERROR in OTMServer.java (at line 68)
@Override
^^^^^^^^^
Syntax error, annotations are only available if source level is 5.0
----------
5. ERROR in OTMServer.java (at line 71)
@Override
^^^^^^^^^
Syntax error, annotations are only available if source level is 5.0
----------
6. ERROR in OTMServer.java (at line 104)
argv=new String[argcount];
^^^^^^^^
Type mismatch: cannot convert from Integer to int
----------
7. ERROR in OTMServer.java (at line 105)
for(int i=0; i c = Class.forName(newclass);
^^^^^
The type Class is not generic; it cannot be parameterized with arguments <?>
----------
9. ERROR in OTMServer.java (at line 119)
Class<?> c = Class.forName(newclass);
^
Syntax error, parameterized types are only available if source level is 5.0
----------
10. ERROR in OTMServer.java (at line 129)
canExit=false;
^^^^^
Type mismatch: cannot convert from boolean to Boolean
----------
11. ERROR in OTMServer.java (at line 131)
main.invoke(null, (Object)argv);
^^^^^^
The method invoke(Object, Object[]) in the type Method is not applicable for the arguments (null, Object)
----------
12. ERROR in OTMServer.java (at line 137)
canExit=true;
^^^^
Type mismatch: cannot convert from boolean to Boolean
----------
12 problems (12 errors)
Error Running "build_tools.sh" Script
Hello,
I also have a problem running the "build_tools.sh" script. Below is the error message:
Running FC8
Unzipped the opentestman-0.9.2.tar.gz file
Java version = 1.7.0
XMLLINT version = 20630
Logged in as root
There must be a simple reason why this script is not running. Anyone's reply would be most helpful.
[root@localhost tools]# ./build_tools.sh
/otm/opentestman-0.9.2/etc/tools /otm/opentestman-0.9.2/etc/tools
./build_tools.sh: line 27: javac: command not found
[root@localhost tools]# java -version
java version "1.7.0"
IcedTea Runtime Environment (build 1.7.0-b21)
IcedTea Client VM (build 1.7.0-b21, mixed mode)
[root@localhost tools]# xmllint -version
xmllint: using libxml version 20630
compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 FTP HTTP DTDValid HTML Legacy C14N Catalog XPath XPointer XInclude Iconv ISO8859X Unicode Regexps Automata Expr Schemas Schematron Modules Debug Zlib
[root@localhost tools]#
Akash Malhotra
Which version of OTM you are using? can you provide me output of
#javac