Solved

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

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Fibonacci challenge 11 84
countHi2 challenge 7 44
strCopies  challenge 17 74
starter POM and spring-boot-starter,  spring-boot-web 2 17
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

746 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now