Solved

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

Posted on 1997-05-13
5
281 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

808 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