Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

use jbuilder to import a .war file??

Posted on 2004-08-19
5
Medium Priority
?
414 Views
Last Modified: 2008-03-10
use jbuilder to import a .war file??
0
Comment
Question by:she1
[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
  • 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 200 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

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
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.
Suggested Courses

618 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