ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » Batch File

Post new topic  Reply to topic
 Batch File « View previous topic :: View next topic » 
Author Message
trinath
PostPosted: Tue Jul 22, 2014 10:43 pm    Post subject: Batch File Reply with quote

Apprentice

Joined: 02 Jun 2014
Posts: 34

Am trying execute java program by using batch file
In this Program am using
C:\Program Files (x86)\IBM\WebSphere MQ\java\lib\
com.ibm.mq jar file

am using this code in batch file

set path="C:\Program Files\Java\jdk1.7.0_60\bin";
set classpath="C:\Program Files\Java\jdk1.7.0_60\lib";
javac Put.java (Put means class name)
java Put


but it shows

Exception in thread "main" java.lang.NoClassDefFoundError: com/ibm/mq/MQException
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2570)
at java.lang.Class.getMethod0(Class.java:2813)
at java.lang.Class.getMethod(Class.java:1663)
at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Jul 23, 2014 5:17 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

you do not have all the needed jar files on the classpath...

Reference all jar files in <mqinstall>/java/lib and you won't see a class not found... for missing mq jar files.

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Batch File
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.