[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Microsoft Java Runtime and CAB vs. JAR

Posted on 1997-08-20
2
Medium Priority
?
336 Views
Last Modified: 2013-11-23
I'm currently trying to compress
my application with either jar or cab and was wondering which was the preferred method.  I was
also wondering if either or would work with applications and not just applets. If I have packages in my application, do I need to set up some sort of heirarchy to get them into the cab or jar file?  Or is there another way?  How?  In addition, I wanted
to run the application under the Microsoft Java Runtime without extracting the .jar or .cab file.
There may be a way around it by changing the classpath, but I'm not sure how.  I tried cp:p but didn't have any luck.  Maybe I did it wrong.  Any ideas?
0
Comment
Question by:Jeans
2 Comments
 
LVL 4

Accepted Solution

by:
russgold earned 200 total points
ID: 1225435
CAB files are Microsoft specific, and will not work with other browsers. JAR files are part of the language spec, and should ultimately work with all compliant browsers.   For the time being, you may have to use CAB, JAR, and zip (the method supported by Netscape 3) archives to cover all possibilities.

JDK 1.1 has the ability to find classes in either a zip or a JAR file, so you can certainly use this strategy for applications.

Microsoft Java Runtime behavior is a separate issue and you may want to ask a separate questions; however, I believe that it will  find classes in a CAB file.  Note: to use an archive, the file name - not the directory - should be included in the CLASSPATH.
0
 

Author Comment

by:Jeans
ID: 1225436
Thanks for the quick response.  It helped a bit, but I'm still struggling.  I'm presently trying to run a jar file under Sun's java runtime but am still not sure how to include my packages in the jar file or how to run the file without extracting the class file.  I tried setting my classpath to c:\directory\file.jar;. and then to c:\directory\file.jar\file.class;. but neither method worked.  Part of my question was also how to set the classpath to work.  Any other comments?  Thanks, Jeans
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
This video teaches viewers about errors in exception handling.
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.
Suggested Courses
Course of the Month17 days, 20 hours left to enroll

830 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