Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Class File Editor -Source Not Found(Class File Editor -Source Not Found)
Class File Editor -Source Not Found [message #782594] Tue, 24 January 2012 02:30 Go to next message
p33ps poll is currently offline p33ps pollFriend
Messages: 2
Registered: January 2012
Location: philippines
Junior Member
hi!need some help here..wonder if you could help me..
my problem is that i imported packages like this:
//
import java.sql.SQLException;
import java.util.Iterator;
import java.util.List;
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.commons.fileupload.FileItem;
import org.apache.commons.fileupload.FileItemFactory;
import org.apache.commons.fileupload.FileUploadException;
import org.apache.commons.fileupload.disk.DiskFileItemFactory;
import org.apache.commons.fileupload.servlet.ServletFileUpload;

import data.Myconnection;
import date_time.Server_date_time;
import func.Database_updatetor_mania;
import func.Database_updatetor_mania2;
import func.Helper;
//

in my uploader.java (uploads xls file and save data to database) and the class file editor says that the source for file ServletException.class and others cannot be found and i have to change my attached source. I downloaded the servlet-api.jar but i don't know exactly where to place it in the java directory, and use it in eclipse.
I'm new at eclipse, Sad don't know my way out

anyways, thanks for reading, hope you'll help
Re: Class File Editor -Source Not Found [message #782874 is a reply to message #782594] Tue, 24 January 2012 16:20 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 23-Jan-12 19:30, hannah anciano wrote:
> hi!need some help here..wonder if you could help me.. my problem is that
> i imported packages like this:
> //
> import java.sql.SQLException;
> import java.util.Iterator;
> import java.util.List;
> import java.io.File;
> import java.io.IOException;
> import java.io.PrintWriter;
>
> import javax.servlet.ServletException;
> import javax.servlet.http.HttpServlet;
> import javax.servlet.http.HttpServletRequest;
> import javax.servlet.http.HttpServletResponse;
>
> import org.apache.commons.fileupload.FileItem; import
> org.apache.commons.fileupload.FileItemFactory;
> import org.apache.commons.fileupload.FileUploadException; import
> org.apache.commons.fileupload.disk.DiskFileItemFactory; import
> org.apache.commons.fileupload.servlet.ServletFileUpload;
> import data.Myconnection;
> import date_time.Server_date_time;
> import func.Database_updatetor_mania;
> import func.Database_updatetor_mania2;
> import func.Helper;
> //
>
> in my uploader.java (uploads xls file and save data to database) and the
> class file editor says that the source for file ServletException.class
> and others cannot be found and i have to change my attached source. I
> downloaded the servlet-api.jar but i don't know exactly where to place
> it in the java directory, and use it in eclipse.
> I'm new at eclipse, :( don't know my way out
> anyways, thanks for reading, hope you'll help

If you have time, skip this article on the relationship between
projects, source code and JAR libraries.

http://www.javahotchocolate.com/tutorials/jar-libraries.html
Re: Class File Editor -Source Not Found [message #793298 is a reply to message #782874] Wed, 08 February 2012 01:19 Go to previous message
p33ps poll is currently offline p33ps pollFriend
Messages: 2
Registered: January 2012
Location: philippines
Junior Member
@Russell Bateman: thank you sir! That sure helped!Smile
I also figured out there are downloadable libraries/class with sources(src) in particular, and I attached them.Works great! Thank you!
Previous Topic:Plugin for eclipse indigo
Next Topic:Eclipse maven
Goto Forum:
  


Current Time: Fri Mar 29 05:36:32 GMT 2024

Powered by FUDForum. Page generated in 0.03387 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top