Java meaning of .java~
NickName:Rollerball Ask DateTime:2013-02-27T21:59:30

Java meaning of .java~

By typing jar -tf myJar.jar MyProject I get in the file list, besides the normal .java and .class files, also a .java~ file. I have read googling it around that it is due to some other incomplete version of the file.java. If so, How can I go ahead and remove those files? since in the real folder there are no other files than file.java and file.class.

Thanks in advance.

Copyright Notice:Content Author:「Rollerball」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/15113936/java-meaning-of-java

Answers
Jon Skeet 2013-02-27T14:00:37

They're almost certainly just backup files automatically created by whatever text editor you're using. You should be fine to remove them.\n\nI'm sure they are in the real folder - it's possible your shell/explorer is hiding them from you. Just try using a command line to remove them by name, even if they don't show up on autocomplete.\n\n(It's hard to be more specific when we don't know which editor you're using, which operating system, or how you're looking at the directory...)",


More about “Java meaning of .java~” related questions

Meaning of the java command in unix

I am trying to execute a .sh file kept in a Linux system. All the commands in the .sh file is working fine except one java command which is giving execute permission denied statement. Can anyone pl...

Show Detail

What is meaning of a Kubernetes Native Java stack?

What is meaning of Quarkus Tag line (A Kubernetes Native Java stack) A Kubernetes Native Java stack tailored for OpenJDK HotSpot and GraalVM, crafted from the best of breed Java libraries and stan...

Show Detail

what is the meaning of this condition in java script?

What is the meaning of this condition in java script? How does it work? function displayunicode(e){ var unicode = e.keyCode ? e.keyCode : e.charCode alert(unicode) }

Show Detail

Meaning of getBytes() in java with strings

What is the meaning of the following? String s = "some text here"; byte[] b = s.getBytes("UTF-8"); Does it mean, that the content in b is now encoded with UTF-8 or that we just got simple 0,1 By...

Show Detail

I want to know the meaning of a line in java

What is the meaing of below line of Java code class Dog { int size; Dog(int size) { this.size = size; } public boolean equals(Object o) { return this.size == (...

Show Detail

java.lang.OutOfMemoryError: Java heap space - Stack Trace Meaning

I have a message in a long lived application, a java.lang.OutOfMemoryError: Java heap space. I want to know the meaning of the stack trace that is displayed after the error message; could I find ...

Show Detail

meaning of <SomeClass extends ?> in java?

During an interview with one of the big software companies, the interviewer asked whether I know java, and I said yes. Then he said tell me what's the meaning of these two: &lt;? extends SomeCla...

Show Detail

Meaning of "*:" in java classpath specification

I have a Java project uncompiled. Entry point is the main method in maui.main.MauiModelBuilder which is passed some parameters by command line. The author of the code provides this suggestion to c...

Show Detail

Constant meaning in java

Currently, I am developing a spring-boot application and one of the rest controllers looks as follows: @RequestMapping(value = VALUE) public class SomeControllerClass { public final static String

Show Detail

Meaning of serial port parameters in Java?

I'm a beginner in Java. I'm reading data from the serial port. I got serialPort.setSerialPortParams( 9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); What is the

Show Detail