分类: Eclipse Coding

  • Very unreliable on Debian Linux!

    Very unreliable on Debian Linux!

    Hi all,
    I’ve been looking for a supported version of Eclipse – which is my primary development environment – and, in particular, a java IDE with a reliable GUI designer. I use Eclipse for all my server side work, but find that WindowBuilder is very flakey – often hangs and the code easily gets unglued from the screen design to the point where WindowBuilder is simply unable to make sense of it.

    I’ve been using NetBeans for GUI Application development and the Matisse screen designer is wonderful – very solid and functional – but the rest of NetBeans is not really up to production standard for serious server-side work – hence, I have been using two IDEs which is pretty cumbersome. I took a look at MyEclipse and saw that it does support Matisse, so I decided to give it a try.

    Installation on my Debian 10 laptop went well enough and the result looks good. I got it connected up to CloudForge and AWS, and managed to download my server-side projects and build them – all worked fine. Then I tried to build a simple application with a GUI and it all fell apart. Matisse simply does not work – I create an Application window in Matisse and it creates the form file, but does not create the corresponding java file – then you are dead in the water! I repeated this several times – never works for me. Reluctantly, I decided to try WindowBuilder – perhaps that is more reliable than the version that ships in standard Eclipse? No, it’s not – cascades of errors in the error log and I can’t get as far as I usually do in free Eclipse!

    I’ve uninstalled it and reinstalled it – tried building a GUI before I added any non-standard components like the AWS and Drools toolkits – still no luck. Currently it’s completely uninstalled – I don’t have the time to try any more experiements. Am I unique in this? Is anyone else successfully using MyEclipse to build GUI applications (preferrably with Matisse) on a Debian platform? MyEclipse looks good and certainly has some of the rough edges of free Eclipse knocked off, but at the moment it is pointless for me – I would be paying money just for a slightly prettier version of the freebie…..

    ——

    With WindowBuilder on the scene, it’s been a long time since we updated our Matisse integration. In fact, we even removed it from MyEclipse as we were no longer maintaining it, but added it back as an optional component because many users were still finding it useful.

    As far as WindowBuilder is concerned, you should have had the same experience that you do in Eclipse – we do not make any modifications to the WindowBuilder tooling as most of our users are satisfied with the stock experience. If you could share your error log from [workspace_location]/.metadata/.log, we will be able to look how you had a worse experience than you do in stock Eclipse.

    Coming to your final question about whether MyEclipse is worth it – if you are looking just for a GUI tool, like Matisse or WindowBuilder, I would say no, it isn’t. If you are looking for a better overall dev experience in Eclipse, with performance and usability fixes, with support for Spring, Maven, and a vast range of frameworks (including support for modern frameworks like Angular and Vue) as well, MyEclipse should be your tool of choice.

    I hope this helps, we’ll be happy to answer any further questions you may have.

  • [Windows] “CodeMix Engine is starting up” displayed indefinitely

     

    If you see the, “CodeMix Engine is starting up”, message stay visible at the top of your editor for more than one minute, you may be affected by a path-length bug that affects Windows systems, specific to the 2019.8.21 release. This status will also be seen if you hover over the CodeMix status icon at the bottom left of your workbench.

    This issue is caused by having Eclipse installed at a path that is too deep, and we are working on releasing a CodeMix update to fix this issue ASAP. If you are affected by this problem, please follow these steps to fix it immediately.

    1) Download the fix. If you are using a 64-bit version of Eclipse, download the 64-bit fix, else get the 32-bit fix.
    Note: Eclipse Photon and more recent versions of Eclipse are 64-bit only. Earlier versions may be 64-bit or 32-bit.
    2) Ensure you have the latest CodeMix update by going to Help > Check for Updates and applying any CodeMix updates, if found.
    3) Shut down Eclipse.
    4) Unzip the fix you downloaded into the plugins folder within your Eclipse installation. There are two files in this fix and they should overwrite files of the same name already in that folder.
    5) Start Eclipse, CodeMix should now function as before.

    If you still experience issues, please hit us up on Live Chat, at Help > CodeMix > Live Chat and we should be able to get you going ASAP.

  • Change Content Assist Behavior (on keystroke or just control+space)

    CodeMix lets you tailor how content-assist (IntelliSense) works when you are editing files. These are customized via settings and are called Quick Suggestions.

    If you don’t like CodeMix editor’s as-you-type Content Assist, here’s a way you can quickly disable it. By doing this you can still invoke Content Assist by pressing CTRL + SPACE.

    1. Go to Preferences > CodeMix > Workspace Settings page.
    2. Click the settings.json link at the bottom of the page. It will open a json file.
    3. Add the following lines under settings like this :

    4. Save the file.

    And that’s it! It will disable content assist on keystroke.

    Additionally there’s a feature called “Parameter Hints” which helps filling in parameters. This can also be turned off by just adding "editor.parameterHints.enabled": false in the same settings area. Like this:

  • Troubleshooting CodeMix Performance Issues

     

    If you’re experiencing sluggish typing, delays during content assist and navigation, or the IDE hanging and going into a non responsive state for extended periods of time, please read on for possible solutions:

    1) Disable the TypeScript Hero extension

    Go to Help > CodeMix Extensions, and find the TypeScript Hero extension in the list of extensions in the right column. Simply uncheck the box next to the extension to disable it. Reload the CodeMix engine using the icon at the top of the extension list, or restart the IDE post this change to ensure it takes effect.

    While newer installations of CodeMix will not install this extension by default, earlier installations may still have this installed and active. This extension’s performance has been shown to degrade with time, and result in sever performance problems as described above.

    2) Contact the CodeMix team on Live Chat

    Go to Help > CodeMix > Live Chat to start a chat with one of our engineers when you are experiencing performance issues. With the additional diagnostic tools available as part of Live Chat, we would be able to better identify the source of your issues.

    Developing with CodeMix is normally a highly productive experience, if you experience any slowdowns, please hit us up here or let us know in the forums, we’ll be happy to assist.

  • Maven Console no longer shows output

     

    I had doing been maven builds/installs throughout the morning when the maven console suddenly stopped displaying any output. The build/install completes successfully when appropriate, however, I receive no feedback for when a maven build or install fails. I have reset, closed and re-opened the Java Enterprise perspective, closed/re-opened MEB, and even re-booted my Win 10 machine. No luck. Other consoles display output, this only affects the maven console.

    I am using:
    MyEclipse Enterprise Workbench
    Version: 2017 Stable 1.0
    Build id: 15.0.0-20170329
    Apache Maven 3.2.2

    ——

    Sorry that you are seeing this issue.

    1. Can you please clarify if this problem is specific to building/installing one particular maven project or does it happen with all the maven projects in that workspace?

    2. Please switch to a new workspace and check if the problem persists there as well. If yes, then please share with us the workspace log file by clicking on the icon for ‘Export Log’ in the Error Log view, save it as text file and attach it here to help us check for any errors/exceptions logged.

    3. Is there a specific reason why you are working with older version of MyEclipse 2017 Stable? Stable 2.0 is the latest in that stream and I suggest you update to 2.0 from Help > Check for Updates.

  • MyEclipse Server : There are no resources that can be added or removed…

     

     

    I’m running Win 10, MyEclipse Version: CI 2018.8.0.
    I’m unable to add or remove any deployments:
    “There are no resources that can be added or removed from the server”

    I’ve googled and found instructions for updating Java in the Project Facets, but that didn’t work.

    Thanks!

    ——

    Sorry that you are seeing this issue. It could be an issue with incompatible web application version with the targeted server.

    Can you please give us some more details?

    1. Is the project a maven based web project? Please share with us the Java and Dynamic Web Module versions of the project by right clicking on the project > Properties > Project Facets.

    2. Is the project created newly in MyEclipse 2018 or you are working with an existing project?

    3. If you are trying to deploy a JavaEE 8 project to MyEclipse Tomcat 8.5, then the project will not show up for deployment as Tomcat 8.5 supports only till JavaEE 7. If you are working with a different server, then please share with us more details about the server and its version to help us investigate further.

    ——

    Hi Swapna. The issue is resolved. Below are the steps I took to be able to deploy.

    1. Is the project a maven based web project?

    YES. Please share with us the Java and Dynamic Web Module versions of the project by right clicking on the project > Properties > Project Facets. Dynamic Web Module: 4.0; Java: 1.8

    2. Is the project created newly in MyEclipse 2018 or you are working with an existing project?

    Newly created project in Eclipse 2018

    3. If you are trying to deploy a JavaEE 8 project to Tomcat 8.5, then the project will not show up for deployment as Tomcat 8.5 supports only till JavaEE 7. If you are working with a different server, then please share with us more details about the server and its version to help us investigate further.

    Yes, I was trying to deploy a JavaEE8 to Tomcat 8.5. However I didn’t realize Tomcat was a default in this version. I am using Wildfly app. Server. I decided to switch Java EE version to JavaEE 6 –Web 3.0 and the Java version and JSTL version set automatically. After this change I was able to deploy!

    ——

    Thank you for the details. Tomcat 9 supports JavaEE 8. I have filed a report with the dev team to update our embedded Tomcat server version to 9.

    We are also adding support for newer versions of WildFly (WildFly 13) which support JavaEE 8 in our next update. We will keep you posted when the update is out.

    Please let us know if you see any other issues.

    ——

    Our next update CI 2018.9.0 is out and it adds connectors for latest WildFly versions (12 and 13) which support JavaEE 8 applications.

    Please update from Help > Check for Updates and let us know if you see any issues.

  • Stop deploy empty directories/packages in Maven project

    Hello, there.

    Unfortunately, I have a few empty directories/packages within my Maven project. However, I’d like to stop deploying then when using MyEclipse deployment feature. Is it possible?

    If I run maven command from the command line, empty directories/packages are not deployed.

    Thanks in advance.

    ——

    The deployment of modules can be configured from the project’s Deployment Assembly page (right click on the project > Properties > Deployment > Deployment Assembly). The only workaround for your scenario for now is to remove the directories/packages of the Maven project which you do not want to include for deployment from the Deployment Assembly page. We do not really recommend this technique.

    Can you please elaborate what are ’empty packages’? Are they java packages?

  • myeclipse2018右下角出现 obtain MyEclipse RSS

    myeclipse2018右下角出现 obtain MyEclipse RSS

  • The array is failing to display the output in java

    import java.lang.*;
    import java.util.Scanner;
    
    class Casio
    {
    	String abc[];
    	Scanner j = new Scanner(System.in);
    	
    	public Casio(int x)
    	{
    		System.out.println("IM IN DEFAULT CONSTRUCTOR");
    		String abc[] = new String[x];
    		
    		for(int i=0;i<x;i++)
    		{
    			System.out.println("ENTER THE NAME OF FRIEND "+(i+1));
    			abc[i]= j.nextLine();
    		}
    		
    	}
    	
    	public void show(int q)
    	{
    		for(int ji=0;ji<q;ji++)
    		{
    			System.out.println("THE NAMES ARE : "+(abc[ji]));//<-- Error at Line number 27
    		}
    	}
    
    }
    
    public class mycode
    {
    	public static void main(String args [])
    	{
    		int n,q;
    		Scanner s = new Scanner(System.in);
    		System.out.println("ENTER INITIALIZATION VALUE");
    		n = s.nextInt();
    		q=n;
    		Casio obj = new Casio(n); 
    		obj.show(q);//<-- Error at  line number 43
    	}
    }

    THE OUTPUT I GET IS:

    Exception in thread “main” java.lang.NullPointerException
    at clg.Casio.show(mycode.java:27)
    at clg.mycode.main(mycode.java:43)

    What I have tried:

    When i execute the program . It takes input but it fails to show output. I am trying to take input from array and display output by method calling. please help me. Thank you

     

    ——

     

    The Casio constructor creates a local array called “abc” which “hides” the class level version. As a result, the class level version never gets any values assigned to it, or indeed any space for elements.
    Change this line:

    String abc[] = new String[x];

    To this:

    abc = new String[x];

    And try again.

    Seriously, you would have found this very, very quickly if you had used the debugger … it should be your first port of call when you have runtime problems.

  • How to receive proper response on posting json form data to PHP server from java eclipse?

    I am posting json data to the server but on getting response it should be like this

    {"id":65,"check":1,"date":"08-Jan-19"}

    instead i am getting this

    {"id":"65check=1","check":null,"date":"08-Jan-19"}

    What I have tried:

    This is the code on button click i send json form data to server but in response the id value gets attached to check value, how to get proper response.

    Attendance_TimeCheck = "1";
                users_identify = "65";
                try {
                   URL urlForPostRequest = new URL("http://xenzet.com/ds/getrec.php");
    
                    System.out.println("Instantiated new URL: " + urlForPostRequest);
                    final long id = Long.valueOf(users_identify);
                    HttpURLConnection conection = (HttpURLConnection) urlForPostRequest.openConnection();
                    conection.setDoOutput(true);
                    conection.setRequestMethod("POST");
                    conection.setRequestProperty("User-Agent", "Mozilla/5.0");
                    conection.getOutputStream().write(("id="+id).getBytes(StandardCharsets.UTF_8));
                    conection.getOutputStream().write(("check="+Attendance_TimeCheck).getBytes(StandardCharsets.UTF_8));
                    conection.connect();
    
                    BufferedInputStream bis = new BufferedInputStream(conection.getInputStream());
                    ByteArrayOutputStream bos = new ByteArrayOutputStream();
                    int resultBuffer = bis.read();
                    while (resultBuffer != -1) {
                        bos.write((byte) resultBuffer);
                        resultBuffer = bis.read();
                    }
                    String result1 = bos.toString();
                    System.out.println(result1);
                } catch (Exception ex) {
                    ex.printStackTrace();
                }
    

    it will be really helpful if you explain how can i post multiple values in stream is really being done.