• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

how to compile my struts files in command prompt

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ,

I am new to struts i want to compile my struts files in command prompt.

how to do that and how to set the classpath using command prompt.


can anybody help me out please....

Thanks in Advance.


Thanks & Regards,
Len.

 
Sheriff
Posts: 9692
42
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Len, welcome to javaranch.

you can set the classpath as


You'll need to include the struts jar into the classpath (depending upon the version of struts, the needed jars will vary). I would recommend that you use an IDE (eclipse or netbeans etc) or a build script (ant or maven)...
 
len kumar
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have set classpath given below:

I am doing some mistake but unable to idetify please help me out .............


C:\strutsprac-war\WEB-INF\classes>set classpath=.;struts.jar;servlet-api.jar;

C:\strutsprac-war\WEB-INF\classes>javac -d . *.java

Output:
C:\strutsprac-war\WEB-INF\classes>javac -d *.java
EmployeeAction.java:2: package javax.servlet does not exist
import javax.servlet.ServletException;
^
EmployeeAction.java:3: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
EmployeeAction.java:14: cannot find symbol
symbol : class HttpServletRequest
location: class org.EmployeeAction
public ActionForward perform (ActionMapping mappings,ActionForm form,HttpServletRequest req, HttpServletResponse res)throws ServletException,IOException{
^
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The jars are in your current directory?
 
Please enjoy this holographic presentation of our apocalyptic dilemma right after this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic