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 Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to run Excel from a java app?

 
Lefty Gomez
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Urgent!!! PLease!!
 
kate damond
Ranch Hand
Posts: 77
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
app- lication or app- let ?
 
Dave Donohoe
Ranch Hand
Posts: 73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out Java2COM at http://www.nevaobject.com/java/java2com/java2commain.htm
You should be able to use this with an App-lication or an App-let
!
D
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can treat excel just like an ODBC database. Go to the JDBC forum and search on Excel and you will get some code examples.
 
Lefty Gomez
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just want to run an *.exe file from my application.
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh - try this:

 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On a related thread, I had several email requests asking whether I knew how to read CSV files from multi-page worksheets and the like into Java. Nope, I didn't. Still don't.
However, I was made aware yesterday of a tool, built on top of JNI, that allows COM programmers to integrate Java code with MS-style objects. It's called Jawin, it's open-source, and most important, free. Slaves to Microsoft(tm) Empire, rejoice!
The most impressive thing to me, who will not code to the MS platform if I can help it, is the author's understanding of what the JNI (Java Native Interface) is and isn't good for. And I quote:

JNI is best when it is used to build a higher level marshalling layer that provides a transparent, or near transparent, mapping
between Java objects and objects on a particular native platform.

Sage words indeed.
By the way, if you are one of the very few that have emailed problematic source code to me with 'please fix' subject lines, please don't wait on a response. I understand frustration, not knowing what else to try, looming deadlines; they visit my hoouse too. I'm sympathetic, but trying to help as many people as I can by posting publicly.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic