Questions tagged [eclipse]

50573 questions
1

votes
1

answer
307

Views

Eclipse : Can't import class from another project's test folder

I have two projects, lets call them A and B. B is a dependency in A's pom as my.group.id B 0.0.1-SNAPSHOT now i have some unit tests under src/test/java/ in project A. Here is a test class i have src/test/java/packA/testForA.java Also, in project B, I have src/test/java/packB/configForB.java I need...
AbtPst
1

votes
0

answer
112

Views

Can Java recognize a type parameter, T, as a super type of some class?

Background: I have 3 classes: A, B, C where they all extends 'Super' and implements 'Interface' and I want to write code that only uses only the methods from 'Super' and 'Interface' Unfortunately, I don't have control over the source code of A, B, C, 'Super', 'Interface' to change the inheritance ch...
Sgene9
1

votes
0

answer
27

Views

CTRL+clicking on function not navigates to function definition

Trying to get navigated when ctrl+clicking on function to is definition. I have two C++ projects in my Eclipse workspace. First one - small and it works fine - I do ctrl+click on function and it navigates me to clicked function body. Second project is large and ctrl+click not works. Maybe somehow it...
vico
1

votes
0

answer
60

Views

Maven: Packaging a jar with separated external resources and dependencies (including external dependencies)

Here is what I'm trying to achieve - a dist directory that looks like this: dist/ |-- application-1.0.jar |-- resources/ |-- application.properties |-- testing.config.xml |-- training.config.xml |-- ... |-- lib/ |-- *.jar That is, I want to produce a folder 'dist', that will contain my application-1...
Hussein Dahir
1

votes
0

answer
205

Views

Sbt ( new version 1.0.4) assembly failure

I have been trying to build fat jar for some time now. I got assembly.sbt in project folder and it looks like below addSbtPlugin('com.eed3si9n' % 'sbt-assembly' % '0.14.6') and my build.sbt looks like below name := 'cool' version := '0.1' scalaVersion := '2.11.8' resolvers += 'Hortonworks Repositor...
ram
1

votes
1

answer
180

Views

Vaadin: Problems with Calendar addon - can't compile widgetset

I've wanted to add Calendar (https://vaadin.com/directory/component/calendar-add-on) to my project. So I've added dependency to my pom.xml. When I run project with calendar component I've got error in place, where component was: Widgetset 'com.vaadin.DefaultWidgetSet' does not contain an implement...
Michu4000
1

votes
1

answer
85

Views

How to set PHPTools preferences in Eclipse 4.7.2?

I recently reinstalled my system and Eclipse PDT, now I'm faced with the following problem. I seem unable to open the workspace preferences for CodeSniffer. Via Window / Preferences / PHP Tools / PHP CodeSniffer, I get two error messages: - 'Could not accept changes', 'The currently displayed page c...
Frans-Willem Post
1

votes
1

answer
1.2k

Views

java.lang.ClassNotFoundException: org.json.JSONObject in my java restful webservice

I have write java restful webservice to retrieve the data to JSON Object, but it has the error in below java.lang.NoClassDefFoundError: org/json/JSONObject at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2451) at java.lang.Class.privateGe...
leo leung
1

votes
1

answer
123

Views

ClassNotFoundException for StatEt Eclipse plugin / RJ. Compatibility issue with Java9?

I installed RJ for StatEt with: > install.packages(c('rj', 'rj.gd'), repos='http://download.walware.de/rj-2.1') Installiere Pakete nach 'C:/Users/eis/Documents/R/win-library/3.4' (da 'lib' nicht spezifiziert) versuche URL 'http://download.walware.de/rj-2.1/bin/windows/contrib/3.4/rj_2.1.0-13.zip' Co...
Stefan
1

votes
0

answer
1k

Views

Processing of multipart/form-data request failed. Stream ended unexpectedly while running junit test case for servlet

I am writing multipart file upload test case in servlet but it is throwing exception as mention: Code: public class MessageUploadServlet extends HttpServlet { public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { FileItemFactory factory =...
user1773579
1

votes
1

answer
196

Views

How to test our chrome extention with selenium tool?

I built a Chrome-extension, and I would like to make an automatic Selenium test, in order to test it. This is the code I wrote in java: public static void main(String[] args) throws InterruptedException { WebDriver Driver = null; System.setProperty('webdriver.chrome.driver','chromedriver.exe'); Driv...
Sivan Mednyk
1

votes
0

answer
400

Views

Eclipse console is terminated on maven build

I intend to run a simple Spring MVC application using Maven. When I try to perform maven clean / build, nothing runs on console instead it shows message as ' Projectname [maven build] ..[JDK path]/javaw.exe' I have set valid JDK path in system env variables and in the eclipse.ini file. Please help a...
Hetal Gada
1

votes
2

answer
264

Views

SVN plugin issue in eclipse

I have installed SVN plugin to my eclipse by 'Help->Install new software'. Used the URL - http://subclipse.tigris.org/update_1.6.x. After installation, I tried connect my SVN URL(http://svnserver.com/svn) which worked others machine in tortaise svn. It got prompted with credentials, then it ended up...
Simbu
1

votes
1

answer
46

Views

user input in default constructor eclipse project

this is my class in eclipse IDE C/C++ IRSender.h: #ifndef IRSender_h #define IRSender_h #include class IRSender { public: IRSender(uint8_t pin); // Cannot create generic IRSender instances virtual ~IRSender(){}; public: virtual void setFrequency(int frequency); void sendIRbyte(uint8_t sendByte, in...
isan
1

votes
1

answer
498

Views

Yocto project how to add a library to Eclipse with Yocto Plugin

(Please do not scold me, this is my first question here.) I'm using Yocto 2.3.1 under Ubuntu. I create image for Raspebrry Pi 3 without any problem. I install Eclipse and yocto-plugin for Eclipse. I create HelloWorld Autotools project and debug it on target hardware - no problems. But, when I try to...
Quarz
1

votes
0

answer
78

Views

Jface accelerator key not working on macOS when focus is on StyledText widget

Within a StyledText or Text widget, a single letter key accelerator is working fine on Windows. However, it is not working on macOS: All good on Windows: pressing 'A' when the text view is focused displays the pop-up (and the letter A is not output) Fail on macOS: pressing 'A' when the text view is...
Nick
1

votes
1

answer
557

Views

Can't find the classes of an external jar imported in Eclipse

I created a new project in Eclipse in which I want to use the JTS library. I imported the library during the creation of the project but I can't find the classes in the package explorer. Since I am not experienced in Java and Eclipse, I'll explain what I did from the start. I download the JTS librar...
J-J
1

votes
0

answer
197

Views

Does eclipse support smooth mouse scroll?

Could I scroll the mouse smoothly just like what I do in sublime? When I scroll fast, the screen scrolls fast. Note that I know scrolling the mouse with Ctrl key pressed, but that's not what I want.
kingluo
1

votes
0

answer
96

Views

Connecting front end pages angularjs to the sql database java servlets code

I am a beginner to Angularjs so I have developed front end pages using Visual Studio Code.For example I have developed a registration front page in the visual studio code and I would like to insert the inputs into the backend into the oracle sql database. Please help!
Arun Doddi
1

votes
1

answer
19

Views

How to use cloned github repository classes into existing java project

I am using some classes from a github project. I created a maven project and added the dependency from the provided github project, but I need to change some code in those project classes. I have downloaded and modified the repository but now I have no idea how to import it and use the classes to my...
student
1

votes
1

answer
159

Views

can't connent to any respository when I push the code to remote

I am facing the issue 'when I commit the code to local respository success,then I can't push the code from eclipse to git repository...' How can I get past the error message Can't connect to any repository: https://gitee.com/JinJiaoJingTong/SanPin.git (https://gitee.com/JinJiaoJingTong/SanPin.gi...
Leandy
1

votes
0

answer
95

Views

Hot code replace not working in Eclipse with Spring Boot 1.5.8.RELEASE

I am working on a Spring Boot Application with version 1.5.8.RELEASE. I have got a peculiar issue. When I change JSP/HTML/CSS/JS, hot code replace is not working. I have to restart the server to get the updated UI. I have other spring boot application with version 1.4.1.RELEASE which is working fine...
Ramang
1

votes
1

answer
3.1k

Views

How to add apache tomcat v9 in eclipse

I downloded and installed tomcat v9 but when I go in eclipse window-preferences-server-runtime environments-add there is no apache tomcat v9 , the highest version is v8 , and also the official apache website doesn't provide the download link for tomcat v8 anymore .
Tornike Shelia
1

votes
1

answer
812

Views

“Project build error: Unknown packaging: eclipse-plugin” in Maven

I have a maven parent in which I have defined 1 module for the plugin. The parent pom looks like this: 4.0.0 com.angle angle-eclipse 1.0.0 pom ../com.angle.ui 1.8 1.0.0 http://download.eclipse.org/releases/oxygen clean install oxygen p2 ${oxygen-repo.url} org.eclipse.tycho tycho-maven-plugin ${tycho...
Arjun Panicker
1

votes
1

answer
271

Views

When i trying to install SVN Connectors i got below error. I used eclipse neon

I have installed SVN in eclipse. Then after i gave repository URl,Username and Password. In that time i got below error. SVN: '0x00400006: Validate Repository Location' operation finished with error: Selected SVN connector library is not available or cannot be loaded. If you selected native JavaHL c...
1

votes
2

answer
97

Views

IBM Watson Visual Recognition parameters method won't accept String implicitly

I created a program with windows builder to make a custom classifier using IBM Watson services and everything works fine but I have problems with the classification of an image using that classifier's ID from a text fie. When I put the custom classifiers ID inside the code it works fine but when I...
Pavlos skevofylax
1

votes
1

answer
37

Views

Eclipse cdt debugger only step through dessembly code and not my own

Recently I asked a question and one of the guys here really tore into me about not using a debugger. Someone else was nice and suggested Visual Studio C++. I have been trying to work with it and it was really nice until I tried more complex code. So I decided to try eclipse since that is the IDE I...
Mae Davis
1

votes
0

answer
152

Views

Ubuntu 17.10., Eclipse Oxygen and Eclipse RCP App Developement

I recently moved from Ubuntu 14.10/ Eclipse Mars to Ubuntu 17.10/ Eclipse Oxygen. I am developing an Eclipse RCP application. With the new setup, the application fails to start: !MESSAGE Application error !STACK 1 java.lang.StackOverflowError at org.eclipse.swt.widgets.Display.sendEvent(Display.java...
kerner1000
1

votes
1

answer
118

Views

Unknown javadoc format for JavaRDD error in Eclipse in Windows 10

I can't get the Javadoc for Spark core library to work on Eclipse and Windows 10. I have no JRE defined under preferences. I load the Javadoc I right-clicked on the jar file in eclipse-> project explorer -> maven -> download Javadoc. What I typically do. See attached image. How to fix this? Stack Tr...
K.Nicholas
1

votes
0

answer
17

Views

Ecclipse: Adding Javadoc comments in Php module fails

I am writing a Php module using Eclipse. If a function contains global $user; and the some assignment $user = user_load('Administrator'); then if I add Javadoc Comments to a function below, using /** I dont see auto-generated @param $var declaration anymore. The same comments for the function belo...
Vladimir Lev
1

votes
0

answer
416

Views

how to resolve “ConnectionRefusedError: [Errno 61] Connection refused” error for selenium python code?

1) Using pyDev in eclipse on a mac for writing selenium automation 2) python code: from selenium.webdriver.common.desired_capabilities import DesiredCapabilities from selenium import webdriver browser = webdriver.Remote(desired_capabilities=webdriver.DesiredCapabilities.SAFARI) #browser=webdriver.S...
VKR
1

votes
0

answer
42

Views

Eclipse NullPointerException when dragging tab to a new location with custom perspectives

I made an IPartListener so when I change between different file types I can change perspective automatically. But when I drag an editor tab to a new location, it iterates over the other tabs it crossed. Now I think because of this, the editors getting activated and eclipse wants to change perspectiv...
Mátray Márk
1

votes
0

answer
121

Views

The package org.openqa.selenium is accessible from more than one module: net.bytebuddy, phantomjsdriver

I am working with Selenium Web Driver and PhantomJSDriver 2.1.1 for extract data from a page. As shown in screenshot below, I found a problem with import WebDriver: 'The package org.openqa.selenium is accessible from more than one module: net.bytebuddy, phantomjsdriver'. Screenshot Image I searched...
Farrokh Yousefi
1

votes
1

answer
42

Views

Run Maven Build after Existing Maven Build in Eclipse

Say i have two Maven Build Configurations in Eclipse for Projects 'A' and 'B' where both of them are for two independent Projects Is there a way using which i could execute Maven Build for Project 'B' after successful completion of Project 'A'? I see options to add Parameters under 'A' Maven Build -...
Varun Arora
1

votes
0

answer
198

Views

Cannot specify the following JVM options in the POM file

I am working on a JavaFX project using Maven which requires the JavaFX on screen keyboard enabled. I am trying to achieve this by using the following JVM options. -Dcom.sun.javafx.isEmbedded=true -Dcom.sun.javafx.virtualKeyboard=javafx The corresponding POM sections are as fololows. -Dcom.sun.javafx...
Saminda Peramuna
1

votes
0

answer
43

Views

syntax highlighting of special text fragment

I have this within a Eclipse IDE javascript-editor: let a = `test ${value}` Within Eclipse->Preferences->Editor->Syntax-Coloring->JavaScript->Template literal I can choose the color of this template literal. However, I want to set only the 'syntax coloring' of the special fragment '${}'. How can...
nimo23
1

votes
3

answer
50

Views

Eclipse do not show output

I'm making 2D drawing on Eclipse Oxygen, there are no error in my code but why it does not show any output. I mean when I click run there are no progress. import java.awt.Color; import java.awt.Frame; import java.awt.Graphics2D; import java.awt.geom.Arc2D; import java.awt.geom.Rectangle2D; public cl...
MAMIA
1

votes
1

answer
443

Views

Solving NoClassDefFoundError exception with SWT

I am trying to create a program using the SWT library, but when I try to run it I get the following exception: Exception in thread 'main' java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Layout at il.ac.tau.cs.sw1.trivia.TriviaMain.main(TriviaMain.java:9) Caused by: java.lang.ClassNotFoundEx...
Gabi G
1

votes
1

answer
833

Views

install sonarlint in eclipse luna 4.4.0. failure

Trying to install sonarlint in eclipse luna 4.4.0. Installing from marketplace failing with below error : Trying to install sonarlint in eclipse luna 4.4.0. Unable to read repository at https://eclipse-uc.sonarlint.org/content.xml. Received fatal alert: protocol_version javax.net.ssl.SSLException: R...
darshan kamat
1

votes
0

answer
19

Views

Eclipse - Set Execution preference between Java Application and TestNG

I have a TestNG class file. Whenever I try to execute it, I get the 'Run As' options to select between Java Application and TestNG Test. How do I default it to take always TestNG for this class file, whenever I execute it? Is there any association for class files to the way it has to run? I've tried...
ItsMeGokul

View additional questions