Los Angeles1
asked on
Java, how do I find the correct jar file and import statement
I am not a java programmer, but am trying to compile a program in java
I perform the following:
This is a supplied sample that comes with amq, so it should be good to go
So I look up CommandLineSupport, and see it in the following link:
http://activemq.apache.org/maven/5.8.0/activemq-kahadb-store/apidocs/org/apache/activemq/store/kahadb/disk/util/CommandLineSupport.html
My questions are:
1> what is the import command I should use inside the java program to make sure this class is properly referenced
2> What is the name of th ejar file I am looking for:
3> any other tips ?
Thanks
I perform the following:
C:\amq>"C:\Program Files (x86)\Java\jdk1.6.0_06\bin\"javac -Xlint:deprecation -
classpath activemq-kahadb-store-5.8.0.jar;activemq-broker-5.8.0.jar;activemq-cli
ent-5.8.0.jar;activemq-console-5.8.0.jar;activemq-jaas-5.8.0.jar;activemq-kahadb
-store-5.8.0.jar;activemq-openwire-legacy-5.8.0.jar;activemq-protobuf-1.1.jar;ac
tivemq-spring-5.8.0.jar;activemq-web-5.8.0.jar;geronimo-j2ee-management_1.1_spec
-1.0.1.jar;geronimo-jms_1.1_spec-1.1.1.jar;geronimo-jta_1.0.1B_spec-1.0.1.jar;ha
wtbuf-1.9.jar;jcl-over-slf4j-1.6.6.jar;slf4j-api-1.6.6.jar ProducerTool.java
ProducerTool.java:59: cannot find symbol
symbol : variable CommandLineSupport
location: class ProducerTool
String[] unknown = CommandLineSupport.setOptions(producerTool, args);
^
ProducerTool.java:67: cannot find symbol
This is a supplied sample that comes with amq, so it should be good to go
So I look up CommandLineSupport, and see it in the following link:
http://activemq.apache.org/maven/5.8.0/activemq-kahadb-store/apidocs/org/apache/activemq/store/kahadb/disk/util/CommandLineSupport.html
My questions are:
1> what is the import command I should use inside the java program to make sure this class is properly referenced
2> What is the name of th ejar file I am looking for:
3> any other tips ?
Thanks
>>ProducerTool.java:67: cannot find symbol
I do nor think it is issue with jars.
jar files end with .jar.
I see you have below jars in classpath
ctivemq-kahadb-store-5.8.0 .jar;activ emq-broker -5.8.0.jar ;activemq- cli
ent-5.8.0.jar;activemq-con sole-5.8.0 .jar;activ emq-jaas-5 .8.0.jar;a ctivemq-ka hadb
-store-5.8.0.jar;activemq- openwire-l egacy-5.8. 0.jar;acti vemq-proto buf-1.1.ja r;ac
tivemq-spring-5.8.0.jar;ac tivemq-web -5.8.0.jar ;geronimo- j2ee-manag ement_1.1_ spec
-1.0.1.jar;geronimo-jms_1. 1_spec-1.1 .1.jar;ger onimo-jta_ 1.0.1B_spe c-1.0.1.ja r;ha
wtbuf-1.9.jar;jcl-over-slf 4j-1.6.6.j ar;slf4j-a pi-1.6.6.j ar
make sure all the quotes and lines properly ended.
Here is interesting link
<Link to competing site removed - mccarl - 29 Sept 2013>
I do nor think it is issue with jars.
jar files end with .jar.
I see you have below jars in classpath
ctivemq-kahadb-store-5.8.0
ent-5.8.0.jar;activemq-con
-store-5.8.0.jar;activemq-
tivemq-spring-5.8.0.jar;ac
-1.0.1.jar;geronimo-jms_1.
wtbuf-1.9.jar;jcl-over-slf
make sure all the quotes and lines properly ended.
Here is interesting link
<Link to competing site removed - mccarl - 29 Sept 2013>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
How can you tell