aspose file tools*
The moose likes Android and the fly likes Tomcat on Android Samsung Galaxy Tab? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "Tomcat on Android Samsung Galaxy Tab?" Watch "Tomcat on Android Samsung Galaxy Tab?" New topic
Author

Tomcat on Android Samsung Galaxy Tab?

gianluca marzano
Greenhorn

Joined: Mar 22, 2011
Posts: 4
Hi everybody,
does anybody know if it is possible to install Apache Tomcat (or another servlet container) on a Samsung Galaxy tablet?Any documentation about it?

Thanks in advance!
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41906
    
  63
A quick grep through the Tomcat 6 source code shows that it uses several classes that are not part of Android (like ImageIO and several classes of the java.beans package, and probably others). So it won't work without some effort on your part.


Ping & DNS - my free Android networking tools app
gianluca marzano
Greenhorn

Joined: Mar 22, 2011
Posts: 4
Thanks for reply Ulf,
and if I install jdk before installing tomcat? Do you think it will work?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41906
    
  63
You mean install a JDK on the Galaxy? There is no JDK that runs on Android.

Search for "oracle google android lawsuit" or some such phrase to learn about the complications in the mobile Java space.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16070
    
  21

Thanks to Oracle's lawyers, it's necessary to observe that Android doesn't run "Java", it runs Dalvik.

Regardless, the Android platform. while more extensive than JME, is still not a 100% implementation of the desktop edition of Java, much less the desktop/enterprise JDK.

It might make an amusing project, but personally, I'd rather see Tomcat on one of the "wall-wart" computers and leave the Galaxy for browsing.

Although I'll admit I'd be tickled if I could run OS/MVS on my cellphone (Project Hercules).


Customer surveys are for companies who didn't pay proper attention to begin with.
gianluca marzano
Greenhorn

Joined: Mar 22, 2011
Posts: 4
I have a web application developed using JDK1.6 and Tomcat. I would like to install it on a Galaxy tab and use it stand alone mode, but

I can't install JDK,
I can't install Tomcat....

...is there any other way to do that? or have i to surrend?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16070
    
  21

If you are a truly frothing-at-the-mouth geek, you can pull the sources to the open-source JDK system, do a native-code compile, root your Galaxy, and install it as a binary app. However, I still don't have much faith in the open-source Java system, since for a long time it wasn't up to the heavy-duty requirements of J2EE.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41906
    
  63
If you're not set on Tomcat, then http://code.google.com/p/i-jetty/ (a version of the Jetty servlet container for Android) is available.
gianluca marzano
Greenhorn

Joined: Mar 22, 2011
Posts: 4
I-jetty sounds really good! thank you!!!
Do you know any other servlet container that runs on android?
Aleksey Serov
Ranch Hand

Joined: Sep 11, 2009
Posts: 32
I have Installed i-Jetty on my old Android Dev-1. It runs just fine.
Also I have downloaded and installed a Sample Application ported to Android provided by HybridServerPages.com (HybridJava) and installed it under i-Jetty on Android.
That runs too!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat on Android Samsung Galaxy Tab?