- This topic has 8 replies, 3 voices, and was last updated 15 years, 8 months ago by gandalf902002.
-
AuthorPosts
-
gandalf902002ParticipantHi,
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
rmcvayMemberSounds 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.
gandalf902002ParticipantThis 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
support-joyMembergandalf902002,
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.
gandalf902002Participantit’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)
support-joyMembergandalf902002,
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
gandalf902002ParticipantHi,
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
support-joyMembergandalf902002,
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.
gandalf902002ParticipantThank 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 😉 ) -
AuthorPosts