Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
I have a Java / maven project in IntelliJ IDEA, but when I try to run a test I got the message Nothing Here
First, try updating all plugins to latest versions and restarting IDEA.
The issue may be related to this YouTrack ticket. Try disabling the Gradle plugin in Settings | Plugins and removing the following lines from CONFIG\disabled_plugins.txt file + restart IDEA:
org.jetbrains.idea.gradle.ext
org.jetbrains.plugins.gradle
org.jetbrains.plugins.gradle.maven
If it doesn't help, attach your idea.log file after reproducing the issue (Help | Show Log in Explorer).
On the latest IDE, this option is more simplified.
right-click on the folder you want to be recognized as a source folder:
Mark Directory As -> Sources Root
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I try to import class-files from my PC to my Laptop. I use on both Eclipse and Windows 10 and tried to put the files in the other workspace. It didn`t work. Is there any easy, fast option to import the files.
By the way when I try to import the file manually I get the error "The Class File Viewer cannot handle the given input ('org.eclipse.ui.ide.FileStoreEditorInput')."
If you want to go on working with your eclipse project to another location you need to migrate all resources, not just the class files. To migrate a project, you can right-click on the project and hit "Export->Archive File". In the following wizard you can select projects and resources that you want to transport to another workspace.
In the new location you select "Import->Existing projects into workspace". In the following wizard, choose "Select archive file" and select your file, then you can choose the projects to import.
Of course, as stated in the comments, if you want to be able to work in both places and not migrate altogether, using a version control system such as git is highly preferable, because otherwise you would have to keep these projects in sync manually.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
While creating a Maven Project in Eclipse version 2020-06, I'm facing three problems:-
Not getting the Maven Project option under File->New, but it is present under Project Section. No Maven Project Option Present in File->New
Not getting any .java file under src/main/java.
No .java file under src/main/java
Not getting any custom Archetype.
No custom Archetype present
NOTE:- I am using JDK 1.8 and JRE 1.8 in Windows 7.
How to add all this for the Maven Project? Please suggest.
It just works like this. What is wrong with it?
Just add your .java file. Right click -> new -> class/interface/whatever
I think you have to wait. In the bottom-right corner we can see "Retrieving archetypes". It can take a few minutes to download everything
You can use 'Window > Perspective > Customize Perspective' to customize the current perspective. Choose 'Shortcuts' and then 'Maven > Maven Project' to add that to 'File > New'.
It is up to you to create new Java files.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I am currently 3 months+ into programming and am trying to build an android app that takes data from Quandl.
How do I import the Quandl library into my Android project? I have tried to search for answers - they typically tell me to add the .jar file, but there is no .jar file in the Quandl library here (taken from the link below).
https://github.com/jimmoores/quandl4j
Will really appreciate it if someone posts a step by step guide for a noob beginner like me.
The answer is in the link you have provided:
https://github.com/jimmoores/quandl4j.
Look at Quick Start section. You have four options.
You can download zip. There is source code inside. You should unzip this archive and then use maven to build jar file. Go to main directory, where pom.xml file is and execute mvn install. If build is successful then jar file should be in target directory.
If you are familiar with git you can clone repository and as previous crate jar with maven (mvn install).
You can use maven to add dependency to your project automatically.
You can use gradle, another tool that automates process of building dependency.
Generally speaking: you are new to programming, spend some time learning about maven, because this tool will help you a lot in your career.
https://maven.apache.org/
After reading this answer please remove this question, because it has a little value for community.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
Intellj shows a breakpoint is invalid.
I want to debug into a jar file I include in my project.
With Intellij pre 14.1 you would have to attach a source file of that project, you cannot simply debug a decompiled jar. I'm assuming you are using an older version of Intellij so you have two options:
attach the source code of that jar (Project Structure -> Attach Sources)
upgrade to version 14.1, then you can use your breakpoints as usual without attaching the source code
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I have an Eclipse plugin project and I'm trying to get the path of the workspace the project is running in. (not the path of the plugin's workspace)
All what I found is the following code which gives the workspace of the plugin:
String url = ResourcesPlugin.getWorkspace().getRoot().getLocation().toString();
Is there any way to get the path of the current workspace (and not the workspace of the plugin)?
There is a way to get the path of current running class - and by the way to get the path of the current workspace. (Not the workspace of the plugin)
URL location = Current_class.class.getProtectionDomain().getCodeSource().getLocation();
System.out.println(location.getFile());