I am trying to import a project in IntelliJ Idea 2016.1.1 using: File->Project from existing sources->choose the required pom.xml
It comes to this dialog box, but nothing happens on clicking next button.
I had the same issue, but managed to solve it by updating my /etc/hosts file such that there is was only one entry for localhost
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
# 192.xxx.xxx.xxx localhost <-comment out this
255.255.255.255 broadcasthost
#::1 localhost <- comment out this
In my case, this problem was solved by setting the JDK in IntelliJ IDEA settings. Like this:
Before selection correct JDK, I had the red text in this field.
I have had similar issue on my spare computer, the problem appears when creating/importing Maven project. It seems for some reason it has lost the access to java SDK and it was not there, even thus I tried to re-importing it. I tried to select java SDK again with out luck. I ended up with following solution:
Uninstalling IntelliJ (2016.2.4)
Reinstalling Java JDK latest 1.8, restart the system
Installing latest IntelliJ (2016.2.5)
First time I started IntelliJ, and when creating first time new project, ensure selecting the correct SDK path (see image)
Now you should be able to (click on next) creating/importing new Maven project.
The other answers did not helped me much.
I had the same issue just now,through the idea.log, I found the problem:
Caused by: com.intellij.execution.process.ProcessNotCreatedException: Cannot run program "/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/bin/java" (in directory "/Users/xxx/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/182.4129.33/IntelliJ IDEA.app/Contents/bin"): error=2, No such file or directory
at
com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:408)
at com.intellij.execution.process.OSProcessHandler.startProcess(OSProcessHandler.java:51)
at com.intellij.execution.process.OSProcessHandler.<init>(OSProcessHandler.java:44)
at org.jetbrains.idea.maven.server.MavenServerManager$2.startProcess(MavenServerManager.java:367)
at org.jetbrains.idea.maven.server.MavenServerManager$2.execute(MavenServerManager.java:358)
at com.intellij.execution.rmi.RemoteProcessSupport.startProcess(RemoteProcessSupport.java:212)
at com.intellij.execution.rmi.RemoteProcessSupport.acquire(RemoteProcessSupport.java:139)
... 28 more
the jdk1.7.0_79.jdk have been removed,so it doesn't work...
I ran into this and at first it seemed due to the use of a tilde ~ in the file path of the root of the project. It also seemed to go "flaky" if you try to use a ~.
More investigation lead to:
/home/user/.IdeaIC15/system/log (might be a bit different for other systems)
Do
tail -100f idea.log
in a terminal in that directory and see what you get when you click "next"
Mine was missing / corrupt java7 instance
All this is pertaining to Linux only.
I had the same problem, turns out I had a lock on the directory. try renaming the folder to confirm this is not your issue. Once the lock is removed try importing the project.
I know this is older issue, but today I also encountered this issue. In my case it was JDK unavailable (as my IntelliJ was pointing to external JDK which got updated and old path didn't exists). Nevertheless, the issue can be different for different people. The best way to tackle this problem is to check intelliJ logs, that will tell you exact issue it is facing and then proceed with its fix. I'm sure this will save your time and you will solve the issue very quickly.
How to locate idea.log file is here
P.S. May be when you read this post, the above link to locate idea.log file stale. So kindly get the updated link from IntelliJ jetbrains website (Look for idea.log file path)
OR follow the below steps:
1. Open intellij
2. Click on Help tab from menu-bar
3. Select Show log in Finder. Get the path to this path and do tail -f </path-to-file/idea.log>
In my case to solve this problem I did a strace on Linux of the Intellij Java process that is called when you do a next (+ child processes) and discovered that it was related to the execution of the Maven embedded jar.
Execution of the Maven embedded jar (process 4940):
4940 execve("/home/rudy/Softwares/jdk1.8.0_111/bin/java", ["/home/rudy/Softwares/jdk1.8.0_11"..., "-Djava.awt.headless=true", "-Didea.version==2018.1.4", "-Xmx1024m", "-Didea.maven.embedder.version=3."...
Error returned by the process 4940:
4940 <... execve resumed> ) = -1 ENOENT (No such file or directory)
I had decided to move the jdk8 to a directory home/rudy/Softwares/jdks/jdk1.8.0_111 and it was previously in home/rudy/Softwares/jdk1.8.0_111.
It seems before to move JDKs used by Intellij to first reconfigure Intellij to use the new path and then use the import maven functionnality.
I did a mistake, it is true (moving the JDK) and Intellij has no way to know where the JDK was moved (unless scanning the all filesystem) but it should clearly display an error message and not get blocked on the 'next'.
I had this issue today and it took me 2 hours to identify and fix it.
I tried to import the project from perforce workspace which had '/' in the workspace name (ABC/lighting_workspace).
When I created another perforce workspace without '/' in the name (lighting_workspace), I was able to import the existing project :)
Had exactly the same issue, in my case it was a memory problem: the importer needed more memory than the one allowed by the VM's limit set by default after the installation of IntelliJ: I had 768 mb set by default and i moved them to 2048 mb.
You can set this under :
Preferences |-> Build, Execution, Deployment |-> Build Tools |-> Maven |-> Importing |-> VM options for importer
Install latest version of Intellij Idea (leave everything by default) and Java JDK (called SDK in IDE).
Create a new empty project.
Press Ctrl+Alt+Shift+F to open Project Structure panel.
Chose the SDK you downloaded, like : C:\Program Files\Java\jdk-10.0.2.
Apply and File->Open your project
Now it work ! (Also cleaned my host file)
I am using Eclipse Luna, and I am trying to import a project from github. However, it says "Internal error; consult Eclipse error log" when I pasted the URI in:
The project is valid. I've tried a few projects, and they all worked on my older Juno version of eclipse, but all failed on Luna, just like above. What should I do to reproduce this problem?
Here is my Eclipse log error: http://pastebin.com/QcfF4Xsq
I solved this problem going to "Preferences > General > Security > Secure Storage > Contents", open "[Default Secure Storage]", deleting the "GIT" row and finally restarting Eclipse.
You have a similar error message with other Eclipse-based products, like RTC:
A summary of the problem is that Eclipse uses a default location on your machine that is the same for all your Eclipse installs.
So if you have installed and used 32-bit Eclipse, then your secure storage requires the 32-bit plugins to access.
When you try to use a 64-bit Eclipse, it will try to read that secure storage and will fail because it is using the 64-bit plugins to read the storage.
The solution is to tell your Eclipse to use a different secure storage area. You can do this by running Eclipse with the following option:
-eclipse.keyring <file_path>
where <file_path> is the location of the file which you wish to use as your new secure storage area.
(You can check by the way if you have a consistent Eclipse distribution: all 32 bits or all 64 bits)
Note that another product (NetBeans) resolved the same error message like so (issue 211863)
I found the problem.
NetBeans is detecting a remnant of an Eclipse IDE installation. Once I deleted the file, the errors in the log went away.
C:\Documents and Settings\ttroy\.eclipse\org.eclipse.equinox.security\secure_storage
On Windows 7 or more:
C:\Users\<username>\.eclipse\org.eclipse.equinox.security\secure_storage
# or
%USERPROFILE%\.eclipse\org.eclipse.equinox.security\secure_storage
Delete C:\Users\USERNAME\.eclipse\org.eclipse.equinox.security\secure_storage it will resolve your problem.
This is the message I see in the eclipse Error log.
Secure storage was unable to retrieve the master password from the OS keyring. Make sure that this application has access to the OS keyring. If the error persists, the password recovery feature could be used, or secure storage can be deleted and re-created.
So as others said if you delete the secure_storage file and it should solve the problem.
On a mac, better use command line.
/Users/< userid >/.eclipse/org.eclipse.equinox.security
I'm using eclipse android IDE (bundle)
a strange thing,
I have build my android application successfully (no errors)
it includes android Apllication project and a native c code project.
I try to run the android project on my android-device
and get this error:
Description Resource Path Location Type
AndroidManifest.xml file missing! WazeAndroid Unknown Android Packaging Problem
Although I see it in the package tree.
I have googled. tried t restart eclipse and my Mac
nothing helped.
Go to Project in menu and do Clean your project which one you selecting then run your program.
Here is a google offical solution
To fix this problem, simply delete the debug.keystore file. The default storage location for AVDs is in ~/.android/avd on OS X and Linux, in C:\Documents and Settings\.android\ on Windows XP, and in C:\Users\.android\ on Windows Vista.
The next time you build, the build tools will regenerate a new keystore and debug key.
I hope that this can help you.
When I try to create a new Java project in eclipse indigo on Windows 7 I get the following error with a JDK 1.6:
An error occurred while creating project. Check log for details.
Reason:
Problem while creating backup for 'project-desc'
The system cannot find the path specified.
Has anybody seen this or resolved it before?
Looking at the log file told me the same thing - eclipse thought a valid directory path was invalid.
It turns out my eclipse install was corrupted - on deleting it and replacing it with a new one everything worked fine.
so I've installed red5 0.9, I've installed jdk 1.6 update 22. I've set my environment variables correctly, installed eclipse galileo for java ee developers, tortoise svn, and then ivyde and subclipse plugins for eclipse. I then created a folder called red5_server, and did the svn checkout. When I try to import the red5_server, I get the java problem:
The project was not built due to "Could not delete '/red5_server/bin/org'.". Fix the problem, then try refreshing this project and building it since it may be inconsistent
Do you have any idea what could cause this? Also, while it was attempting to build, an error flashed on the screen and quickly disappears. I was only able to read it by removing the project and importing it over and over again until I was able to react quick enough to screen-capture the error. It says:
'Ivy resolve job of ivy.xml in 'red5_server has encountered a problem. Error while resolving the ivy instance for ivy.xml in 'red5_server': Unrecognized variables in the Ivy settings file ${workspace_loc:red5_server/ivysettings.xml}
Any idea what this could be? Thanks in advance!
Also, when I remove the project and try it again, I get the same ivy.xml error and isntead of getting the one java problem, i get over 5000. Any ideas? My head is spinning over here.
I've tried this on a freshly reformatted computer with the same results and with every version of red5.
All of the errors are Java Problems of the same type:
ApplicationAdapter cannot be resolved to a type Application.java
or,
The import org.red5.server.adapter cannot be resolved Application.java
or,
log cannot be resolved Application.java
or,
The method getName() is undefined for the type Application Application.java
Am I missing some essential file or path?