Solved

How to create JAR file using Forte?

Posted on 2002-04-29
4
240 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
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
split53 challenge 7 95
JDeveloper 12c for 32 bit 4 84
eclipse shortcuts 9 54
map related example 6 47
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…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
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:

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