• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat on Android Samsung Galaxy Tab?

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Saloon Keeper
Posts: 27752
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 27752
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I-jetty sounds really good! thank you!!!
Do you know any other servlet container that runs on android?
 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
reply
    Bookmark Topic Watch Topic
  • New Topic