Link to home
Start Free TrialLog in
Avatar of Los Angeles1
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:

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

Open in new window


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
Avatar of Los Angeles1
Los Angeles1

ASKER

BTW, is this a problem with the import statement or putting th ecorrect jar in the classpath ?

How can you tell
>>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;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


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
Avatar of mccarl
mccarl
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial