Skip to content
Advertisement

Tag: runtime

BufferedImage are Null in runtime

I’m having a problem with BufferedImage in runtime. I’m loading an .png, but the BufferedImage is null. I don’t get an IOException, but an NullPointerException. And the biggest problem to me, is that when I run this same code in netbeans he works fine… My code is The ApplicationProperties.getPath() are static and don’t change in runtime. And if I separate

Command is Not Interpreting in Java [closed]

Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 2 years ago. Improve this question I have this block; And when I execute it, nothing happens. It sometimes

Speed of custom Java classes vs. Maps

Which is faster: a Set whose elements are each an instance of CustomObject as defined below: a Set whose elements are each an instance of Map<String, String> where each Map is of the format {“A” : Avalue, “B” : Bvalue, “C” : Cvalue}? or any other data structure that you can think of that better captures this data if I

Executing Java code inside a Java program

I would like to create an application which for example measures the execution time of a certain block of code. In this case it should have a structure like this: I’m curious about the method designated by the arrow, I need some sort of a placeholder. How should be this method implemented? Is it even possible to execute a custom

Java Error opening registry key

I get this error when I try to do anything with Java in command prompt: I did screw around with deleting Java directories and registry a few days ago. I restarted computer and java was still working fine, then i restarted it again today and now I get this error. I have tried uninstalling and reinstalling but that doesn’t seem

How to check existence of a program in the path

I’m writing a program in scala which call: I want to check if “svn” is available from the commandline (ie. it is reachable in the PATH). How can I do this ? PS: My program is designed to be run on windows Answer Here’s a Java 8 solution: Replace anyMatch(…) with filter(…).findFirst() to get a fully qualified path. Here’s a

Advertisement