Solved

How to create JAR file using Forte?

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SHA2 certs for IIS AND Java? 2 136
String array comparison 4 56
junit initializtion error 2 20
How do i find out all classes which contain nested class 2 14
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
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 third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
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:
Suggested Courses

737 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