Hi - I'm trying to export Java code into a Unity plugin... We are using ikvm to convert a .jar file into a .dll. So, I have the same problem as above. I need to include classes such as android.os.process and android.media.AudioManager, but a normal jar export ignores them.
Essentially: If I have a .jar file that uses android packages, how do I put them together? and if anyone happens to know anything about changing a jar into a dll (like maybe what NOT to do...), that would also be helpful. Thanks - A On Sep 22, 2:05 pm, Kumar Bibek <coomar....@gmail.com> wrote: > Android doesn't support Jar files.......You cannot run jar files on > android. > > -Kumar Bibekhttp://techdroid.kbeanie.com > > On Sep 22, 3:53 pm, Lidia G <lidyp...@yahoo.com> wrote: > > > > > I found how to use an android library, from the > > eclipsehttp://developer.android.com/guide/developing/eclipse-adt.html#librar...this > > is not what i need, i need to comples a library into a jar file and to > > hide the code that can be used from the library. > > > And i can't create a JAR file using usually jar command from the JDK, > > because, my classes contain some android specific code. > > > How can i create an executable JAR file from android. > > Please help me. > > > --- On Wed, 9/22/10, Lidia <lidyp...@yahoo.com> wrote: > > > From: Lidia <lidyp...@yahoo.com> > > Subject: [android-developers] How to create an executable file for android > > To: "Android Developers" <android-developers@googlegroups.com> > > Date: Wednesday, September 22, 2010, 7:21 AM > > > Hello people, > > > Can someone tell me how to create an executable jar file from eclipse > > for android? > > First of all, how the application should be before creating a jar > > file? Should it be runnable? Do i need an Activity class in it? > > > I created a simple Android application, which has an activity class: > > //------------------------------------------------------------------------- > > ------------------------- > > public class MyClass extends Activity { > > @Override > > public void onCreate(Bundle savedInstanceState){ > > super.onCreate(savedInstanceState); > > setContentView(R.layout.main); > > }} > > > //------------------------------------------------------------------------- > > ------------- > > > and some other classes. I don't need this activity class in my jar > > file, i need only all other simple classes, > > I used from the eclipse the option Export ->Java ->JAR file > > As i see, this option creates a simple jar file, it packs the classes, > > so their content is invisible, but at the same time, the JAR file > > content can be changed. e.g i can assign values to static parameters. > > > But i need an executable/unchangeable jar file. > > If i use from eclipse the option Export ->Java ->Runnable JAR file - > > the Launch Configuration: is empty, and i can't go on > > > What should i do???? > > > Please help me > > Lidia > > > -- > > 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 > > athttp://groups.google.com/group/android-developers?hl=en -- 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