aspose file tools*
The moose likes I/O and Streams and the fly likes Cant See RTF Files in JAR but can when running program from command prompt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Cant See RTF Files in JAR but can when running program from command prompt" Watch "Cant See RTF Files in JAR but can when running program from command prompt" New topic
Author

Cant See RTF Files in JAR but can when running program from command prompt

Chetan Pandey
Ranch Hand

Joined: Aug 01, 2005
Posts: 31
Hi ALL:

I have a Java Swing APP. It has Menus which displays information through File I/O in a JEditorPane.

When I run my program from Command Prompt using "java myApp" it shows these RTF Files as it is.

However when I run them after converting Directory into a Executable JAR FILE, it fails. I get a blank JEditorPane. My RTF files are in the CORRECT PATH, just dont get displayed. Rest of the APP works fine.

Chetan

any suggetsions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cant See RTF Files in JAR but can when running program from command prompt