eclipse

How to resolve error “No runtime specified. WLS Web Service projects require a runtime to be present for most tooling.” when publishing my project?

血红的双手。 提交于 2021-02-07 14:42:59
问题 I spend one day trying to fix this issue, and finally found a solution. As Google doesn't have any answer for this Eclipse error, I thought of putting this for everyone. Issue: When I try to publish project via eclipse, I'm getting this error message: No runtime specified. WLS Web Service projects require a runtime to be present for most tooling. How to solve this problem? 回答1: (Credits go to Akshay who originally posted this solution in his question.) This error message appears if your

How to debug a swing UI?

最后都变了- 提交于 2021-02-07 14:22:19
问题 I have a Swing screen and I want to debug which services or frames are being used by it. Earlier I have worked on Web apps and there we used used FireBug in firefox mozilla to see how things used in UI and navigate to services. I am new to swing and want to find out how this new application is using it. 回答1: Here is the debug swing is Debugging Swing Applications with the UI Debugger it can be quite useful to debug Swing related application. Another one Visual Debugger provided by NetBeans .

How can I correctly link OpenCV libraries to Eclipse on Windows?

走远了吗. 提交于 2021-02-07 14:15:51
问题 For the last couple of hours I have been trying to get a basic OpenCV program to work in my Eclipse Mars IDE. The program consists of the following main.cpp: #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <iostream> using namespace cv; using namespace std; int main( int argc, char** argv ) { if( argc != 2) { cout <<" Usage: display_image ImageToLoadAndDisplay" << endl; return -1; } Mat image; image = imread(argv[1], CV_LOAD_IMAGE_COLOR); // Read the file if(!

How can I correctly link OpenCV libraries to Eclipse on Windows?

人盡茶涼 提交于 2021-02-07 14:15:24
问题 For the last couple of hours I have been trying to get a basic OpenCV program to work in my Eclipse Mars IDE. The program consists of the following main.cpp: #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <iostream> using namespace cv; using namespace std; int main( int argc, char** argv ) { if( argc != 2) { cout <<" Usage: display_image ImageToLoadAndDisplay" << endl; return -1; } Mat image; image = imread(argv[1], CV_LOAD_IMAGE_COLOR); // Read the file if(!

Eclipse, cmake, Windows, MingW - What Makefile generator?

邮差的信 提交于 2021-02-07 14:14:07
问题 What's the difference on Windows with cmake and eclipse and MingW if I choose "Eclipse MingW Makefile" or "Eclipse Unix Makefile"? With the MingW one I always get an error with "sh.exe" (that vanishes if I re-hit "Configure"), with the Unix one I always have to specifiy windres manually because cmake can't find it. Does this make any difference for Eclipse or something else? Both generated Makefiles work with Eclipse and MingW and compile my project. What Makefile should I choose? And why?

How can I correctly link OpenCV libraries to Eclipse on Windows?

心不动则不痛 提交于 2021-02-07 14:12:06
问题 For the last couple of hours I have been trying to get a basic OpenCV program to work in my Eclipse Mars IDE. The program consists of the following main.cpp: #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <iostream> using namespace cv; using namespace std; int main( int argc, char** argv ) { if( argc != 2) { cout <<" Usage: display_image ImageToLoadAndDisplay" << endl; return -1; } Mat image; image = imread(argv[1], CV_LOAD_IMAGE_COLOR); // Read the file if(!

How can I correctly link OpenCV libraries to Eclipse on Windows?

梦想与她 提交于 2021-02-07 14:10:14
问题 For the last couple of hours I have been trying to get a basic OpenCV program to work in my Eclipse Mars IDE. The program consists of the following main.cpp: #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <iostream> using namespace cv; using namespace std; int main( int argc, char** argv ) { if( argc != 2) { cout <<" Usage: display_image ImageToLoadAndDisplay" << endl; return -1; } Mat image; image = imread(argv[1], CV_LOAD_IMAGE_COLOR); // Read the file if(!

Java 9 automatic module dependencies cannot be resolved / module not found

老子叫甜甜 提交于 2021-02-07 13:47:56
问题 I'm trying to migrate some legacy applications to the new Java 9 module system, to strengthen its encapsulation. I'm starting from the outside-in, with the assumption that classes on the periphery will have the least external dependencies. As you'd expect, I've declared a very open module to start with: module com.example.user { exports com.example.user; } This instantly breaks the entire project (inside all classes), when suddenly every import for an external dependency no longer resolves

Invalid anti-forgery token

时光总嘲笑我的痴心妄想 提交于 2021-02-07 13:35:40
问题 I'm getting an " Invalid anti-forgery token " when I try using POST method in a Clojure Webapp project I created using Compojure template. I researched, and Ring middle ware creates CSRF (cross site request forms) tokens to authenticated requests coming from other sites (to use someone else's credentials who has already logged in and access pages not allowed to access). These tokens are default, and we need to use ring.middleware 's wrap-params around our WebApp. Couldn't get anywhere much.

java.lang.ClassNotFoundException: org.jboss.logging.Logger

限于喜欢 提交于 2021-02-07 13:11:10
问题 I have a strange problem. I have a JMS client application & an MDB configured in JBoss jboss-5.1.0.GA . Earlier, I added the JAR by "Configure Build Path" → "Add External JARs" and everything was working fine. Now, I moved all the JARs to a lib folder under my project and used "Configure Build Path" → "Add JARs". Now, I get the following exception while executing the client program :( Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/logging/Logger at org.jnp.interfaces