My while loop won't stop with a break?

if (sum < 6) { System.out.println("You win"); System.out.println(); // Does the user want to retry? System.out.print("Would you like to retry?(Y or N) : "); String retry = input.nextLine(); while (true) { // If the...
more »

2017-05-14 23:05 (1) Answers

OpenCV can't detect color red correctly

Recently, I'm trying to use java OpenCV to detect the color of a Rubik's Cube. My Rubik's Cube has six colors including white, yellow, orange, red, blue and green. The color space I use is HSV color space. According to Wiki, each color has their uniq...
more »

2017-05-14 16:05 (0) Answers

selenium java add cookies

Eclipse giving error,Date is deprecated.Can anyone please help to sort this out, My code is following Using stored cookie to login into the script. File file = new File(""); FileReader fileReader = new FileR...
more »

2017-05-14 11:05 (1) Answers

Spring 3.0.5 Hibernate Maven Error

I am trying to learn spring , maven and eclipse. I got this issue. I am trying to set up Spring + Hibernate Maven web project. When i start server and open the jsp page i get this error. I have searched a fix for this issue but most of answers is re...
more »

2017-05-14 11:05 (1) Answers

Rotation Of An Image In JLabel - Java

I am currently making a game with Java. I added an image to the screen using a JLabel and I want to know how to rotate it. I have done a lot of research but have not found anything useful. Can I have some help? Here is my code: (Code from first cla...
more »

2017-05-14 00:05 (1) Answers

Why my webpage displays ???? instead of contents

I have used Resource Bundle editor to create _hi(Hindi language) locale properties file in eclipse. My problem is that if I run my webpage, it displays ???? instead of Hindi content. I have provided code below. It works fine with french language ...
more »

2017-05-13 16:05 (0) Answers

Eclipse cdt plugin for array visualization

I'm using Eclipse CDT to debug a program which contains mutlidimensional arrays. Inspecting the values of such an array is very cumbersome using the 'Display As Array' option from the variables view as suggested here: Eclipse-C++-Debugging: see conte...
more »

2017-05-13 11:05 (0) Answers

Eclipse Plugins Fail to Update

Eclipse: Neon.3 Release (4.6.3) Help -> Check for Updates There are three available updates Git Integration for Eclipse Git Integration for Eclipse - Task focused interface Java implementation of Git I go through the steps and the update starts, ...
more »

2017-05-13 03:05 (1) Answers

Eclipse class not found exception

I am facing some challenges in Eclipse please help me. from last 5 years I am using visual studio but due to my academic requirement I am learning java and recently I installed eclipse in my machine and when I am modifying some code and trying to exe...
more »

2017-05-13 00:05 (0) Answers

Java coding style in Eclipse

For each method, I want to add a space between the method name and the right curly bracket. For example, public void setName(String name) { } I want a space between ) and {. Is it possible to automatically set this in Eclipse or somewhere? It's an...
more »

2017-05-12 23:05 (4) Answers

Update Gradle Classpath project doesn't exist

A project was recently deleted from my repository and now eclipse occasionally displays the following error. 'Update Gradle Classpath for main_project' has encountered a problem. Project location doesn't exist: path/to/deleted/project' I've don...
more »

2017-05-12 19:05 (0) Answers

Simple Intellisense Sollution

I'm working on a project in C++ with and the ROS Catkin compiler system (Ubuntu). Its my first real project with ROS and I would to keep the setup simple (as the code itself will be hard enough). Preferably I would like to just use Sublime to edit ...
more »

2017-05-12 09:05 (1) Answers

Client server multithread Socket

i'm developing a software that with a Socket, sets a connection with a server(where I installed PgAdmin for DB). I create the client e server code and they run perfectly but I don't know how to send data via socket when the user do some action. The ...
more »

2017-05-11 21:05 (1) Answers

NullPointerException adding data to BST

Any help on the following question would be greatly appreciated. I am implementing a BST which has 3 classes: BST, BSTNode and Profile. BST class public class BST { private static BSTNode root; private BSTNode parent; BST() { root = null; } ...
more »

2017-05-11 20:05 (1) Answers

Undesirable bar in Eclipse

In Eclipse very often some undesirable shortcuts pops up undesirable bars. How can I get rid of this mystery empty bar which appeared in my Eclipse? Picture of my problem: ...
more »

2017-05-11 10:05 (0) Answers

Getting error while building in Jenkins

I'm new to Jenkins and I'm trying to build, and i'm geting the following error in console. Please Help! I've resolved most of the problems that i could. I'm followin tutorial: "
more »

2017-05-10 22:05 (0) Answers

What is a p2 repository?

I'm working on a project now for a few months where we use "p2-repositories". I know that I get my dependencies from them. But now I want do dive deeper into the subject and I wonder what exactly is a p2-repository - the definition. I think it has s...
more »

2017-05-10 16:05 (1) Answers

Multiple exception catch block java 8 eclipse

I'm getting an unhandled message exception for IOException. As you can see in the pasted code I've handled the IOException. The JDK for both eclipse & the project is Java 8 update 121 so I know catching multiple exceptions is supported. What am I...
more »

2017-05-10 15:05 (1) Answers

Running ECLIPSE on a memory stick

I'm trying to run Eclipse (Neon 1) on a memory stick. In a first time, the problem was the JVM 1.6 installed on the machine which is too old. To use a compatible JVM, I created a jre directory in Eclipse's directory and placed in it a JVM 1.8 (the la...
more »

2017-05-10 08:05 (2) Answers

AWS Lambda caching old code using eclipse plugin

I have noticed that from time to time (about twice a day) AWS does not update my Java code and returns previous output from older functions. After a couple of hours it works, and all updates are live and functioning as though it is not c...
more »

2017-05-09 15:05 (0) Answers

Java classLoader and getResourceAsStream

I'm having trouble understanding how to load a resource in a way that would work both in eclipse and in a jar. In my project, I have one source file, src. Under that, I created a new package that I import resources (images, audio..) to. So it's src/...
more »

2017-05-09 12:05 (1) Answers

PyDev: exceptions while editing python files

Python files can't be opened for editing in python source editor. Python editor seems to work properly. From the eclipse log: java.lang.IllegalAccessError: tried to access field org.eclipse.dltk.internal.ui.editor.ScriptEditor.fActionGroups from cl...
more »

2017-05-09 11:05 (0) Answers