It works in NetBeans but JAR does NOT work

0

Hello, how good everyone is. I need help. I'm doing a project that basically consists of making a chat that communicates by reading files, you can only communicate by executing the same jar several times. It basically consists of allowing the user to choose a type of chat, a name for the chat and a route to save it. Then the user is shown a text box and a save button, then the user types something and presses the send button; There are 3 types of chat, the normal (which does not encrypt the information), the encrypted type (which manipulates the ascii code of each lethargy) and the private type (which plays with the position of the letters to encrypt the information)

In the IDE NETBEANS the 3 types of chats work perfectly. But when running the jar, the encrypted chat does not work well.

Basically the type of encrypted cha, takes each letter and converts it to its respective value of character (ascii code) and subtracts 15. in this way, for example, if the letter a is entered, then its ascii code is 97, then he adds 15 and his new code then is 112, and convert that number to a char and then to a string, so the new letter would be "p", and so on for the other letters, leaving the information encrypted. Also the program is able to open the file again and read and interpret the information (ie decrypt the information and show it)

When running the program in NetBeans everything is great. the problem is when I execute the JAR file that the IDE generates, then it only correctly converts the letters from "a" to the letter "p", and from letter q to z it does not do it correctly. What is happening??? Should not it work the same way ???

NOTE: if it works, when I generate the JAR file, this appears: Note: C: \ Users - SuperMarioBross! - \ Documents \ NetBeansProjects \ Practica4 \ src \ Chat.java uses or overrides to deprecated API.

Note: Recompile with -Xlint: deprecation for details.

This is the generated jar: link

    
asked by Abner 02.05.2017 в 00:19
source

0 answers