Solved

Corel Office for Java will not run under OS/2 Warp 4

Posted on 1997-05-13
5
280 Views
Last Modified: 2011-04-14
When I attempt to load the Corel Office for Java (COJ) beta
using Shell.html, Netscape 2.02 for OS/2 gives the
following error in the Java console:

 Applet exception: error:
corel/af/persist/ServerCredentials
java.lang.NoClassDefFoundError:
corel/af/persist/ServerCredentials
      at DisplayPanel.<init>(Compiled Code)
      at CorelDesktop.init(Compiled Code)
      at ibm.JEmpower.AppletFrame.run(Compiled Code)
      at java.lang.Thread.run(Compiled Code)

I get the same error when using applet.exe to load
Shell.html. I have JDK 1.02 for OS/2 installed on Warp 4
with Fixpak 1. Others have suggested that this is a
classpath problem. I have both the path to COJ and to
classes.zip entered correctly in my set classpath
statement, so I do not think this is a classpath problem.

Daryl Nash

dnash@das9.cas.psu.edu
0
Comment
Question by:dnash
  • 3
  • 2
5 Comments
 

Expert Comment

by:aruns
ID: 1220413
What are the contents of the COJ directory? (specially the zip files if any are existent)
0
 

Author Comment

by:dnash
ID: 1220414
The COJ directory does not contain any zip files. Most of the
files are class files.
0
 

Author Comment

by:dnash
ID: 1220415
aruns comment about zip file contents in the COJ directory led
me to the solution. COJ would not run because I had unzipped it
without any directory paths. After discovering that coj.zip had
directory paths stored in it, I deleted all 4000 files in the
old COJ directory, and unzipped it again with paths. COJ works
now, of course. Thanks.
0
 

Accepted Solution

by:
aruns earned 100 total points
ID: 1220416
Hi,
It was nice to hear that you have sorted out some of your difficulties. But, I still did not understand the reason for you unzipping the class files. You should actually set the CLASSPATH to all the zip files that you would be using. If the CLASSPATH contains the name of a directory, it would always search for a classes.zip in that directory. So, if the classes are in a different zip file, the CLASSPATH contains the directory info along with the name of the appropriate zip file.

If COJ is installed in a directory COJ, the classes are normally in the lib directory under COJ. Your CLASSPATH should have an entry resembling
 CLASSPATH=.;COJ/lib/coj.zip (along with the other paths)

Hope this gives you more insight into solving your problem.
0
 

Author Comment

by:dnash
ID: 1220417
coj.zip contains all the files, not just the class files for
COJ. Corel's installation instructions are to unzip this file to
a directory. The classpath statement then needs to contain the
COJ directory and the directory path to classes.zip. For some
reason, when I first unzipped coj.zip it did not create the
subdirectories needed, instead it placed all the files in one
directory. So, when I started COJ it was looking for files in
directories which did not exist. When you asked about the
contents of zip files, I looked at coj.zip in an archive viewer
and found all these subdirectories which my first installation
did not produce for some reason. Thanks again.
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question