Hi

Well the part of the project I need actually has no references to
Swing.

The project looks like this

de.schlichtherle.license
de.schlichtherle.ftp
de.schlichtherle.wizard

All the swing parts are in the wizard section.  I don't want anything
from this package at all so can simple remove it.  But I don't know
how.  Should I just delete it from the CVS project?  Copy the
necessary files into my android project or create a new project with a
subset of the downloaded CVS one?

thanks

On Dec 5, 4:42 pm, "Mark Murphy" <mmur...@commonsware.com> wrote:
> > I am having a little trouble using some external source files.  I am
> > new to eclipse and the methods used to import external source files.
>
> > Basically this is what I have done.
>
> > Downloaded the source files for a java project called "TrueLicense"
> > via CVS.
> > Imported this library by going to "Projects" and adding the
> > "TrueLicense" project (I am not sure if I should do this in "Source",
> > "projects" or "Libraries"?)
> > Imported the required classes into my android project without any
> > compile errors.
>
> > When I run the program I get:
>
> > 12-05 15:52:28.632: WARN/dalvikvm(724): VFY: unable to find class
> > referenced in signature (Ljavax/swing/filechooser/FileFilter;)
>
> > Then a whole lot of other errors.
>
> > This seems sensible as there is a sections of the TrueLicense package
> > that used SWING.  How do I only import the parts of TrueLicense that I
> > need?
>
> With some pain, I imagine. The question is whether there will be any
> functionality left after you clean up the Swing references.
>
> You'll need to search your source tgree, looking for javax.swing.*
> imports, and either deleting the source files referencing Swing or perhaps
> just commenting out bits of those files that use Swing. This, in turn,
> will break other stuff that depends on the stuff that depends on Swing, so
> you'll need to comment out or otherwise repair those references as well.
> And so on.
>
> Sometimes, you get lucky, and there are few references, and they are
> fairly isolated. For example, I got Rhino (Javascript interpreter in Java)
> working in Android 1.1 after fixing up references to some java.beans.*
> interfaces and classes. Fortunately, these were isolated in a single file.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> Android App Developer Books:http://commonsware.com/books.html

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to