Solved

use jbuilder to import a .war file??

Posted on 2004-08-19
5
386 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

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…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
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:
This video teaches viewers about errors in exception handling.

747 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now