aspose file tools*
The moose likes JSP and the fly likes Path of imports / JFreeChart Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Path of imports / JFreeChart Question" Watch "Path of imports / JFreeChart Question" New topic
Author

Path of imports / JFreeChart Question

Rob Hunter
Ranch Hand

Joined: Apr 09, 2002
Posts: 828
1) when importing in a JSP and importing (let's say java.awt or other java classes) where are these classes stored?
2) I want to download JFreeCHart. In which directory should I extract the zip into?

I'd appreciate any helpful responses. Thanks in advance.

RH
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

If these libraries are shipped as jar files the jars go in WEB-INF/lib
If you're going to unpack then the class files go under WEB-INF/classes/PACKAGE-STRUCTURE/


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Rob Hunter
Ranch Hand

Joined: Apr 09, 2002
Posts: 828
Thanks Ben. When importing java classes where are they stored (for instance awt, swing, etc..,)?

RH
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42930
    
  68
They're in a jar file that's part of the JRE installation. They shouldn't be moved around or un-jar-ed.
Rob Hunter
Ranch Hand

Joined: Apr 09, 2002
Posts: 828
No I was just wondering where they are. Where in the jre? I wouldnt anyway considering there most likely isn't any source. Thanks for ther response (appreciate an answer to the other question too though ;)).

RH
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61766
    
  67

That greatly depends on the platform and implementation of the JRE that you are using.
[ April 19, 2007: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42930
    
  68
The JRE does include the source code to the class libraries, though, which comes in handy if you need to understand more about a class than what's covered in the javadocs. Hunt for a file called src.zip or src.jar.
 
Consider Paul's rocket mass heater.
 
subject: Path of imports / JFreeChart Question