Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6660851
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:12:24+00:00 2026-05-26T02:12:24+00:00

First I know that this probably sounds like it isn’t the best way to

  • 0

First I know that this probably sounds like it isn’t the best way to do this but changing the overall design is out of my control so please don’t post answers to do it a different way. I have a plain Java project that I am linking to my Android application. I need to use some Android stuff inside the Java project so I just linked to the android.jar file. This worked fine for using the Android library until I try to compile which complains about not having a default.properties file. I tried adding the default.properties file to the root of the project but the problem is still there. Any help on this would be great.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T02:12:25+00:00Added an answer on May 26, 2026 at 2:12 am

    I do the exact same thing – I have a Java project in Eclipse that I use to provide some common code to all my apps (although I’m moving to an Android library project).

    The only reason you’d need to use the properties is if you’re mistakenly using the Android pre and post compilers.

    If you’ve created a pure java project this should just work, here are the the definition files for mine:

    .project

    <?xml version="1.0" encoding="UTF-8"?>
    <projectDescription>
        <name>Project Name</name>
        <comment></comment>
        <projects>
        </projects>
        <buildSpec>
            <buildCommand>
                <name>org.eclipse.jdt.core.javabuilder</name>
                <arguments>
                </arguments>
            </buildCommand>
        </buildSpec>
        <natures>
            <nature>org.eclipse.jdt.core.javanature</nature>
        </natures>
    </projectDescription>
    

    and .classpath

    <?xml version="1.0" encoding="UTF-8"?>
    <classpath>
        <classpathentry kind="src" path="src"/>
        <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
        <classpathentry kind="lib" path="D:/Android/android-sdk-windows/platforms/android-4/android.jar"/>
        <classpathentry kind="output" path="bin"/>
    </classpath>
    

    You can then either use the project as a dependency for other projects or compile it to a jar file to import.

    I can’t imagine you’re actually having problems compiling the plain java project (if it’s really plain java) as the stubs will work perfectly to compile against – so is the problem in the Android project that is linking against the Java project?

    Try creating a new Android project from scratch, make sure it works and then link it against the java project – there’s no reason it shouldn’t work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know first off that this is probably the worst looking regex ever but
Let's get this out of the way first: I know that SessionFactory is immutable
I know that this sounds trivial, but I did not realize that the sort()
I know that this probably is micro-optimization, but still I wonder if there is
I know that this is probably something easy to implement, but I am having
Hey guys I know that this is probably just a simple sql statement but
this is my first question here :) I know that I should not check
first time SO user :) I know that I can format a number like
I know at first glance (due to the title) this looks like one of
I know that this has been asked a million times before, but nothing that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.