How to open Java perspective in Eclipse mars for php? - java

I've installed Eclipse Mars for Php, now I'd like to use it to write Java, how can I install JDT (looks like the plugin that I need) to make it show Java Perspective?
I've tried both ways:
install it from Eclipse Marketplace, but I din't find JDT.
Tried to type in the URL for JDT, the closest that I could find is this one: http://www.eclipse.org/jdt/, but it says Not Found.
Any help is really appreciated!
]4

Use 'Help > Install New Software...'
Choose your main software site (http://download.eclipse.org/releases/mars for Eclipse Mars) in the 'Work with' combo.
In the resulting list choose 'Eclipse Java Development Tools' in the 'Programming Languages' section.

Related

Javacard applet beginner

I am new to javacard applet development.How many development tools are there now? Which is the simplest for beginners? As simple as possible...
Thanks in advance
There is a development kits called JCIDE, is free. After installation, can be used directly, no configuration parameters. Unfortunately, when debugging, only set one breakpoint, but normal use is enough. I feel very good, recommended to you.
Here's a ready made set of applets that you can use with standard Eclipse: https://github.com/gracebear/AppletPlayground
There are also links to other open source and free-n-easy to use components.
Normally I use Jcop, which is the a plugin of eclipse. You can install the eclipse first . And then add the JCOP plugin into it.
To starting developing an applet for Java Card :
1. Download and install Java JDK. (on Oracle website), and setup your JAVA_HOME
2. Download eclipse for Java developer in eclipse.org (newest version is Neon). Extract to use it, it's portable app.
3. Download Java Card JCDK 3.0.5 (newest) and install.
4. Install the JCDK plugin on Eclipse
Note: You can following the getting started document in JCDK 3.0.5 how to setup environment and running or compiling the applet.

Can I install the wrong version of the software in Eclipse via the Install Software update site?

I am not sure what version of Eclipse I have installed and I was told to work on Java projects I need to add the JDT. It says I can get this by going to the Install New Software window and entering the update site, http://download.eclipse.org/releases/galileo/ and selecting Programming Languages > JDT.
My question is, what if I'm not using Galileo? I have found the JDT listed where it is supposed to as shown in the screen shot. Will it allow me to install incompatible software?
In Flash Builder you have to go to About Flash Builder > click the Eclipse icon along the bottom (hover over the icon and the tool tip should say Eclipse.org). A window should open and in the feature name column look for, "Eclipse Platform" and that row will show the version number. It shows, "3.7.1.r37x_v2011. So now we know the version.
I proceeded to try and install JDT and it said a newer version was installed.

How Do I Add Java To My Eclipse for C/C++ [duplicate]

I have the eclipse CDT installed, and I would like to install Java development functionality (JDT) on top of my CDT installation. I've been Googling from an hour but I can't figure out how to do this.
What plugin do I need to install? What update site do I need to use?
All versions of Eclipse have a standard base, then a specific set of plugins, depending on the version. All you have to do is go to the Help > Install New Software menu, select the Eclipse update site (e.g. "Galileo - http://download.eclipse.org/releases/galileo"), and under the Programming Languages section, select Eclipse Java Development Tools.
If you don't see the Java Development Tools in the list, click on the "already installed" link on the install page--you may already have the Java tools installed.
Remember to write http:// before the download.eclipse..... if you don't put that it won't work
For Eclipse 2020-06 the weakest precondition seems to be
1.) JDK 11
2.) eclipse.ini has top entries
-vm
<jdk-11/jre-11 path>/bin
3.) JDT appears in "Install New Software" repository http://download.eclipse.org/releases/2020-06 as "Eclipse Java Development Tools"
NOTE: Installation of Java 11 is not required, downloading/extracting ZIP File is sufficient, e.g. if you prefer to continue development with Java 8
Update for Eclipse Release 2021-3
Here, with the JDT-Release JDK 11 or later is already installed
Choose Menu Help->Install New Software,
Select Work With: "2021-03 - http://download.eclipse.org/releases/2021-03"
Filter "Development Tools"
Select "C/C++ Development Tools SDK"
Complete Installation with Next ... Restart Eclipse

How can I get the "Eclipse >Generate>Jaxb classes" option back?

I recently had to migrate to a new machine and re-installed Eclipse.
At the moment, I need to generate JAXB classes from an xsd. I cannot quite remember what I installed, but in my old Eclipse I had the option -rightclick-generate-jaxb classes.
Who knows what I have to install/plug-in to get it back?
I was looking at installing Dali, which seems like it could be right, but I am pretty sure I did not install Dali last time. I also included the jaxb jars in my build path, as last time, so that should be ok.
I am using Eclipse 3.6 and Java SE 1.6.
If you don't have JavaEE:
Help>>Install New Software>>Works with:--All Available Sites--
Search for JAXB
Then select Web, XML, Java EE and OSGi Enterprise Development and install.
After you restart Eclipse you should see the generate option.
A simple fix for this problem - rather than worrying about adding additional plugins or installs - is to install Eclipse IDE for Java EE Developers rather than Eclipse Classic (both to be found here). This comes with the JAXB support and therefore provides the >Generate>Jaxb classes option.
The above methods may work, but actually the options comes from a plugin called Web Tools Platform which comes along with Eclipse IDE for Java EE Developers.
Don't worry about reinstalling eclipse or try out other methods. No matter what eclipse you use simply install this plugin by following the below procedure. You will get the "JAXB Classes" Option on click of "Generate" button.
Help --> Install New Software --> Add
Name : Web Tools Platform
Location : http://download.eclipse.org/webtools/repository/helios
Hint : In case if you are using a different version replace helios with your eclipse version name. I used it as luna. So the path looks like http://download.eclipse.org/webtools/repository/luna
And restart eclipse. Now you will have that option.
(I'm using IBM's Eclipse-based RAD, so I don't know whether this applies to raw Eclipse.)
Have a look at your project Facets (select project, rightClick->Properties, Project Facets) I have the option of selecting JAX/RS.
later: I've checked my plugins and by default I get Dali installed and it does contain some JAX/B-related stuff. I suspect you do need this.
After a lot of research here is what I have done to fix the issue.
Windows> Preferences> Java> InstalledJREs...make sure to point your jre to the jdk directory. I was pointing to JRE and as soon as I changed it to JDK, it started working.
Hope this will help you guys.
I installed this plugin
http://java.net/downloads/jaxb-workshop/IDE%20plugins/jaxbw-plugin.zip
i.e. unzip and copy to eclipse/plugin folder.
It adds an entry "JAXB 2.1 > Run XJC" to the context menu of *.xsd files.
So the menu's not really in the proper place, but it works.
In order to support the standard JAXB APIs in the IntelliJ IDEA Community Edition environment, you need to make some adjustments. One way to implement JAXB technology is to connect the xjc.exe utility included in the JDK toolkit. This utility can be launched at the command prompt, but it is advisable to configure the context menu:
In the Settings window, select Tools | External Tools and press the
"+" button.
In the Edit Toolbox dialog enter:
the name (Name :) of the new Generate JAXB Classes command;
the path to the xjc.exe utility (Program :), which should be selected on the particular computer in the file selection dialog(button "..." )`
parameters (Parameters :) which in our case will be as follows:
$ p $ FileFQPackage $ $ SourcepathEntry $ $ FilePath $
In order for the created command to work correctly, the schema file should be placed in a new package, which will then appear with the generated files.
In the settings window, Tools | External Tools - "Your command name" will appear.
All you need is to open your schema file and run the command.
you may download JAXB Eclipse Plug-In
jaxb eclipse plugin
I had the same issue while attempting to generate java classes from xsd file.
My installed Eclipse is:
Eclipse Java EE IDE for Web Developers
Version: Oxygen.3a Release (4.7.3a)
Build id: 20180405-1200
I solved it changing the workspace default JRE from JRE to JDK in Project Properties / Java Build Path / Libraries
This link describes how the problem arises:
https://www.youtube.com/watch?v=zgblFjA-5Ks
This link explains how to change the default JRE.
https://www.zkoss.org/wiki/Setting_Default_JRE_In_Eclipse
Hope this helps
If you're using Eclipse EE all you have to do is switch your running environment from JRE to JDK and that should fix it. Windows -> Preference -> Java -> Installed JRE -> Add - > (Choose Standard VM) Then Select JDK!
Then Execution Environments under Installed JRE select your JavaSE-1.8 or your version and also select JDK!

Eclipse add plugin development

I have installed Eclipse Helios. how can i add to it plug-in development functionallity (to be able to create OSGi bundles)
You need to install the Plugin Perspective
Usually you can try to get it via:
Help->Install New Software
"Work With:" -> "--All Available Sites--"
type "Plug-in" into the filter box
Open "General Purpose Tools" (may be called differently in your eclipse version!)
install "Eclipse Plug-in Development Environment"
restart!
Please find the below steps to Install PDE(Plug-in Development Environment) plugin in Eclipse:
Go to Help -> Eclipse Matketplace
Type PDE in find textbox to search
You can see PDE Plus icon
Install it
http://www.vogella.de/articles/OSGi/article.html gives a pretty detailed overview on eclipse & OSGi.
I think the best and easiest way is to download another package that already have PDE installed:
http://www.eclipse.org/downloads/
chose "Eclipse for RCP and RAP Developers" or "Eclipse Modeling Tools", both are OK.

Categories