Eclipse PDT plugin gives me trouble - java

Editor of PDT plugin jumbles the code and doesn't take responses in. I tried many things but didn't help at all. I was wondering what you guys are using to develop PHP applications for I am new to PHP. And I am a Java Programmer so I am more experience with Eclipse that is why I need to fix this issue.Below are few things I tried out
Reinstall PDT Plugin
Checked if Java editor works (it works perfectly)
I am out of solutions now and only think that I can think of is that Eclipse version is giving me trouble. I am using
Version: Indigo Release
Build id: 20110615-0604
OS : Ubuntu 11.04
PDT Version : PHP Development Tools (PDT) All-In-One SDK 3.0.0.v20110516-1100-77
I am going to include few screenshots too. The screenshots were taken when I clicked in different places of the screen. And sometimes what I type is not displaying at all. Another thing I want to mention is that I also have Aptana plugin installed and the PHP is not working properly in it too. So PDT plugin might not necessarily be the cause for it. Will removing Aptana for PHP help me?
I have asked this question on AskUbuntu at here I hope you don't mind the cross posting...

From your screenshot, it looks like you are using the PDT editor, and not the Aptana Editor.
What you need to do is to change the File Association and the Content Types to have the Aptana PHP Editor handle the PHP files in your project (you can do so from the preferences).
Also, since you have both PDT and Aptana installed, you need to make sure that your project was created using the right wizard. That is... if you want to use PDT, create the project using the PDT PHP project wizard, and if you want to use Aptana - Use Aptana PHP project wizard.
Basically, what happens behind the scenes when you create a project is a setup for the project 'nature' and 'builders' that each plugin looks at in order to function correctly. So, although you can install both on the same eclipse environment, you better of sticking to one from the start.
Note: Since you have Aptana installed, you can also change the nature after the project was created. Go to the project properties (right click the project and select properties) and then click the 'Project Natures' item. If you want Aptana, select the items that display 'PHP' and 'Web' (those items should have icons next to them. make PHP as primary.)
If you want the PDT, select the item that show 'org.eclipse.php...' (if I'm not mistaken), and make it primary.
Hope that helps.

This probably is not be the answer you are looking for, but I never liked the PDT plugin (and Aptana stopped supporting their own PHP editor several years ago, which was far better.)
For editing PHP, I switched to NetBeans. They have excellent PHP support, including refactoring, code completion with support for dynamic properties and methods, and more. Plus, you can simply download the PHP version of NetBeans and get started without much other configuration.
(I've since switched to IntelliJ IDEA because I am developing Grails apps, but it is also really awesome for PHP. However, the JetBrains products are not free.)

Related

Coding with tools only downloadable in Microsoft Store

My laptop is broken and is at the service right now so I got a borrowed laptop from school. Unfortunately we have no administrator rights on these laptops and a lot of stuff is limited by the administrator. The only way to download tools/applications is through the Microsoft Store. (It is not in s-mode or something, really restricted.) So I want to program and write projects in Java. Normally I use IntelliJ, but that was not in the MS store. I downloaded Visual Studio but am unable to download the JDK.
My question to you: Is it at all possible to create and run java projects with Microsoft Store as the only download store? (Windows 10 Enterprise 21H1)
Thanks in advance!
Tried visual studio but can not run because JDK is missing
Tried a browser IDE, but they work terrible and not really suitable for writing projects
Visual Studio Code might be an option if it works https://apps.microsoft.com/store/detail/visual-studio-code/XP9KHM4BK9FZ7Q, but your best bet would be the following:
You can use an online tool called GitHub Codespaces: https://github.com/features/codespaces
Codespaces runs a VSCode environment in your browser. You will run a java project just as you would if you where using VSCode. How to use GitHub Dev https://github.com/github/dev
Check out this link if you want to know more about advanced use of Java in a Codespace: https://docs.github.com/en/codespaces/setting-up-your-project-for-codespaces/adding-a-dev-container-configuration/setting-up-your-java-project-for-codespaces

Export a JavaFX project in eclipse to a runable jar

I need to send a project made by JavaFX SDK 16 and Java SE-15 using Eclipse to my friends, but when I try to export it, i'm getting surprised that Eclipse doesn't insert the VM arguments to the exported file :
and as you know since JavaFX SDK 10, JavaFX libraries are not anymore part of the Java SE, so we need to tell Eclipse where to find them by VM arguments, in short words, these VM arguments are really important to run my program.
I already know that I can insert those arguments while using prompt command to open it, but is there a more simple way? just by clicking on the exported file ?
Your main problem is that you are trying to do something that does not make any sense. Runnable jars are not a proper distribution format for JavaFX applications for various technical reasons. The way to go is having a look at jpackage. That's the proper way of dealing with distribution nowadays. Otherwise your are just banging your head against a wall.
Here is a good summary of all the options you have: https://stackoverflow.com/a/68823040/4262407
I have this problem 5 years ago (I use netbeans IDE, so I don't know if it works in eclipse, but I think yes), and I cant find a good way to do this.
Instead, I created one Swing application, and put all code of JavaFX inside.
You could see how I do in
this link from Oracle.

How to choose a java plugin version for Internet Explorer

I need your help, please.
I have to start an applet in Internet Explorer, but using an old version of jre.
My IE has two versions of java plugin, and I would like to enable the old jre version, but only for the web site using the applet.
So, my question is : how can I change plugin version when internet explorer start? Is it possible?
I need to have one specific shortcut (for IE), which launch the web site, with the strange applet. And so the standard IE in all others cases.
I hope my english is good enough, for a good understanding....
Thanks in advance for your help!

WindowsBuilder is not working on Eclipse

This is Anas here and I just wonder if one can share his though about windowsbuilder on eclipse. I installed it from help link through selecting SWT, GWT other plugins and all gone well but after a restart those plugins are not working. Precisely, Eclipse IDE is showing those links enabled but it takes me to interface asking to install some additional toolkits, again when I proceed, I met a repository not found error.
Hunting over web, I have tried -clean and checked my port address. Thanks for your comment!!
Well Anas,
I understood your problem so follow these simple steps to overcome this solutions
First install the Indigo[3.7.2] version Eclipse from this link:
http://download.eclipse.org/releases/indigo
And then go to eclipse--->Help---->InstallNewSoftware and paste the below link>
WindowBuilder[1.6] Pro Update Site - http://dl.google.com/eclipse/inst/d2wbpro/latest/3.7
And select WindowBuilder Specific Checkboxes and proceed accordingly.
After that if you want to do a simple example of using windowBuider
just go through this link it might be helpful for you in this regard:
http://help.eclipse.org/indigo/topic/org.eclipse.wb.doc.user/html/NewComponentsTutorial.pdf
In case still you are facing issues feel free to reach me SUNIL
Check over here for available WindowsBuilder versions:
https://www.eclipse.org/windowbuilder/download.php
Take a link, and pass it on Eclipse IDE's feature installer, which takes the URI. Aim for the version of the builder which is supported by that IDE version.
If you take the latest version of WindowsBuilder, it does not mean that the specific IDE does support it.
Best regards

eclipse with flex plugin for red5

I've just started to mess around with red5 , I can't say it was easy to get it run at the first place, but after a day on google I finally succeed.
The first thing I had to face is the poor documentation of this server. I couldn't find any good tutorials about making apps (I would pay for a good one, but still nothing) for it, but it doesn't matter since it's free.
I found this : Adobe TV . It's the best starting point I could find so far. The only thing is that I can't set up the same working enviroment as the guy has in the video. I understand it is eclipse (i have that) , and i know he is using flex plugin, but how do I get eclipse to debug mxml files as he does? (around 3.20 in the video) . I downloaded the flex plugin, but after I install it, eclipse stays exactly the same as before.
PLease note I am new to eclipse (and JAVA and flash -huhh... :D - ).
I am running Windows 7 Ultimate 32bit.
Any help would be greatly appreciated.
There is one more IDE called FDT for flex app development. They are using eclipse. Worthy to try this IDE http://fdt.powerflasher.com/ this is available linux too. This is does not support red5 by native. But you can just simply create as java project.
I prefere the Flex Development to do with flashdevelop: http://www.flashdevelop.org/
it is a very nice openen source code editor. Configuration is really easy and takes just 1 Minute. The only thing to do is to configure the path of the flex sdk. Debugging is nice and i love the code completition feature.

Categories