facebook

[Closed] VM Arguments not accepting cut-and-paste inputs

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #264799 Reply

    Russ
    Member

    One of the things we are doing is building deployment descriptors with XDoclet and running it inside the same JVM. In doing so, one must increase the memory size. This can be accomplished by Window->Perferences->Java->Installed JREs. Select a JRE and click on the edit button. In the “Edit JRE” dialogbox, add the “Default VM Arguments” through cutting and pasting the information: -Xmx640m. When you apply these changes and “Run XDoclet” on a EJB or Web project, you may get a “No Main Class definition found” dialogbox. However, once you physically type the same information into the “Default VM Arguments” textbox, everything works fine!!!!!!

    You can repeat this by just creating a simple enterprise application with a EJB and Web components. Next, add Standard EJB and WEB XDoclets tasks to their respective projects. In each project’s properties settings for XDoclet, ensure the build tab is set for JDK 1.5 and using dynameic build specifications. Next, set the Default VM Arguments as outlined from above.

    Hope this helps you guys. We really love your tool… All the guys here are raving about it!

    #264829

    Riyad Kalla
    Member

    Russ as usual very detailed post and made it simple for me to run through a setup and test on my end, thank you for that.

    Ok so the good news is that I think I did this right and it seemed to have worked for me… please have a look at these screenshots to make sure I setup everything correctly:

    Attachments:
    You must be logged in to view attached files.
    #264845

    Russ
    Member

    Yes….. I see your point. When I do it on my machine, we are okay. I can duplicate it new machine (no Eclipse or MyEclipse installed). I run through the update process, then I try it. This was the issue I spoke of in the J2EE Development forum. It was only recently that we figured out what the root issue was.

    In our case, we started from scratch. Clean install, updates of workspace. When we tried to run XDoclet without the command, we get a buffer overflow error message. Next, we cut and paste the command and this is where we get the error. I opine it has something to do with being a clean/fresh install.

    #264850

    Riyad Kalla
    Member

    Russ,
    Is there any way to get it working on your end for the machines it’s not working on? For example if you create a new workspace does it start working? (maybe a stray config issue in the old workspace?)

    #264855

    Russ
    Member

    We did get it working when we typed in the commands…… Just making note you can not cut and paste into this specific field.

    #264859

    Riyad Kalla
    Member

    you know it’s possible depending on where you copied them from, that you acidentally copied (and pasted) a non-visible char like a line break, or newline char, so when the command is output to the console by MYEclipse and run, it is actually busted, like:

    
    java.exe -Xmx640m\n
     com.myclass.blah.BlahMain
    
    #264864

    Russ
    Member

    Well, you are right……

    I tried it by adding “\n” at the end of the VM command “-Xmx60m \n” and I was able to produce the same error message……

    Interesting……When I put the information in a MS-Word document, I can duplicate the same behavior and I don’t see the “\n” I think you got it! 🙂

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: [Closed] VM Arguments not accepting cut-and-paste inputs

You must be logged in to post in the forum log in