• 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

JAR files in Linux

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have developed a J2EE application in the Windows platform. I have used the following jar files for the project.
1) commons-fileupload-1.1.1.jar
2) mysql-connector-java-5.0.5-bin.jar
3) commons-io-1.2.jar

I intend to release the application in a Linux server. Can these jar files be used in the Linux server(RHEL 5.3)?
Thanks in advance.
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Can these jar files be used in the Linux server(RHEL 5.3)?



Yes, you can, as long as you have a certified (like Sun Java) and compatible version (if the version of those jars are compiled using JDK 1.5, for example, then you need that or a higher version) of JRE on the target platform.


 
Saloon Keeper
Posts: 27926
198
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
Welcome to the JavaRanch, Mithun!

RHEL comes with a fairly large number of JAR files supplied as OS-installable (RPM) components and I'm fairly sure that all of the ones you mentioned are in that list. I can guarantee the Mysql connector is available as an RPM package. I believe it gets installed under the /usr/share/java directory, although for RHEL 5.3 I'm not certain.

What Jaikiran was referring to was the problem that Linux users have with an incomplete implementation of java (gcj) that for several years was bundled with many Linux distros. That was done because Red Hat will not bundle any closed-source or license-constrained version of any software with their distributions, and the Sun JDKs and JREs were therefore disqualified. Gcj was an attempt to provide an open-source alternative, but it lacked features. Sun did eventually open up the Java source code and replaced some of the proprietary parts with equivalents that had open-source license, and that led to the Linux "Iced Tea" project. However, gcj still lurks in the corners, and people periodically run afoul of it.
 
Mithun Madhu
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a lot to both of you. I have jdk1.5 in both the machines. So I hope there will be no problem.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic