eclipse

Classpath jar files in eclipse

为君一笑 提交于 2021-01-29 18:01:14
问题 I am new to eclipse and I have a general question about referencing external Jar files. I went to the buildpath -> configure build path and added my two jar files that I wanted to reference as parts of an external library but I can seem to make an instance object of the classes in that jar. And also I tried just copy and pasting the jar files to the extension folder of the standard library too but this also doesn't work. How can I use the instance objects of the classes included in these jar

pydev coverage: pytest and local pytest plugin running in two separate processes, talking over http

坚强是说给别人听的谎言 提交于 2021-01-29 17:40:40
问题 All started here: https://github.com/pytest-dev/pytest-cov/issues/425 I can say by now that I have a working solution on my terminal, so when I run: pytest --cov views --cov db --cov-report term-missing:skip-covered -sv ==================== test session starts ==================== platform darwin -- Python 3.7.6, pytest-5.4.3, py-1.9.0, pluggy-0.13.1 -- /usr/local/Caskroom/miniconda/base/bin/python cachedir: .pytest_cache rootdir: /Users/alan/myproject plugins: xdist-1.33.0, forked-1.2.0, cov

Eclipse Unable To Run ScrapBook VM

痞子三分冷 提交于 2021-01-29 17:31:19
问题 I am just starting to code with eclipse and i cannot use the scrapbook. i am on Mac Mini, osx mavericks, jdk1.7u51. Error: Exception occurred executing command line. Cannot run program "/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Home/bin/java":error=2, no such file or directory. I looked in the directory stated and the file "java" is there. 回答1: The problem was that my java work space was under a chinese directory. 来源: https://stackoverflow.com/questions/22852682/eclipse-unable-to-run

How to access DefaultTableModel from another class

时光总嘲笑我的痴心妄想 提交于 2021-01-29 14:51:55
问题 I intend to have a form (FLlistes) that shows a table populated with data from taken from a database with hibernate. The problem is that I don't know how to access the table (or table model) from the class I use to create the queries. I created a jtable in a JInternal frame like this: public class FLlistes extends JInternalFrame { private JTable table; private DefaultTableModel model; //some code String[] columns = {"Id","Date", "Place", "Total"}; model = new DefaultTableModel(columns, 0);

how can we add percentage like 25%, 35% ..100% to eclipse splash screen progress bar to know how much progress till there?

空扰寡人 提交于 2021-01-29 14:51:12
问题 How can we add percentages like 25%, 35%, 100% to eclipse splash screen progress bar to know how much progress till there while seeing? 来源: https://stackoverflow.com/questions/60541478/how-can-we-add-percentage-like-25-35-100-to-eclipse-splash-screen-progress

Installed plugin not listed in Plug-in selection

江枫思渺然 提交于 2021-01-29 14:16:55
问题 I am currently developing an eclipse plugin and I struggle when it comes to list my plugin dependencies. I installed the OCL plugin on my eclipse installation and when I want to add it to the project dependencies via the GUI I cannot find it in the plug-in selection list proposed by eclipse. Even when I reference it manually in the MANIFEST.MF it gives me a warning " org.eclipse.ocl plugin cannot be resolved ". However, when I run my plugin as an eclipse application, all is working fine. I

Append project to git repository using eclipse

旧时模样 提交于 2021-01-29 13:20:04
问题 I have remote repository which contains, some packages, and stuff basically content of package. So I want to refactor it and make new project containing some stuff from existing one. So I create new maven project to my workspace where I already imported my repository. So I add some stuff to new package and i want to push it to my remote repository. Could anyone give me a tip, or some help, I am basic eclipse user. But when I try to share it using same local repository, then I have two

Getting `NoClassDefFoundError` for classes `FutureCallback` and `LazyList` using Jetty Maven plugin 9.4.32.v20200930 on Java 11

余生颓废 提交于 2021-01-29 11:18:41
问题 I started a few months ago to maintain an old Spring project using the Jetty Maven plugin. I'm currently trying to port it to Java 11 but Jetty won't start the server and (silently) fails with MultiException[java.lang.NoClassDefFoundError: org/eclipse/jetty/util/FutureCallback, java.lang.NoClassDefFoundError: org/eclipse/jetty/util/LazyList] . This seems to be an old bug of the Jetty Maven plugin that I can reproduce on various 9.x versions. It seems fixed in versions 10 and 11 and I would

Modifying Java Collection (List) Variable in Eclipse Debugger

时光总嘲笑我的痴心妄想 提交于 2021-01-29 11:00:55
问题 In Eclipse's Debugger I can change the value of a plain variable, but now I need to modify a List by removing or adding elements. Also, it can't be an empty list, it must contain specific items. I right-click on the variable and try 'Change Value', but the following don't work: new ArrayList<String>(Arrays.asList("333")); ==> ERROR: "Arrays cannot be resolved" and list.remove("12345"); list.remove("67890"); ==> ERROR: Generated value (Boolean) is not compatible with declared type (java.util

Unable to delete project files from local TFS repository in Eclipse

寵の児 提交于 2021-01-29 10:44:20
问题 Project files are take by TFS ( Get Lates Version , Import Project , Check out for Edit -Prevent ...).Then " Undo Pending Changes " are applied.When I want to delete project from my local tfs repository( Connect to TFS Server ->Right click on the project -> Delete -> Delete project contents on disk is checked ->OK ) an error comes out and I cannot apply the delete operation: Delete Source An exception has been caught while processing the refactoring 'Delete Source'. Reason: Problems