?
Solved

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

Posted on 1997-05-13
5
Medium Priority
?
287 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 200 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

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 …
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
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…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Suggested Courses
Course of the Month13 days, 21 hours left to enroll

800 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