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
Solved

use jbuilder to import a .war file??

Posted on 2004-08-19
5
395 Views
Last Modified: 2008-03-10
use jbuilder to import a .war file??
0
Comment
Question by:she1
  • 3
  • 2
5 Comments
 
LVL 35

Expert Comment

by:TimYates
ID: 11842522
import?

Huh?

You can unpack the war file, to get at the JSPs and CLASS files, but there will be no source code...

to unpack it, copy it to a new directory, and type:

  jar vxf file.war

or on Windows

  jar -vxf file.war

and it should unpack for you...  Or you can use winzip/fileroller/etc

:-)

Tim
0
 

Author Comment

by:she1
ID: 11848683
may i import the .war file in one time instead of import the .java or .jsp individually??
0
 
LVL 35

Accepted Solution

by:
TimYates earned 50 total points
ID: 11851461
>  may i import the .war file in one time instead of import the .java or .jsp individually??

There will be (almost 100% sure) NO ".java" files in the WAR file, just JSPs and JARs...  unless it's something like an example war that comes with struts...

extract the war file, create a blank project in JBuilder, create a blank jsp, copy all the jsps from the extracted war into the place where JBuilder puts the blank jsps delete the jsps

then add all of the JAR files onto your library path...

As for the CLASS files, you can jar them up and add that JAR onto your library path...  
0
 

Author Comment

by:she1
ID: 11857596
thanks, but i do know wsad can inport a .war file in one time.
do you know that?

thanks
0
 
LVL 35

Expert Comment

by:TimYates
ID: 11858352
No I didn't know that...

Doesn't that just import the war so you can run it in Websphere?

*shrug*

There is no such thing in JBuilder (afaik)
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Suggested Solutions

Title # Comments Views Activity
Protect jar file - windows app 2 65
type mismatch (Object[] to double[] 4 33
Running JavaFX on JDeveloper 12C 1 55
String array comparison 4 38
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…
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
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…
The viewer will learn how to implement Singleton Design Pattern in Java.

829 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