eclipse

maven dependency conflict only in eclipse

三世轮回 提交于 2021-01-28 07:09:35
问题 We have several applications as a number of modules; we've been using NetBeans. I am attempting to move the development to eclipse. All projects are built with Maven. One of them uses dbunit, and also POI. When I try to compile it in eclipse, it gives me an error for a bad method signature. Neither NetBeans build with maven nor command-line build give me this error. I discovered that the compiler was attempting to compile using a version of POI older than the one we use. The specific version

Google Cloud Logging Handler Not Found

不问归期 提交于 2021-01-28 07:06:36
问题 My google app engine local development server returns a classdef not found exception when I point the logger to google clouds logging handler, how do I fix this? INFO: Dev App Server is now running Can't load log handler "com.google.cloud.logging.LoggingHandler" java.lang.ClassNotFoundException: com.google.cloud.logging.LoggingHandler java.lang.ClassNotFoundException: com.google.cloud.logging.LoggingHandler at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader

org.openqa.selenium.NoSuchElementException

泪湿孤枕 提交于 2021-01-28 06:31:34
问题 I am trying to import login credential like: username and password using xsl sheet, by using below code but I got NoSuchElementException exception while running, my xsl sheet looks like: username | password -------------------------- jan30selenium | selenium am using: eclipse webdriver.iostream selenium tool Login.java: package Iostream; import java.io.FileInputStream; import jxl.Sheet; import jxl.Workbook; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa

Error: Could not find or load main class … - Maven project out of Eclipse

随声附和 提交于 2021-01-28 06:11:30
问题 I created a Maven project with Eclipse and I am able to run the App.java in Eclipse. But now I want to run it out of Eclipse with this command: ..\workspace\subscribe\target\classes> java com.mqtt.subscribe.App EDIT: with executable jar : ..\workspace\subscribe>java -jar target\subscribe-0.0.1-SNAPSHOT.jar and get this error: Error: Could not find or load main class com.mqtt.subscribe.App What I am doing wrong? I don't understand it. I also try to rebuild the project with mvn package and mvn

Uninstall fonts installed using SWT's Display.loadFont API

筅森魡賤 提交于 2021-01-28 05:21:42
问题 I am working under eclipse plugin and trying to load fonts into the application as resources, so they will appear in project explorer tree. In SWT we have method loadFont of Display class which loads font from specified file, so it will appear in list of available fonts of application. I am using this method. But when I am trying to delete the font from project explorer I am getting following exception: org.eclipse.core.internal.resources.ResourceException: Problems encountered while deleting

FAILED to open .js extension files in Eclipse?

谁说我不能喝 提交于 2021-01-28 05:13:59
问题 I am devloping phonegap application using eclipse whenever i am trying to open .js extension files it by default open "Alert" of Adobe DreamViewer and my adobe has been expired so its show me "Adobe Alert do u want to buy ? " Moreover its not opening any .js file and when i am trying to open file by rightclick---->open with ----->TextEditor then there is only code appearing in editor no "Code Completion " appears no error indication ....nothing how can i resolve this issue ? here is the

Java project with Maven dependency compiles but fails at runtime

妖精的绣舞 提交于 2021-01-28 05:13:18
问题 EDIT: This question should absolutely not be closed. I'm NOT asking how to create an executable jar. A jar doesn't need to be executable to be run from the terminal. For example, if I have have this code: package com.dogzilla.maven.quickstart; public class App { public static void main( String[] args ) { System.out.println( "Hello World" ); } } ...and Maven builds it, it creates quickstart-0.0.1-SNAPSHOT.jar. Which is not, ahem, 'executable'. I can run it from the terminal quite successfully

KeyListener doesn't work at all but my code worked fine on my friend's computer

六眼飞鱼酱① 提交于 2021-01-28 04:01:08
问题 KeyListener doesn't work at all it's like it's not there, it shows the frame with the paddle but it doesn't move when arrowkey pressed , BUT my code worked properly on my friend's computer , i deleted and installed the last version of JDK and eclipse and nothing changed , i even compilated it with cmd and it doesn't work edit : one in a 100 tries it works properly then the next time it returns to not working the code is about a paddle that moves with arrowkeys the Paddle class : import java

STS 3.4.0 with Websphere 8.5.5.0 don't deploy my application

。_饼干妹妹 提交于 2021-01-28 04:01:04
问题 I try to deploy my application on WebSphere from Eclipse. Here some conditions: STS 3.4.0 Websphere Plugin: IBM WebSphere Application Server V8.5 Developer Tools for Kepler/Luna Websphere 8.5.5.0 After i installed the plugin i can add the Server and start/stop him, but when i try to add my application for deployment i get the feedback "There are no resources that can be added or removed from the server" I have an ear project and a war project in my workspace which are deployable with JBoss

java.lang.NoClassDefFoundError: HttpServletRequest [duplicate]

末鹿安然 提交于 2021-01-28 03:42:11
问题 This question already has answers here : java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest (4 answers) Closed 5 years ago . I might have done something really stupid. I was playing around with directories and what not, and now my tomcat server won't start my dynamic web project on eclipse. Please help. I don't know if this has something to do with the directory or not, but it's giving an error when I try to run my project in the server. Caused by: java.lang