File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat on Android Samsung Galaxy Tab?

 
gianluca marzano
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
gianluca marzano
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for reply Ulf,
and if I install jdk before installing tomcat? Do you think it will work?
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 17624
39
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
gianluca marzano
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 17624
39
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I-jetty sounds really good! thank you!!!
Do you know any other servlet container that runs on android?
 
Aleksey Serov
Ranch Hand
Posts: 32
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic