facebook

Debug menu with Java appliaction not appears

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #296060 Reply

    gandalf902002
    Participant

    Hi,
    I installed MyEclipse 7.1 packaged from Genuitec and use it with myproject.
    If I click with mouse over java class and context menu appears with Debug as option but only Mueclipse projetc and Debug configuration … appears and not Java Application.
    I try to install Eclipse 3.4 “plain” and Java application appears.
    How can I configure MyEclipse to show it ??

    Thanks a lot

    #296061 Reply

    rmcvay
    Member

    Sounds like ME doesn’t recognize the project as a Java project. Does the .project file look like this?

    
    <?xml version="1.0" encoding="UTF-8"?>
    <projectDescription>
        <name>hello</name>
        <comment></comment>
        <projects>
        </projects>
        <buildSpec>
            <buildCommand>
                <name>org.eclipse.jdt.core.javabuilder</name>
                <arguments>
                </arguments>
            </buildCommand>
        </buildSpec>
        <natures>
            <nature>org.eclipse.jdt.core.javanature</nature>
        </natures>
    </projectDescription>
    

    ME will not recognize what Eclipse calls a simple “project”. It has to have some kind of recognizable nature.

    #296064 Reply

    gandalf902002
    Participant

    This is my .project file

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <projectDescription>
    <name>test</name>
    <comment></comment>
    <projects>
    </projects>
    <buildSpec>
    <buildCommand>
    <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
    <triggers>full,incremental,</triggers>
    <arguments>
    <dictionary>
    <key>LaunchConfigHandle</key>
    <value><project>/.externalToolBuilders/org.eclipse.wst.jsdt.core.javascriptValidator.launch</value>
    </dictionary>
    </arguments>
    </buildCommand>
    <buildCommand>
    <name>com.genuitec.eclipse.j2eedt.core.WebClasspathBuilder</name>
    <arguments>
    </arguments>
    </buildCommand>
    <buildCommand>
    <name>org.eclipse.jdt.core.javabuilder</name>
    <arguments>
    </arguments>
    </buildCommand>
    <buildCommand>
    <name>com.genuitec.eclipse.j2eedt.core.J2EEProjectValidator</name>
    <arguments>
    </arguments>
    </buildCommand>
    <buildCommand>
    <name>com.genuitec.eclipse.j2eedt.core.DeploymentDescriptorValidator</name>
    <arguments>
    </arguments>
    </buildCommand>
    <buildCommand>
    <name>org.eclipse.wst.validation.validationbuilder</name>
    <arguments>
    </arguments>
    </buildCommand>
    <buildCommand>
    <name>com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder</name>
    <arguments>
    </arguments>
    </buildCommand>
    </buildSpec>
    <natures>
    <nature>com.genuitec.eclipse.ast.deploy.core.deploymentnature</nature>
    <nature>com.genuitec.eclipse.j2eedt.core.webnature</nature>
    <nature>org.eclipse.jdt.core.javanature</nature>
    <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
    </natures>
    </projectDescription>

    Working on my problem:

    1) I try to use the shorcut to invoke Debug on java class ALT+Shift+D, J and It works. But I should like to have the function enabled from context menu (click on java class -> Debug as -> “Java application”)
    2) in context menu click on java Class -> Run as -> “Java application” DOES NOT appears too

    #296077 Reply

    support-joy
    Member

    gandalf902002,

    What is the type of project created?
    I am not able to reproduce this at my end. I have created a Java Project and created a HelloWorld.java class. I can right click on .java file/ application, the context menu for Run As lists java application.

    #296079 Reply

    gandalf902002
    Participant

    it’a Web project.
    Could I give you any more information to solve the problem ?
    I try to create a new web project and the context menu is OK

    (I try to install Eclipse 3.4 and use Software update to install myeclipse and with kind of install the context menu is ok with my original project)

    #296082 Reply

    support-joy
    Member

    gandalf902002,

    Let me get this right, if you create a new web application, the context menu on ‘Run As’ displays ‘Java Application’. But for some reason, your current application fails to display ‘java application’ in the Run As context menu. Can you right click on your project, Run As > Run Configurations and check if Java application is listed here? If your project is not too big, can you PM me your web project? I need to reproduce this at my end to investigate this further.

    I will recommend you to check your Run/Debug settings under Window > Preferences. Check the Launch Configurations, Perspectives, etc

    #296086 Reply

    gandalf902002
    Participant

    Hi,
    Java application is NOT present in “Debug as” and “Run as” context menu.
    My webApplication is 75mb zipped .. Can I attach this file (I do not know if is too big for you) ?

    Thanks a lot for all

    #296088 Reply

    support-joy
    Member

    gandalf902002,

    75MB zip is too big to be sent as an attachment :-). For a workaround, you can create a web project in MyEclipse and copy and paste relevant files/folders to this. You should be able to view ‘Java Application’ as part of ‘Debug As’ and ‘Run As’ context menu.

    #296093 Reply

    gandalf902002
    Participant

    Thank you for all joy I prefer install Eclipse with myeclipse plugin.
    It works as usual (contenxt menus are displayed correctly) and no Pulse for software update (I hate it 😉 )

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: Debug menu with Java appliaction not appears

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