View Full Version : [SOLVED] Java Application Doesnt work outside IDE

April 22nd, 2011, 05:30 AM

I have a program developed under java with netbeans. It has a text pane that takes text written in non English language and do some operation including save open new.....

The program was fine and complete worked flawlessly when i run it from netbeans. But when i go to the dist folder and run the jar (which was supposed to be the executable) it runs good but when i open a previously saved file to the editor it shows mysterious fonts.

লিখ "The original inputs are" << নতুন_লাইন;
চলবে(সংখ্যা প=০;প<যতটা;প++)


লিখ "The original inputs are" << নত�ন_লাইন;
চলবে(সংখ�যা প=০;প<যতটা;প++)

is there something i need to do to publish JAR when native support is required?

An Sanct
April 22nd, 2011, 08:38 AM
The encoding is wrong ... can you set the encoding to be UTF8 like:

file.encoding=UTF-8 in eclipse?

PS. got this from a Netbeans forum

If you right-click on your project in the projects pane, and choose Properties, then Sources, there is a drop-down box for encoding where you can choose UTF-8.

April 22nd, 2011, 09:24 AM
Got my solution here