Using launch4j to build executable with encoding option - encoding

I'm trying to write korean to a txt file. I've done the coding part and exported project to runnable jar.
When I run jar file using terminal as Java -Dfile.encoding="UTF-8" -jar Utul.jar it works perfectly fine.
Now I'm trying to make .exe using launch4j can anyone help me set this option? In output file I'm getting gibberish instead of Korean characters.

I've got the answer now. I wasn't aware of the JVM options field under JRE tab. I included this option there and result was satisfactory.

Related

how to run without exe

i used atom (with gpp-compiler) and i could compile with no .exe file output for c++ development.
but from now on, i want to change my developing environment to VS code and so
I compiled with code runner but i see there is output .exe files..
can i compile with no .exe output?
i tried to change code-runner settings but, it didn't work..
or is there vs code c++ add-on with no .exe output ?
i am using mingw gpp compiler
thanks for your help
If you are using vscode for problem solving only, you can use cph extension. CPH generates a cph folder in the working directory but in cph settings you can provide a custom folder path to store the non .cpp file, which makes the folder look clean.

Scala IDE Template Editor Broke

I just downloaded the scala ide 4.0 release candidate 1 on my windows machine. I setup a basic play scala project and tried opening the the index.scala.html file with the New Play Editor and the file doesn't open.it looks like this:
So then I tried opening the file in the regular play editor and when i type, the characters are typed in reverse:
Anybody know how to go about fixing this?
This might be a problem with your installation, if you are on Windows and you installed it under Program Files. Try moving it somewhere else (preferably without spaces in the path, though this is a permission issue). See this long thread on the Scala IDE mailing list.

Eclipse and Scala-IDE source files encoding bug?

I am working on a simple project in Eclipse in Scala-IDE. The project makes use of someone else's library (which comes in *.java source files, not in a .jar). The library source files contain numerous comments in Japaneese. I cannot compile the Scala project since for every such file I get an error like this one:
IO error while decoding
D:\path\FileName.java
with windows-1252 Please try specifying another one using the
-encoding option
Seems like I did not have this problem when the project was in Java. Now I am migrating to Scala and that is what I am getting.. I do not want to delete all these comments, is there any way to make the compiler handle them? I have tried all kinds of encoding fixes starting from Preferences->Resources->Text file encoding and ending with eclipse.ini file encoding parameters...
I had a similar issue after I switched from linux to macosx
Eclipse default text file encoding was set to US-ASCII, to fix this:
(Eclipse Juno)
Open the preferences
General - Workspace
Switch "text file encoding" to "UTF-8"
I have resolved the issue. The Scala compiler has a different set of options that likely does not subdue to the global Eclipse options. So by going to Preferences->Scala->Compiler and adding -Dfile.encoding=UTF-8 to the Additional command line parameters field I have fixed the error.

Jar file won't run - Windows 7

I am trying to run a .jar file that I have created using either the command line and double clicking. The Jar makes a JFrame GUI with button, text, labels etc.. It should display this window.
I have checked and the file is associated with javaw.exe in the correct directly. I have also tried via the command like using java -jar filename.jar and it just paused for a split second and then moves to the next line, no errors.
I have also run javafix which also hasn't helped.
I have reinstalled JRE and JKE and still no luck, the file was created in Netbeans and compiles without problem.
I am using this Netbeans tutorial: Introduction to GUI Building.
Any suggestions? I'm Stumped.
The best I can tell is to Press Win + R and type regedit.exe, Press Enter.
In your Registry Editor Window, Expand HKEY_CURRENT_USER->Software->Microsoft->Windows->CurrentVersion->Explorer->FileExts
Delete the entry or Key Name .jar from the list. Do check the version used by your NetBeans and the one on your classpath. Hopefully they both are same versions, it can be one of the reasons too, for .jar not working. Now again try to run your .jar file. That might help it to run again.
Regards

Eclipse doesn't recognize lua files after installing the lua plugin

I downloaded Eclipse Classic off of the Eclipse website then the Lua Eclipse IDE plugin. I followed the install instructions but Eclipse doesn't seem to recognize or be able to understand lua files. Can someone help?
Sounds like your file types aren't associated. Click on Window/Preferences and select General/Editors/File Associations.
Add more information
Which installation guide did you follow? (Lua Eclipse Installation?)
Which OS (version)?
Which java version? (Which implementation)
Which eclipse version?
I love these kind of questions because they provide an opportunity to do a test I postponed until now...
So I downloaded the plugin package, and followed the instructions: closed Eclipse, put two jar files in the plugin folder, put the open-ldb.exe elsewhere, restarted Eclipse.
I created a generic project, added a generic file linked to an existing Lua file. When I opened the file, it was automatically identified as such, with a moon icon and correct syntax highlighting.
Using Eclipse 3.5.1 on Windows XP, BTW.
Now, I have an issue, the debugger won't start for me, I get a
Unable to connect to PDA VM
Connection refused: connect
error, not sure why (path to exe file is correct, I have another error when it is wrong).
But at least I have the Lua files recognized without problem.
I think you might want to check that in Preferences > General > Editors > File Associations, *.lua is defined and associated to the Lua editor.
Instead of opening a File you have to do the following:
Open a new LUA project.
Then import using 'File System' all files (resources and LUA files) into the project.
Now you can see and edit the LUA files. Don't know why it doesn't work by simply opening a LUA file directly.