I have two different eclipse plugin projects and I want to call to class from proj1 in proj2,
what are the steps that I should do?
I have tried to do it with adding a project proj1 to project2 with the tab right click on project properties and in the tab project ,without success .it doesnt know it?
If you're working with plug-in projects, they can only rely on other plug-ins and .jar files according to their plug-in manifest files. Open proj2's MANIFEST.MF file in the Plug-In Manifest Editor and add proj1 as a Required Plug-in from the Dependency tab.
Sometimes Eclipse get confused or does not use your changed configuration by itself.
Often it helps to force eclipse to build all projects again.
Main menue: 'Project' than click on 'Clean ...' select 'Clean all projects' and press 'OK'
Related
I am trying to create a .JAR out of my JavaFX project to then convert it into an .exe file. But IntelliJ doesn't show a "build artifacts" option in the main menu, which the guides I've seen require me to click. Build only gives me the following options: Recompile Main.java, Build Project, Rebuild Project 'Project Title'. Any help is appreciated
I've already created an artifact in the project structure tab.
You must define an artifact in File > Project Structure > Artifacts. Once defined you can generate your final file under Build > Build artifacts > your_artifact
I leave you an example that I'm actually using
It looks like your IDE menu is customized and some of the items were removed. It should help if you either reset the menu to the defaults or add the missing items manually:
My Maven project in IntelliJ Idea have no resources folder both in main and test folder. I know how to manually create those folders and update pom accordingly, but how can I do it automatically in IntelliJ Idea? In Eclipse there is an option like "Update project".
First you want to right click on your project and choose "Add Framework Support" to allow Intellij to recognize that this is a Maven project. Assuming that you have your pom.xml ready, right click on it, hover over on "Maven" choose "Reimport" and/or "Generate Sources and Update Folders"
I work with Eclipse. I have two projects in the workspace. This is my Eclipse navigator.
I want to add AR04.CME to cmeWeb.
Folder cmeShare has some jar which I need in cmeWeb.
I click in cmeWeb properties ->Java Build Path -> Projects
This is the screen
AR04.CME doesn't appear as project.
How can I add this project?
Linking Project A to another Project B is useful when you have source code in A that you want to share to B. That's not your case. You don't seem to share source code, but a compiled library instead.
Your best option is to edit cmeWeb's Build Classpath > libraries > add jar > select your Jar library.
I am trying to import the latest Log4j2 source in my eclipse and Eclipse is not detecting it as a project. it says 'No projects are found to import'. Is there a solution for this?
My goal is to make a jar out of this source. Can i do that without the need to importing it on my eclipse(maybe like a command line solution that can make a build for me)?
Eclipse is not detecting it as a project. it says 'No projects are found to import'. Is there a solution for this?
It's a maven project, so you should import Existing Maven Project
Can i do that without the need to importing it on my eclipse(maybe like a command line solution that can make a build for me)?
A simple jar command. You can see more at Using JAR Files: The Basics. A basic command example
> jar cf log4j-sources.jar * // the * is for all files in the current directory
Note: this will not build anything. Just put everything into a jar.
If you have maven you can ask maven to generate the Eclipse .project and .classpath files.
From the log4j2 top-level folder, run mvn eclipse:eclipse
Eclipse will now be able to recognize each module as a project.
After this, to import modules in Eclipse, take the following steps for each module:
File > New > Java Project - enter module name (e.g. log4j-api) for Project name, uncheck "Use default location" and click Browse... to navigate to the location of the log4j-api module. Then click Finish on the wizard.
I downloaded and extract jmeter's source code: http://jmeter.apache.org/download_jmeter.cgi
How do I go about opening this project in IntelliJ?
I tried to 'open project' and navigated to the directory, but it doesn't seem to pickup any of the files to open the project.
Do I have to import or something?
Create a new project over existing source--you can't open a project when there's been no project set up.
IntelliJ will pop up a window with the source directories it discovers; by default they'll all be checked.
You can add the Ant build file in the "Ant Build" tool window to make Ant builds easier.
UPDATE
Since JMeter 5.2 it uses Gradle instead of ant, you can easily import the project into IntelliJ like so:
You require IntelliJ 2018.3.1 or newer.
Open the build.gradle.kts file with IntelliJ IDEA and choose Open as
Project Make sure Create separate module per source set is selected
Make sure Use default Gradle wrapper is selected
In the File already exists dialogue, choose Yes to overwrite
In the Open Project dialogue, choose Delete Existing Project and Import (if IntelliJ project already exists)
ORIGINAL
These are the steps I followed to get the JMeter source code into IntelliJ. I've included some screenshots on my blog.
Import project from Git: https://github.com/apache/jmeter.git
Select "Create project from existing sources"
Name the project
Select all source file directories
Deselect any libraries, (add them later)
Select all of the discovered modules
Select the SDK (you might need to add one if you've not used IntelliJ before)
Press Next and then Finish
Click the "Ant Build" menu in IntelliJ
Press add and add the build.xml file
Run the download_jars target
Open project settings (Ctrl+Alt+Shift+S) then add the downloaded jars to the project
Notes:
You can compile and start the GUI by executing the run_gui ant target
If there are any errors in IntelliJ when viewing files (or pressing build project) you can usually solve them by pressing alt+enter on the offending code and making the appropriate 'module' a dependency - however this shouldn't stop you developing or running things via ant.
I've also created a screencast of the above steps:
https://youtu.be/r0Z79PjEb80