facebook

–launcher.openFile doesn't work as it does in Eclipse

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #504064 Reply

    Eric Lentz
    Participant

    When using Eclipse I was able to open files from the command line using the eclipse program and –launcher.openFile with the full path of the file, like this:

    /opt/eclipsemars/eclipse -name Eclipse –launcher.openFile /some/full/path/file.java

    (I don’t know if “-name Eclipse” was actually necessary?)

    There are a few places where I’ve seen this documented:

    https://wiki.eclipse.org/Eclipse/OpenFileFeature
    http://insights.sigasi.com/tech/make-eclipse-open-files-command-line.html
    http://aniefer.blogspot.com/2010/05/opening-files-in-eclipse-from-command.html

    I could do it with Eclipse, my I cannot do it with MyEclipse.

    I’d really like to be able to open files from the command line as I want to link with another application that allows me to organize my work in a more efficient manner than can be done in MyEclipse.

    — Environment —

    *** Date:
    Tuesday, November 22, 2016 8:13:52 AM EST

    *** System properties:
    OS=Linux
    OS version=3.13.0
    OS arch=amd64
    Profile arch=x86_64
    Window system=gtk
    Java version=1.8.0_66
    Workspace=file:/home/edl/workspaces/signetwkspc/
    VM Args=-Xmx1024m
    -XX:ReservedCodeCacheSize=64m
    -Dosgi.nls.warnings=ignore
    -jar
    /opt/myeclipse2016//plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar

    *** Subscription information
    Product Id: E3MB (MyEclipse Blue Subscription)
    License version: 3.0
    Full Maintenance Included
    Subscription expiration date (YYYYMMDD): 20170423
    Number of users: 1

    *** Eclipse details:
    MyEclipse Enterprise Workbench

    Version: 2016 Stable 1.0
    Build id: 14.0.0-20160624

    com.genuitec.myeclipse.blue.feature – 14.0.0.me201607130633
    com.genuitec.myeclipse.database – 14.0.0.me201607130633
    com.genuitec.myeclipse.db2 – 14.0.0.me201607130633
    com.genuitec.myeclipse.desktop – 14.0.0.me201607130633
    com.genuitec.myeclipse.enterprise.workbench – 14.0.0.me201607130633
    com.genuitec.myeclipse.icefaces.feature – 14.0.0.me201607130633
    com.genuitec.myeclipse.imageeditor – 14.0.0.me201607130633
    com.genuitec.myeclipse.jsf – 14.0.0.me201607130633
    com.genuitec.myeclipse.maven – 14.0.0.me201607130633
    com.genuitec.myeclipse.persistence – 14.0.0.me201607130633
    com.genuitec.myeclipse.reports – 14.0.0.me201607130633
    com.genuitec.myeclipse.struts – 14.0.0.me201607130633
    com.genuitec.myeclipse.uml2 – 14.0.0.me201607130633
    com.genuitec.myeclipse.visualvm – 14.0.0.me201607130633
    com.genuitec.myeclipse.ws – 14.0.0.me201607130633
    com.genuitec.myeclipse.ws.blue – 14.0.0.me201607130633
    com.skyway.myeclipseforspring.feature – 14.0.0.me201607130633
    org.eclipse.birt – 4.5.0.me201607130633
    org.eclipse.datatools.connectivity.feature – 1.12.0.me201607130633
    org.eclipse.datatools.enablement.feature – 1.12.0.me201607130633
    org.eclipse.datatools.modelbase.feature – 1.12.0.v201406061321-7707GCcNBHLDaKTEcRi
    org.eclipse.datatools.sqldevtools.feature – 1.12.0.me201607130633
    org.eclipse.emf – 2.11.1.v20150806-0404
    org.eclipse.gef – 3.10.1.201508170204
    org.eclipse.graphiti.feature – 0.12.1.v20150916-0905
    org.eclipse.jpt.jpa.feature – 3.4.2.me201607130633
    org.eclipse.jpt.jpadiagrameditor.feature – 1.2.101.me201607130633
    org.eclipse.jst.common.fproj.enablement.jdt – 3.6.3.me201607130633
    org.eclipse.jst.enterprise_ui.feature – 3.7.0.me201607130633
    org.eclipse.jst.server_adapters.ext.feature – 3.3.500.me201607130633
    org.eclipse.jst.server_adapters.feature – 3.2.400.me201607130633
    org.eclipse.jst.server_ui.feature – 3.4.200.me201607130633
    org.eclipse.jst.ws.axis2tools.feature – 1.1.301.me201607130633
    org.eclipse.m2e.feature – 1.6.0.me201607130633
    org.eclipse.sapphire.platform – 9.0.4.201511201829
    org.eclipse.wst.common.fproj – 3.7.0.me201607130633
    org.eclipse.wst.server_adapters.feature – 3.2.403.me201607130633
    org.eclipse.xsd – 2.11.0.v20150806-0404
    org.springframework.ide.eclipse.feature – 3.7.1.me201607130633

    PathToolsFeature – 1.0.67
    PathToolsRSEFeature – 1.0.64
    angularjs-eclipse-feature – 1.2.0.me201607130633
    angularjs-eclipse-jsp-feature – 1.2.0.me201607130633
    angularjs-eclipse-php-feature – 1.2.0.me201607130633
    com.eclipsesource.j2v8.feature – 4.0.0.201606171358
    com.vmware.vfabric.ide.eclipse.tcserver – 3.7.1.me201607130633
    com.vmware.vfabric.ide.eclipse.tcserver.insight – 3.7.1.me201607130633
    fr.obeo.acceleo.bridge.feature – 2.6.0.me201607130633
    io.emmet.eclipse – 14.0.0.me201607130633
    net.jeeeyul.eclipse.themes.feature – 2.3.0.me201607130633
    net.jeeeyul.pdetools.feature – 1.2.6.me201607130633
    net.jeeeyul.swtend.feature – 2.2.5.me201607130633
    org.chromium.debug – 0.3.9.201607122134
    org.chromium.sdk – 0.3.9.201607122134
    org.chromium.sdk.wipbackends – 0.1.11.201607122134
    org.dadacoalition.yedit.feature – 1.0.18.201607122134
    org.eclipse.buildship – 1.0.21.v20161010-1637
    org.eclipse.cvs – 1.4.200.v20150904-0015
    org.eclipse.draw2d – 3.10.1.201508170204
    org.eclipse.e4.rcp – 1.4.0.v20150903-1804
    org.eclipse.ecf.core.feature – 1.1.0.v20150810-1719
    org.eclipse.ecf.core.ssl.feature – 1.0.0.v20150810-1719
    org.eclipse.ecf.filetransfer.feature – 3.10.1.v20150810-1719
    org.eclipse.ecf.filetransfer.httpclient4.feature – 3.10.1.v20150810-1719
    org.eclipse.ecf.filetransfer.httpclient4.ssl.feature – 1.0.0.v20150810-1719
    org.eclipse.ecf.filetransfer.ssl.feature – 1.0.0.v20150810-1719
    org.eclipse.egit – 4.1.1.201511131810-r
    org.eclipse.epp.mpc – 1.4.1.v20150916-1928
    org.eclipse.equinox.p2.core.feature – 1.3.100.v20150527-1706
    org.eclipse.equinox.p2.discovery.feature – 1.0.300.v20150430-1836
    org.eclipse.equinox.p2.extras.feature – 1.2.100.v20150601-1708
    org.eclipse.equinox.p2.rcp.feature – 1.2.101.v20150826-1318
    org.eclipse.equinox.p2.user.ui – 2.2.101.v20150826-1318
    org.eclipse.help – 2.1.1.v20150904-0015
    org.eclipse.jdt – 3.11.1.v20150904-0015
    org.eclipse.jet – 1.1.1.v201101271243-5319sC7HCAGERASDK3924
    org.eclipse.jet.uml2 – 1.1.0.v201006011447-2-07w311A1A152813
    org.eclipse.jgit – 4.1.1.201511131810-r
    org.eclipse.jsf.feature – 3.8.0.me201607130633
    org.eclipse.mylyn.bugzilla_feature – 3.17.0.v20150828-2026
    org.eclipse.mylyn.commons – 3.17.0.v20150828-2041
    org.eclipse.mylyn.commons.identity – 1.9.0.v20150828-2041
    org.eclipse.mylyn.commons.notifications – 1.9.0.v20150828-2041
    org.eclipse.mylyn.commons.repositories – 1.9.0.v20150625-2042
    org.eclipse.mylyn.context_feature – 3.17.0.v20150625-2044
    org.eclipse.mylyn.cvs – 1.9.0.v20150908-1643
    org.eclipse.mylyn.discovery – 3.17.0.v20150828-2041
    org.eclipse.mylyn.gerrit.feature – 2.8.0.v20150909-1719
    org.eclipse.mylyn.git – 1.9.0.v20150908-1643
    org.eclipse.mylyn.ide_feature – 3.17.0.v20150625-2044
    org.eclipse.mylyn.java_feature – 3.17.0.v20150828-2014
    org.eclipse.mylyn.monitor – 3.17.0.v20150828-2041
    org.eclipse.mylyn.reviews.feature – 2.8.0.v20150904-1850
    org.eclipse.mylyn.tasks.ide – 3.17.0.v20150828-1845
    org.eclipse.mylyn.team_feature – 3.17.0.v20150625-2044
    org.eclipse.mylyn.versions – 1.9.0.v20150908-1643
    org.eclipse.mylyn_feature – 3.17.0.v20150909-1822
    org.eclipse.ocl – 3.1.0.v20110606-1427
    org.eclipse.pde – 3.11.1.v20150904-0345
    org.eclipse.platform – 4.5.1.v20150904-0015
    org.eclipse.rcp – 4.5.1.v20150904-0015
    org.eclipse.tm.terminal.connector.local.feature – 4.1.0.201603090932
    org.eclipse.tm.terminal.connector.serial.feature – 4.1.0.201603090932
    org.eclipse.tm.terminal.connector.ssh.feature – 4.1.0.201603090932
    org.eclipse.tm.terminal.connector.telnet.feature – 4.1.0.201603090932
    org.eclipse.tm.terminal.control.feature – 4.1.0.201603090932
    org.eclipse.tm.terminal.feature – 4.1.0.201603090932
    org.eclipse.tm.terminal.view.feature – 4.1.0.me201607130633
    org.eclipse.wb.core.feature – 1.8.0.r45x201506110820
    org.eclipse.wb.core.java.feature – 1.8.0.r45x201506110821
    org.eclipse.wb.core.ui.feature – 1.8.0.r45x201506110822
    org.eclipse.wb.core.xml.feature – 1.8.0.r45x201506110823
    org.eclipse.wb.doc.user.feature – 1.8.0.r45x201506110838
    org.eclipse.wb.layout.group.feature – 1.8.0.r45x201506110824
    org.eclipse.wb.rcp.SWT_AWT_support – 1.8.0.r45x201506110828
    org.eclipse.wb.rcp.doc.user.feature – 1.8.0.r45x201506110839
    org.eclipse.wb.rcp.feature – 1.8.0.r45x201506110827
    org.eclipse.wb.swing.doc.user.feature – 1.8.0.r45x201506110839
    org.eclipse.wb.swing.feature – 1.8.0.r45x201506110826
    org.eclipse.wb.swt.feature – 1.8.0.r45x201506110825
    org.eclipse.wb.xwt.feature – 1.8.0.r45x201506110829
    org.sonatype.m2e.mavenarchiver.feature – 0.17.0.201502101659-signed-20150525172209
    org.springsource.ide.eclipse.commons – 3.7.1.me201607130633
    tern-feature – 1.2.0.201607122119
    tern-jsdt-feature – 1.2.0.201607122119
    tern-linters-feature – 1.2.0.201607122119
    tern-server-nodejs-feature – 1.2.0.201607122119
    tern.eclipse.ide.server.nodejs.embed – 1.2.0.201607122119

    Eclipse startup command=-os
    linux
    -ws
    gtk
    -arch
    x86_64
    -showsplash
    -launcher
    /opt/myeclipse2016/myeclipse
    -name
    Myeclipse
    –launcher.library
    /opt/myeclipse2016//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.300.v20150602-1417/eclipse_1612.so
    -startup
    /opt/myeclipse2016//plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
    –launcher.overrideVmargs
    -exitdata
    8b6809a
    -install
    /opt/myeclipse2016
    -vm
    /opt/myeclipse2016//binary/com.sun.java.jdk8.linux.x86_64_1.8.0.u66/bin/java

    #504300 Reply

    support-tony
    Keymaster

    Eric,

    Many apologies for the problem. We can replicate it here and have opened a bug for development to investigate. We’ll let you know when a fix is available.

    Sorry for the inconvenience. Thanks for reporting the issue.

    #505394 Reply

    support-swapna
    Moderator

    Eric,

    The dev team is working on a fix for the launcher issue.
    Till the fix is out, can you please try these steps as workaround in MyEclipse 2016 and see if it helps?

    1. Make a copy of the myeclipse.exe and name it “MyEclipse Enterprise Workbench”.exe.
    2. Make a copy of myeclipse.ini and name it “MyEclipse Enterprise Workbench”.ini.
    3. You should use the new EXE to launch MyEclipse on the command line when trying to open the files.
    4. Additionally, if you add the below lines to the new INI file,then you only need to use the name of the file on the command line instead of the path. Example : “MyEclipse Enterprise Workbench” filename

    --launcher.defaultAction
    openFile

    You can add the above two lines to the INI file just before the -vm entry.

    Attached is the screenshot of the MyEclipse installation folder with the new EXE and INI files for your reference.

    Hope this helps. Please let us know how it works for you.

    –Swapna
    MyEclipse Support

    Attachments:
    You must be logged in to view attached files.
Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: –launcher.openFile doesn't work as it does in Eclipse

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