Results 1 to 3 of 3
- 06-08-2008, 08:26 PM #1
Member
- Join Date
- Apr 2008
- Posts
- 4
- Rep Power
- 0
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:
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:Java 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;
And on the other lines I am told:The declared package "org.apache.android.mail" does not match the expected package ""
Can somebody please tell me what to do :confused:The import android cannot be resolved
- 06-09-2008, 08:37 AM #2
Member
- Join Date
- Jun 2008
- Posts
- 1
- Rep Power
- 0
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.
- 06-09-2008, 11:04 AM #3
Member
- Join Date
- Apr 2008
- Posts
- 4
- Rep Power
- 0
Similar Threads
-
error with import java.io.*
By osval in forum New To JavaReplies: 5Last Post: 05-13-2010, 05:03 PM -
How to import java project to Eclipse?
By techissue2008 in forum EclipseReplies: 1Last Post: 05-30-2008, 10:07 PM -
Combine package of(jdk,eclipse and tomcat)
By joseph in forum EclipseReplies: 0Last Post: 04-07-2008, 01:18 PM -
import statement.
By diRisig in forum New To JavaReplies: 2Last Post: 02-08-2008, 12:34 AM -
I can't import javax.mail
By katie in forum New To JavaReplies: 2Last Post: 08-04-2007, 05:05 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks