How to import and configure konakart shopping-cart source code in Eclipse?
Not only GWT project for any java project the process is the same .
Here you can find a Documentation by Eclipse to import an existing project in to your workspace
For attaching source in Eclipse :Is there an easy way to attach source in Eclipse?
To do the task first you have to download the *src.zip * of the corresponding project.
In KonaKart there is an ANT task that you can run to create the Eclipse project:
Go to the custom directory under your installation, then:
C:\Program Files\KonaKart\custom>bin\kkant -p
Buildfile: build.xml
Main targets:
make_eclipse_project Create an Eclipse Project for Developing the Struts-2 Storefront
So you would enter:
C:\Program Files\KonaKart\custom>bin\kkant make_eclipse_project
Related
I've read this and this. They both couldn't help me with this issue. In this link, there seems to be nothing in the repository and in this link, I followed every single step it says, but still couldn't get CZT plugin for my Eclipse IDE.
How can I install CZT plugin for Eclipse IDE?
Note: My operating system is Ubuntu 16.04 LTS. It seems that there is a version of Eclipse IDE existed in .exe format with CZT plugin already enabled on it. But since my operating system does not support .exe files, I can not fix this problem this way.
1- Download this .jar file and this .jar file both.
2- Put this two .jar files into your plugins folder of Eclipse.
3- Restart your Eclipse IDE.
Now you have CZT plugin installed on your Eclipse IDE.
But for creating a new CZT project do the following steps:
1- Go to File - > New - > Project - > CZT - > CZT project
2- Specify the name of your project then click finish.
3- Right click on your project and go to New - > Z Specification
4- Specify the name of file and the directory of it and then Click
finish.
Now you can write your Z Specification in this new file.
Here is a PDF file that clearly describes what to do.
How can I install the JGraphT distribution offered in this link:
http://sourceforge.net/projects/jgrapht/files/
I do not understand the tree structure of files and its relation with the structure of a project in Eclipse. I would like to run the java code listed in:
http://jgrapht.org/visualizations.html
but I am not able to import the proyect to Eclipse. For example, that .java file is under
jgrapht-0.9.0\source\jgrapht-demo\src\main\java\org\jgrapht\demo
Follow these steps:
1) download the .zip file on that page
2) create a new java project in eclipse
3) unzip .zip file
4) right click on the 'src' folder and select 'import...' from file system
5) select 'src->org' under the unzip files
6) you will need 'jgraph' to run any of the examples
You can import the jars as internal/external jars into your project.
For example, right click on the project -> Build Path -> Configure Build Path
Then go to libraries and 'Add Jars' or 'Add External Jars' (if your jars are located outside the project space), you should now be able to import classes associated with JGraphT.
This works for me: Install JGraphT in Eclipse. I just downloaded jgrapht-1.0.1.zip and I use Eclipse Oxygen (4.7.1). The link above describes the steps in detail. Basically, do the following:
Download jgrapht-x.y.z.zip and extract it.
In Eclipse, create a new Java project.
Add the jars of the extracted jgrapht libraries to your Eclipse user libraries.
Add the just-added user libraries to your project's Build Path as libraries.
Now your project can make use of jgrapht.
I want to use Eclipse to develop JavaFX. I am trying to import a JavaFX 2 application created in Netbeans 7.2 into Eclipse. But Javafx 2 uses its own Ant build syntax. So when I try to import this Ant project into Eclipse I get the following error:
Specified build file does not contain a javac task
How do I solve this error? I know there are JavaFX plugins for Eclipse, but I haven't been able to find any that solves my problem. Or do I need to try something else?
Open http://efxclipse.org/install.html, scroll down to "In Eclipse 4.2 for the adventurous".
After you have configured properly by setting the path for JavaFX SDK from Window->Preferences, create a new JavaFX project (File->New->Other->JavaFX->JavaFX Project)
Right click on your projet->Import->File System->Select the top level of your NetBeans created project folder-> Select src folder,build.xml, manifest.mf and any other FXML files you wish to import.
For a distributable standalone executable JAR, refer to http://www.efxclipse.org/tut2.html. If you face any problem in Step 11- Click on the "ant build.xml and run" Link in the Build section of the editor, then goto Window->Preferences->Ant->Runtime->Global Entries->Add External JAR->(Browse to your JDK lib folder) Add tools.jar.
If your Build still fails and shows this error ->
BUILD FAILED C:\Workspace\eclipseFx\AppOne\build\build.xml:82:
Problem: failed to create task or type
javafx:com.sun.javafx.tools.ant:resources
It means ${java.home} is pointing to the JRE and can access jfxrt.jar but fails to access ant-javafx.jar. Find the absolute path for ant-javafx.jar in your JDK and edit that line in build.xml and it should build fine. This error has been fixed in the Nightly Build.
P.S. - You can also create JavaFX RCP applications now. Eclipse 4 Applications can use JavaFX as the rendering technology instead of SWT.
Well I have my source code that i have done using the IDE netbeans. Now I wanted to move this java application to a web application. For that I need to create a jar file from my source code, so that I could invoke it in ma jsp file.
I have not been able to find any option in netbeans or any other way to create a .jar file of this source code.
Could someone tell me how to do that.
Thanks
Create a Java archive (.jar) file using NetBeans as follows:
Right-click on the Project name
Select Properties
Click Packaging
Check Build JAR after Compiling
Check Compress JAR File
Click OK to accept changes
Right-click on a Project name
Select Build or Clean and Build
Clean and Build will first delete build artifacts (such as .class files), whereas Build will retain any existing .class files, creating new versions necessary. To elucidate, imagine a project with two classes, A and B.
When built the first time, the IDE creates A.class and B.class. Now you delete B.java but don't clear out B.class. Executing Build should leave B.class in the build directory, and bundle it into the JAR. Selecting Clean and Build will delete B.class. Since B.java was deleted, no longer will B.class be bundled.
The JAR file is built. To view it inside NetBeans:
Click the Files tab
Expand Project name >> dist
Ensure files aren't being excluded when building the JAR file.
Please do right click on the project and go to properties.
Then go to Build and Packaging.
You can see the JAR file location that is produced by defualt setting of netbean in the dist directory.
I also tried to make an executable jar file that I could run with the following command:
java -jar <jarfile>
After some searching I found the following link:
Packaging and Deploying Desktop Java Applications
I set the project's main class:
Right-click the project's node and choose Properties
Select the Run panel and enter the main class in the Main Class field
Click OK to close the Project Properties dialog box
Clean and build project
Then in the fodler dist the newly created jar should be executable with the command I mentioned above.
Now (2020) NetBeans 11 does it automatically with the "Build" command (right click on the project's name and choose "Build")
How can I import existing Blackberry projects into eclipse?
I found this development guide for BlackBerry Eclipse users, but I didn't find any .jdw file:
Import a BlackBerry application project from an existing workspace
When I make new project and copy all the folder src and res I obtain an error that there is a file missing and there is no specification of type of the name of this file
Error: Cannot run program "jar": CreateProcess error=2.
Can any one help me to run this project?
Click File-->New-->Blackberry Project-->Create project form existing resource --> then browse to your project folder and click finish.
Use this BlackBerry Java Plug-in for Eclipse guide: Add a .jar file dependency