简体   繁体   English

在Eclipse Linux中安装SableCC

[英]Installing SableCC in Eclipse Linux

I am trying to install SableCC in Eclipse in Linux machine. 我正在尝试在Linux计算机上的Eclipse中安装SableCC。 I have followed the instruction given on this http://web.archive.org/web/20090318023544/http://www.comp.nus.edu.sg/~sethhetu/rooms/Tutorials/EclipseAndSableCC.html, which is for Windows, but at step 9 I can not find the matching files for Linux machine. 我已按照http://web.archive.org/web/20090318023544/http://www.comp.nus.edu.sg/~sethhetu/rooms/Tutorials/EclipseAndSableCC.html上给出的说明进行操作, Windows,但是在步骤9中,我找不到Linux机器的匹配文件。

The path I have tried given below: 我尝试过的路径如下:

Location: /usr/lib/jvm/java-1.8.0-openjdk-amd64/jre/bin/javaws 位置:/usr/lib/jvm/java-1.8.0-openjdk-amd64/jre/bin/javaws
Working Directory: I chose "Browse Workspace..." 工作目录:我选择“浏览工作区...”
Arguments: -classpath /home/[user_name]/Downloads/sablecc-3.7/lib/sablecc.jar org.sablecc.sablecc.SableCC [Project_Name] 参数:-classpath / home / [用户名] /Downloads/sablecc-3.7/lib/sablecc.jar org.sablecc.sablecc.SableCC [Project_Name]

But still I get error message: 但是我仍然收到错误消息:
"netx: Invalid argument: net.sourceforge.jnlp.util.optionparser.InvalidArgumentException: [-classpath, /home/[user_name]/Downloads/sablecc-3.7/lib/sablecc.jar, org.sablecc.sablecc.SableCC, Project_Name]" “ netx:无效参数:net.sourceforge.jnlp.util.optionparser.InvalidArgumentException:[-classpath,/ home / [用户名] /Downloads/sablecc-3.7/lib/sablecc.jar,org.sablecc.sablecc.SableCC,Project_Name ]”

Ι also tried out changing the arguments from [Project_Name] to ${resource_name} given from "Variables...", but I get this error: 我也尝试将参数从[Project_Name]更改为从“ Variables ...”给出的$ {resource_name},但出现此错误:
Variable references empty selection: ${resource_name} 变量引用空选择:$ {resource_name}

Any idea?? 任何想法?? Thank you in advance! 先感谢您! :) :)

A ready to use version http://downloads.sourceforge.net/sablecc/sablecc-3.7.zip , providing 即用型版本http://downloads.sourceforge.net/sablecc/sablecc-3.7.zip ,提供

sablecc-3.7/lib/sablecc.jar
           /bin/sablecc

bin/sablecc is a script, runs java -jar sablecc.jar bin / sablecc是一个脚本,运行java -jar sablecc.jar


Building sablecc.jar : See `sablecc-3.7/doc/description.html 建立sablecc.jar:请参阅`sablecc-3.7 / doc / description.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM