• 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

You can't do that in Java - Oracle 9i database

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to write a Java application to bridge from a legacy file manager (used as a database) to Oracle 9i database. This will enable us to continue to use about 300 Fortran programs that are mission critical for our multi-store retail operation. Once we consolidate/migrate to our Oracle 9i database, we plan to gradually rewrite our applications in Java. We currently struggle with frequent batch mode data transfers to try to keep the 2 databases consistent.
My problem is that the Fortran guy and the consultant tell me it is impossible to write this �bridge� program in Java because the Fortran calls machine-executable subroutines and Java has bytecode rather than fully compiled code. I think they are probably correct. They want to write it in C with embedded SQL.
I want to work on this project, but I don�t know C and I don�t want to learn it since I think it�s becoming as dead as Fortran. Any suggestions on how I can use my knowledge of Java to work on this project?
 
Ranch Hand
Posts: 1143
1
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Warren,
So you are looking for a Java/Fortran interface? Did you try an Internet search? When I searched for "java fortran", I got 270,000 hits. The second one in the list was a tutorial entitled Java/Fortran Interface and the fourth one was a document entitled Putting a Java Interface on your C, C++, or Fortran Code.
Hope this helps.
Good Luck,
Avi.
 
Ranch Hand
Posts: 925
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you can only call c from fortran, so c with embedded sql is the correct (& I believe only) way to do it.
fortran is a VERY easy language to learn, so don't be to afraid of it.
of course you can call c++/fortran from java but I doubt this fact will help you much.
 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


I want to work on this project, but I don�t know C and I don�t want to learn it since I think it�s becoming as dead as Fortran.[/QB]


IMHO never be afraid to learn something new or, for that matter, old. Java and C++ evolved out of C. C has its issues but it is not extinct.
My suggestion to you is that the FORTRAN programmer and the consultant might be trying to stay in their realm of experience. I believe with the right experience in Java and with the help of the internet it is possible to write Java with any interface.
So be mindful of the people who resist change for personal reasons.
 
Warren WagonWheel
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I meant to thank you all for your kind help on my problem. I had a lightning strike and blew out my monitor so I was down for about a week. Anyway, thanks!
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry for asking, but Warren is that your real last name?
Thanks
Mark
 
Ranch Hand
Posts: 1327
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The lowest level programming i ever did was alpha assmebly, the compiler(alpha simulator) that was used to complie and run the asm program was written in Java.
So basically its a Java program simulating the Alpha operating system and compiling assembly codes and running assembly programs.
 
I knew I would regret that burrito. But this tiny ad has never caused regrets:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic