erajasekar / Astrosoft

Astrosoft is a free Indian Astrology software program for Astrologers.
http://innovativeastrosolutions.com
GNU General Public License v2.0
96 stars 65 forks source link

integrate java files to my android project #17

Open triosoftteam opened 2 years ago

triosoftteam commented 2 years ago

integrate java files to my android project

relango commented 2 years ago

@triosoftteam Please be specific and provide more info on what issue are you facing.

triosoftteam commented 2 years ago

java.lang.NoClassDefFoundError: Failed resolution of: Ljavax/swing/JFrame; at app.astrosoft.util.AstroUtil.decimal(Unknown Source:0) at app.astrosoft.beans.BirthData.(Unknown Source:38) at app.astrosoft.beans.BirthData.(Unknown Source:39) at app.astrosoft.beans.BirthData.(Unknown Source:1)

in runtime when use this functions

try { Place place = new Place("Bangalore", "Karnataka", "India", 25.51, 85.47, 5.30); Calendar c = new GregorianCalendar(1995, 5, 18, 5, 12, 1); BirthData birthData = new BirthData("Ashwini", c, place);

                Horoscope horoscope = new Horoscope(birthData);
                horoscope.calculateAll();

                System.out.println(horoscope);
            } catch (Exception e) {
                Log.d(TAG, "onClick: " + e);
            }
relango commented 2 years ago

Java Swing UI doesn't work in Andriod, you can't simply take a java desktop app and run it in android. You can build UI in android yourself. You can use Astrosoft code for calculations.

triosoftteam commented 2 years ago

can you expain Astrosoft code how to implement code in android (java)

relango commented 2 years ago

@triosoftteam The code is available free. You can read the code and figure it out!.

triosoftteam commented 2 years ago

actually i can't get it where do i find the exact path for calculation code can you tell me the excet path to reach out