Solved

How to create JAR file using Forte?

Posted on 2002-04-29
4
248 Views
Last Modified: 2010-03-31
I'm trying to create JARfiles for several class package I wrote for a web application using Forte CE 3.0, but I'm having minimal success so far.

The easy one:

Relative to the site root, the class package sits in /WEB-INF/classes/core. I want to put all the .class files in the "core" subdirectory into one Jarfile (core.jar), which I can then copy to /WEB-INF/lib & mount as a JAR filesystem in other web applications, and have the classes be accessible with

import core.*;

and, for static methods, as "core.Class.methodname()"

The hard ones:

I also have a bunch of class packages that are taglibs, and have their .tld file inside the package directory (mainly because it meant I could keep everything related to the taglib in one place for CVS convenience). I want to make JARfiles of these too, but (assuming I need to do something special to make it work) I also want to be able to reference the .tld file as /WEB-INF/classes/tagpackagename/TagPackage.tld after copying the JARfile to the /WEB-INF/lib directory and Forte mounts it as a filesytem.

So... more or less from start (loading the web app project that contains the packages, is built, and works in Forte) to finish (a .jar file for each of the class packages in the web app's /WEB-INF/classes subdirectory that can be put in the /WEB-INF/lib subdirectory of other web apps and used the same way it's being used in the original app), what do I need to do?
0
Comment
Question by:jskubick
[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
4 Comments
 

Author Comment

by:jskubick
ID: 6978963
if it matters, /WEB-INF/classes is physically located at c:\java\adminwebapp\WEB-INF\classes ...

Also, some of the classes in each package depend upon other .jarfiles (specifically, Oracle 8's "classes12.zip" and Struts.jar). Does each jarfile need to be self-sufficient, or can individual jarfiles mutually depend upon one another?
0
 
LVL 3

Expert Comment

by:shyamkumarreddy
ID: 6979881
Jskubick
Go to the Classes directory then use jar command to build it manually rather using the Forte tool.
What probs u r facing with this.

Shyam
0
 
LVL 9

Expert Comment

by:Venci75
ID: 7992648
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
PAQ'd and pts removed
Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Venci75
EE Cleanup Volunteer
0
 

Accepted Solution

by:
SpideyMod earned 0 total points
ID: 8048438
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

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

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

705 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