Skip to content

Tag: java

Excel file gets corrupted after launching an executable jar

I have an Eclipse project with the following code that uses Apache POI. When I launch it from Eclipse, it works properly. Since I created the executable jar, when I use it, the Excel input file passes from 9 to 1 kB and it won’t open anymore. [EDIT: since I was asked: the file is only read, I never writ…

2D grid is not fitting in JFrame for pathing visualizer

I am trying to create a 2D grid with node sizes depending on the size of the height/width of the frame but whenever I run the program, the bottom row and right columns are somewhat cut off. Here is my execution code: Here is the Grid class: And here is the GridFrame class: I have also been messing around with

ConcurrentModificationException with map of lists

The code above is buggy in that it produces the wrong result; the “zeros” list is aliased everywhere (I think; I’m learning Java) Test input Exception thrown Answer The problem is a misconception around this line: You’re not “fixing the aliasing bug”. The method subList doe…

Internet Explorer 11 support on windows 8.1

I’ve read that IE won’t be supported on Windows 10 anymore. Official page: Microsoft We have a Java applet application what we can run in Edge, but for certain types of Operating Systems (Windows 8.1), there is only Internet Explorer installed on the machines. What is not clear for me that will Wi…