I am running into issues when going through the good old old example
instructions included with UIMA 2.22.
I am posting to draw attention to these, in case they need attention. Also,
they may bring up other issues which are worth discussing here.
Here is one: if I want to add the sources to the jar files, there is a
"bat" file, in the unzipped source code directory. It basically just runs
the java jar command for the source jars.
cd jVinci\src\main\java
jar %UIMA_HOME%\lib\jVinci.jar *
On Windows, you will certainly get an error, saying 'no 'jar' command on
this system.'
Problem 1. The script just calls the jar command, instead of calling java
-jar. I don't know when that has ever worked - certainly it has been many
years ago. Currnelty (JDK 1.6.0_13_b03), you need to use the java -jar
command
cd jVinci\src\main\java
java -jar %UIMA_HOME%\lib\jVinci.jar *
Even fixing this does not solve all problems - there is still an error
about not finding the Manifest. Note: it is not a problem with JAVA_HOME
or the system wide recognition of Java. Here is my DOS screen for a
series of commands:
C:\apache-uima\uimaj-2.2.2-incubating>java -fullversion
java full version "1.6.0_13-b03"
C:\apache-uima\uimaj-2.2.2-incubating>java -jar
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
-client to select the "client" VM
-server to select the "server" VM
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is client.
-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A ; separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-version:<value>
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -jre-no-restrict-search
include/exclude user private JREs in the version search
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
-agentlib:<libname>[=<options>]
load native agent library <libname>, e.g. -agentlib:hprof
see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:<pathname>[=<options>]
load native agent library by full pathname
-javaagent:<jarpath>[=<options>]
load Java programming language agent, see
java.lang.instrument
-splash:<imagepath>
show splash screen with specified image
C:\apache-uima\uimaj-2.2.2-incubating>cd jVinci\src\main\java
C:\apache-uima\uimaj-2.2.2-incubating\jVinci\src\main\java>java -jar
%UIMA_HOME
%\lib\jVinci.jar *
Failed to load Main-Class manifest attribute from
C:\apache-uima\lib\jVinci.jar
:
** ** ** **
Kameron Arthur Cole
Senior IT Specialist, Managing Consultant
IBM Information Management Lab Services.
[email protected]
home office: 305-831-4058 / mobile office: 305.905.4112 / fax: 845.491.4052
ECM Lab Services Mission:
To provide fee-based services and ECM centric solutions around our products
with profitable delivery, high customer satisfaction and rapid ROI
realization.
Information Clearing House for OmniFind (my blog)
Text Analytics Community
Worldwide Discovery (OmniFind) Tech SalesWiki
IBM Enterprise Content Management