For creating new projects,
I'd like to copy "the Java project" or "the TypeScript project" in the terminal of Eclipse Che (for example, use scripting), and make them indicate on Eclipse Che as a new project.
In such case, what kind of procedure should be performed?
You can git clone in the terminal in /projects. Such a project will be marked as Blank project type in Che. You can change project type afterwards.
Related
I'm working at the moment on an JSF Project project. Everything is working fine. Creating .war-file, deploying it.
What I actually want is, to create a executable JAR-file for a single Class. In this Class I have a Main-method that sends an email after executing it.
I the past I have worked with Eclipse. And that was very easy.
Now I am working with Netbeans. I have red a lot of posts with the information to clean and build the project. Next to that checking the .dist folder for the JAR-files.
I have either the .dist folder, or any JAR-files in my Project folder for that correlate file.
How can I easily create that JAR-file in Netbeans?
Assuming you are using a native NetBeans project rather than Maven:
The build artefact of a project is defined by it's project type. A JSB/Web project is always build into a WAR file.
If there is one class in your project that you want to put into a JAR file, the clean solution would be to create a new "Java" project with that class (as your class clearly has no dependencies to your Web Application this should work).
For such a project NetBeans will automatically create a runnable JAR file if you configure the main method.
In your JSF project you can simply include that project as a library. If you enable "Build projects on classpath", the jar will automatically be build when you build the web application.
Another approach would be to customize the Ant script NetBeans uses internally and add a target that builds your executable JAR file from that single class.
Details on how to customize the IDE generated Ant script can be found in the manual:
https://docs.oracle.com/netbeans/nb82/netbeans/NBDAG/create_japps.htm#CHDDAHEB
I'm a totally blind developer who is looking at Eclipse Che. While I'm able to create a project the web interface is mostly inaccessible, I can not run an app, view console output, etc. Is there a way to access an Eclipse Che server through a standard desktop install of Eclipse?
You can actually use the Eclipse Che workspaces with a desktop editor/IDE. There are instructions on setting that up in the docs: https://eclipse-che.readme.io/docs/desktop-ide-mounting
Personally I like the mount-and-sync option for times when I don't use the Che browser IDE.
I'm using Intellij Idea 15.0.3. I tried to use it to develop a MEAN stack application.
I first File -> New -> Project -> Empty Project to create an empty project. Then in Intellij Idea's terminal I type npm init -y, a package.json is generated. However, when I tried to edit this generated package.json, a window pops up, saying: These files do not belong to the project, and asks me if I want to edit it anyway.
Also, after I edited the package.json, I run npm install in the terminal, a new directory node_modules is generated, but it's not shown in the Intellij Idea.
How can I add package.json and node_modules into project? Do I have to manually created file or folder through Intellij Idea project UI and give up using its terminal?
You need to create a new project from existing source so..
File->New Project - Select HTML5/Javascript application then select one of the options at the bottom with "Existing Sources" at the end of it, you then just specify the folder that it's already and in and you should be good to go.
I have the source from an Eclipse project, and I need to import all of the build settings as well as the source into a new project so I can make some changes. The trouble is, when I go to build the project, Eclipse is calling the internal builder and NOT calling the Makefile from the previous project (which I have imported). The makefile contains some values in #define statements that need to be passed in on the command line.
When I go to change these options in Eclipse (by right clicking on the project and going down to "Properties" and then examining the "C/C++ Build" tab) they are grayed out!
If someone could help me out I'd greatly appreciate it.
Thanks all!
There is a folder called ".settings" under your project, copy this (and everything under it) to your new project, this is where all of the settings are stored. To see the folder, you may need to use the view menu (upside down triangle) in the Package or Project Explorer and remove the filter on the ".resources". For Package Explorer select the "Filters", in Project Explorer use "Customize View"
I can't build my project.
I created a new CDT project in Eclipse Helios and told it to use existing source and makefile -- both, of which, appear correctly in the Package and Project views. The "Project" menu has both "Build All" and "Build Project" grayed-out, however, so it's impossible to build the project. "Build Automatically" is unchecked. During project creation, I told the wizard to use the Linux gcc(1) toolchain. I've been unable to find anything under Project->Properties or Window->Preferences that enables the "Build Project" feature. The Window->Preferences->Build display shows only one tab labeled "Error Parsers".
How can I enable the "Build Project" command?
When you uncheck the
Project :: Build Automatically
button, then it will show you the option to
Project :: Build All
This may not be related to your issue if you're using a custom toolchain....
My experience with eclipse is that it sometimes doesn't quite grok the context of the file in the current editor. Have you tried right-clicking the project and selecting build there? Make sure you choose the actual project and not a source file. Also, make sure your source file is recently saved.
Usually, after I use the method above then the correct "Run As" and "Build" options will appear regardless of the current active editor file. I have this issue with Java, JUnit, C/C++, etc with Helios on Linux.
I've discovered the cause of my problem: selecting the wrong "New Project" wizard. I selected the "Makefile Project with Existing Code" wizard because the source and makefile already existed. I should have selected the "C Project" wizard and told it not to create a makefile. The result of doing the latter is that the "Build Project" entry of the "Project" menu is not grayed-out.
Apparently, the "Makefile Project with Existing code" is a generic wizard rather than one specific to C/C++ projects.