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 » IBM MQ Java / JMS » MQSeries 5.1 on Windows 2000

Post new topic  Reply to topic
 MQSeries 5.1 on Windows 2000 « View previous topic :: View next topic » 
Author Message
kirani
PostPosted: Fri Oct 05, 2001 10:36 am    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Hi all,

I installed s/w in following order,

1. J2SE 1.3.1
2. J2EE 1.3

Wrote some Java programs and they worked fine.

3. Installed MQSeries 5.1
4. Apply CSD7

Java program compiles fine but while executing them i get following error.

E:prog>javac str.java
E:prog>java str.java
Exception in thread "main" java.lang.NoClassDefFoundError: str/java

The program I am trying to compile is very simple. It prints "hello world!". Now I am not able to execute any java program on the machine. Did MQSeries change my settings?

Can anyone help?

Regards,
Kiran
Back to top
View user's profile Send private message Visit poster's website
bduncan
PostPosted: Fri Oct 05, 2001 11:09 am    Post subject: Reply with quote

Padawan

Joined: 11 Apr 2001
Posts: 1554
Location: Silicon Valley

Maybe you just made a type when creating your posting, but I noticed that you weren't running the program properly:
E:prog>javac str.java
E:prog>java str.java
Exception in thread "main" java.lang.NoClassDefFoundError: str/java

While javac does expect a file with .java at the end of it, "java" doesn't and in fact gives you an error much like you've shown. I believe you should just be saying:
"java str"

Hopefully this is the problem...



_________________
Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » MQSeries 5.1 on Windows 2000
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.