I am trying to import a project in Flash builder. I am using the option, import existing project. I get the error "path of the project must have only one segment".
Can some one help me resolve this?
This problem can also occur if the eclipse workspace is of the same folder as the root of the project. The problem can be resolved by setting the workspace one folder level higher.
I believe this refers to the project name being invalid, which can occur when 3rd party tools generate Eclipse projects.
Within the project you are attempting to import, open the ".project" file located at the root of the project.
Assure the name of the project is a simple identifier without path.
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>example</name>
If this does not resolve you issue, please post the contents of your .project file.
Related
As the error indicates, when I am trying to import a Mule project, I am getting error saying "Missing mule-project.xml" but the source I received does not contain it. Is there any workaround for this please?
Would it be possible to create a new project in the development environment, copy the mule-project.xml file from that to your old project and then, if needed, make manual modifications to the mule-project.xml in the old project?
The doppelganger for this in Mule 4 is the Missing pom.xml.
Same solution suggested by Ivan can be followed in Mule 4 as well.
Just to add more value for this question to help newbies.
Never import an previously exported jar unless it's a mule deployable archive. The pom.xml file needs to be present on the top level of the directory.
If your pom.xml is not present in the root upper most level of the directory, then there is a possible folder manipulation occurred.
To make sure you indeed are using the correct code.
Always check your project structure.
Jar archives tends to manipulate your folder structure as per its needs to properly execute ; Just making them useful for deployments but useless for code rework.
I am trying to learn about annotation processing by looking at this sample.
I've cloned it to my local machine and used IDEA to open it.
However IDEA tells me:
Project SDK not set up.
After setting up Java SDK, the project is not opening correctly. So how can I open this project?
The project structure :
annotationprocessing10
|
|------factory
|-----annotation
|------pom.xml
|-----processor
|------pom.xml
|-----pom.xml
|-------factory-sample
I tried opening annotationprocessing10 (root) directly and also tried factory directly but neither worked. Here is a screenshot of the directory structure:
The given repo is not a maven module (no POM.xml in the base directory), the maven modules are the projects inside.
Make sure you import the modules inside the root directory in IDEA to identify it as a maven project.
I'm using the JDBC library in my IntelliJ project (mysql-connector-java-5.1.40-bin.jar)
I put it into a folder named lib and used right click > Add as Library to add it as a library. It worked fine.
Later, I zipped the project and moved it to another computer. After unzipping it and importing it in IntelliJ, it gave me the error SQLException: No suitable driver found for jdbc:mysql, which means that it couldn't find the library.
I looked through the file explorer in IntelliJ and it showed both the jar and XML file, and the XML file was pointing to the right location (jar://$PROJECT_DIR$/lib/mysql-connector-java-5.1.40-bin.jar).
I added the jar file as a library again and now it works. But how can I make it work without having to readd it each time?
Use Gradle (or Maven) for building and dependency management. IDEA should import a Gradle (or Maven) project just fine.
The problem was that I was overwriting the IntelliJ Module Library (.iml) file.
When you import a project to the same folder, IntelliJ asks you whether you want to overwrite or reuse the IML file. Since Overwrite was the default option, I selected it, but that caused it to forget what libraries it was using.
By choosing Reuse instead, it works perfectly.
I built the Drill project according to the wiki specification
but, the project has some errors. Some classes (BigIntVector, BitHolder,BigIntHolder) can't be resolved and the workspace don't really contain these class files. Any suggestions as to what's going on?
These clases are generated during build.
exec/java-exec/target/generated-sources/org/apache/drill/exec/expr/holders/BigIntHolder.java
There is a problem in that the Maven import into eclipse results in target/generated-sources/org being added to the Source Folder build path. I have found that in the two cases, comon and java-exec, if you remove these folders from the source folder build path and add them as target/generated-sources this will help.
This is a workaround, there is obviously a misconfigured pom.xml somewhere.
a colleague of mine checked out a git repository from github which is an assignment for college. But he can't see all relevant files and folders in the project view. Any ideas for solving this issue would be highly appreciated...
Screenshot:
Thank you and best regards
Philipp
Most likely the project was imported into IDEA, but it's not a pure Java project.
Note that non-Java projects cannot be imported from the existing sources using the Import option.
You should create a new project, select the appropriate module type and then point to the existing directory with the code when creating the module.
Other options are to import from Maven/Eclipse/Gradle.
There is a known issue logged.
If it's not the case, please share a sample project (zipped) that will reproduce the problem.
In my case, project .iml file was not found. So I imported project to idea, and it imported project and created .iml file. All files and folders are visible now.