Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-08-2008, 10:26 PM
Member
 
Join Date: Apr 2008
Posts: 4
naipulb is on a distinguished road
How to import a package in Eclipse?
Hi.

I want to use the code from the following website:

davanum.wordpress.com/2007/12/22/android-send-email-via-gmail-actually-via-smtp/

It starts with:

Code:
package org.apache.android.mail; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.EditText;
I've downloaded a ZIP-file from the website. It contained 2 JAR-files and a lot of other files. I added the Jar-files to the Classpath.. but in vain. On the first line, Eclipse tells me:

Quote:
The declared package "org.apache.android.mail" does not match the expected package ""
And on the other lines I am told:

Quote:
The import android cannot be resolved
Can somebody please tell me what to do
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-09-2008, 10:37 AM
Member
 
Join Date: Jun 2008
Posts: 1
Hex_uk is on a distinguished road
Hi,

Looking at the code I guess this is for the Google Android phone. The zip only contains mail and activation jars. You will probably need to install the Google Android emulator and SDK before you will be able to use this code.

Ben.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 06-09-2008, 01:04 PM
Member
 
Join Date: Apr 2008
Posts: 4
naipulb is on a distinguished road
Yes you are probably right... darn
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to import java project to Eclipse? techissue2008 Eclipse 1 05-31-2008 12:07 AM
Combine package of(jdk,eclipse and tomcat) joseph Eclipse 0 04-07-2008 03:18 PM
import statement. diRisig New To Java 2 02-08-2008 02:34 AM
error with import java.io.* osval New To Java 4 08-06-2007 11:12 PM
I can't import javax.mail katie New To Java 2 08-04-2007 07:05 PM


All times are GMT +3. The time now is 01:32 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org