Can Android support Java J2SE(not only J2ME) as Linux and Unix?

336 views
Skip to first unread message

gm...@glocalhelp.com

unread,
May 13, 2011, 5:49:23 AM5/13/11
to android...@googlegroups.com
 Good afternoon, everyone,
 
      Can Android support Java J2SE(not only J2ME) as Linux and Unix?
 
     Android developer's site of http://source.android.com/index.html can not 
be accessed from Dalian, China. is there any other same Android kernel and platform
info website?
      Or can you tell me how to install Java J2SE program in Android?
      And does Android kernel support linux's wine program to run windows programs?
 
      I hope to receive your reply as soon as possible.
 
With best regards,
Sincerely,
Georgelin
 
-------- Original Message --------
Subject: Re: [android-kernel] Re: Booting 2.6.39 kernel
From: Jon Pry <jon...@gmail.com>
Date: Thu, May 12, 2011 10:32 pm
To: android...@googlegroups.com

I am having the same problem. What stuff did you remove from the config?

Thanks,

Jon Pry

On Fri, Apr 15, 2011 at 9:03 AM, Mario <mario.d...@gmail.com> wrote:
Ok, I solved the issue.

Now init starts-up!
The issue turned out to be related with the config file of the kernel.
I don't know why, after removing support for unrelated boards (among
which OMAP4 and other stuff) I was able to run the binaries.

Thanks guys, have a nice day!

On 15 Apr, 10:40, hedwin <hedwin.kon...@gmail.com> wrote:
> @Mario, do you use the android provided toolchain or an external one.
>
>
>
>
>
>
>
> On Fri, Apr 15, 2011 at 10:39 AM, hedwin <hedwin.kon...@gmail.com> wrote:
> > I am using 37 kernel version but have the same problem, after removing
> > critical to start the servicemanager it showed that
> > zygote is constantly restarting.
>
> > On Thu, Apr 14, 2011 at 5:01 AM, AlanLance <alanla...@gmail.com> wrote:
>
> >> I can booting Gingerbread with kernel 2.6.39, but got below message
> >> and reboot.
>
> >> init: starting 'debuggerd'
> >> init: starting 'ril-daemon'
> >> init: starting 'zygote'
> >> init: starting 'media'
> >> init: waitpid returned pid 573, status = 0000000b
> >> init: process 'servicemanager', pid 573 exited
> >> init: process 'servicemanager' killing any children in process group
> >> init: critical process 'servicemanager' exited 4 times in 4 minutes;
> >> rebooting into recovery mode
> >> init: Created socket '/dev/socket/vold' with mode '660', user '0',
> >> group '1009'
> >> init: Created socket '/dev/socket/dnsproxyd' with mode '660', user
> >> '0', group '3003'
> >> init: Created socket '/dev/socket/netd' with mode '660', user '0',
> >> group '1000'
> >> init: Created socket '/dev/socket/rild-debug' with mode '660', user
> >> '1001', group '1000'
> >> init: Created socket '/dev/socket/rild' with mode '660', user '0',
> >> group '1001'
> >> init: Created socket '/dev/socket/zygote' with mode '666', user '0',
> >> group '0'
> >> Restarting system with command 'recovery'.
>
> >> Alan
>
> >> On 4月14日, 上午3時05分, Ravi Chemudugunta <chemudugun...@gmail.com> wrote:
> >> > does your target support thumb?
>
> >> > On Thu, Apr 14, 2011 at 3:42 AM, Mario <mario.demon...@gmail.com>
> >> wrote:
> >> > > Hello
> >> > > I'm trying to boot my board with linux kernel 2.6.39 but I'm getting
> >> > > this message:
>
> >> > > "Kernel panic - not syncing: Attempted to kill init!"
>
> >> > > The kernel is taken from git://
> >> android.git.kernel.org/kernel/common.git,
> >> > > branch remotes/origin/android-2.6.39,
> >> > >  and I already provided to enable the following options (among
> >> > > others):
> >> > > CONFIG_AEABI
> >> > > CONFIG_ASHMEM
>
> >> > > If I run the busybox shell instead of init (init=/data/busybox/ash) I
> >> > > see that it's not possible to run android binaries (init, /system/bin/
> >> > > *): I get segmentation faults, but I'm able to run pure linux binaries
> >> > > (everything inside busybox).
>
> >> > > So I guess the problem is in my kernel not being able to interpret
> >> > > android binaries.
>
> >> > > What could I try to solve this issue?
>
> >> > > Thanks
> >> > > Mario
>
> >> > > --
> >> > > unsubscribe: android-kerne...@googlegroups.com
> >> > > website:http://groups.google.com/group/android-kernel
>
> >> > --
> >> > C-x C-s, C-x C-c
>
> >> --
> >> unsubscribe: android-kerne...@googlegroups.com
> >> website:http://groups.google.com/group/android-kernel

--
unsubscribe: android-kerne...@googlegroups.com
website: http://groups.google.com/group/android-kernel

--
unsubscribe: android-kerne...@googlegroups.com
website: http://groups.google.com/group/android-kernel

why2jjj

unread,
May 13, 2011, 2:56:50 PM5/13/11
to Android Linux Kernel Development
Gotta' love the 'Great Firewall of China' ;-).

I found a mirror site, though the caveat is it's an Android x86 port:
http://www.android-x86.org/getsourcecode (discussion of the mirror)
http://android-x86.git.sourceforge.net/git/gitweb-index.cgi (actual
mirror)

No guarantees on the state of this, but good luck.

On May 13, 2:49 am, <g...@glocalhelp.com> wrote:
>  Good afternoon, everyone,
>  
>       Can Android support Java J2SE(not only J2ME) as Linux and Unix?
>  
>      Android developer's site ofhttp://source.android.com/index.htmlcan not 

why2jjj

unread,
May 13, 2011, 3:22:26 PM5/13/11
to Android Linux Kernel Development
PS J2ME is not what is on an Android phone. It's Google's Java VM
implementation, Dalvik. They are not the same, as Dalvik has APIs not
in any of the Sun/Oracle Java VMs. So there is about 100% guarantee
something will not work if you are trying to get J2SE-something in
your Android code.

giangiammy

unread,
May 14, 2011, 4:36:42 AM5/14/11
to android...@googlegroups.com
Hi,

I had the same problem, and after some time looking around,
I got the conclusion that it is not possible to run J2SE on 
Android.

The possible solution I saw were:
1 - implement OpenJDK on Android (but it's a lot of work, and 
     OpenJDK is too much resource hungry!)
     Anyway, I'm not aware of any project in this direction

2 - take the J2SE applet, disassemble it, and run it on a
     parser which translate J2SE API call (AWT call ... swing call
     and what is needed) using the Android available API.
     ( I'm not aware of any project in this direction).

In conclusion, I aborted the project to run J2SE on Android,
anyway, if you find any solution, let us know!

For wine, never looked, but wine run a x86 binary, while usually
Android runs ARM binary.

bye
giammy

--  
Gianluca Moro --- http://giammy.com




Reply all
Reply to author
Forward
0 new messages