i used exe4j to turn my
java app to exe. the thing, when i ran the exe in my pc it worked but when i ran it on a diff pc it didnt. just a certain function of the program i created didnt work.
the app is simple. i enter the full path of a .doc or .docx file (any ms
word file). I press a button and the app opens that document and prints the first paragraph. Sun already has code/libraries for text documents but when it comes to microsoft
word documents and other office files, no such thing existed. After some reading I saw that I needed to download libraries that apache built. I did. I edited my code accordingly.
When I ran exe4j, I added the jar files (part of the files located in the apache poi folder) that my app needed and I ran the generated exe file.
That's it. When I tried running it on my pc again after finding out it didnt work on adiff laptop, I don't know how it occured to me, but I decided to delete the folder that had the jar files. I figured it didnt matter because my exe already has everything it needs. But I was wrong. Soon as I deleted the folder and ran the exe file again, it didn't work. When I checked the generated errorlog file I saw the exception CLASSDEFNOUTFOUND error. I already msged the site where I downloaded exe4j from.
What does this mean? Because the jar files weren't part of Sun's production then wherever that exe file goes, the folder must follow as well? :S
Anyone here can recommend a java2exe file they used and had no problems with? thanks